Search found 15 matches
- Tue Apr 02, 2019 3:54 pm
- Forum: Mac OS
- Topic: Read from driver 1 lines twice not same as 2 lines
- Replies: 3
- Views: 4986
Re: Read from driver 1 lines twice not same as 2 lines
Hi. If you invoke the same "read" command twice, you will not access the second line. How would LC know that you wanted to? Craig Newman LC should not get confused. If I read 1 line from a file in a loop, LC will keep giving me the next line in the file. The same for a serial input stream. It reads...
- Tue Apr 02, 2019 2:54 am
- Forum: Mac OS
- Topic: Read from driver 1 lines twice not same as 2 lines
- Replies: 3
- Views: 4986
Read from driver 1 lines twice not same as 2 lines
Hi, I am trying to optimize my read commands from a 3D printer USB serial device. I must not understand how the read from driver works. I open the driver like this: open driver line 1 of field "Printer Path" for text update I can then read and write to the device. However, I want to read the input f...
- Fri Mar 01, 2019 10:22 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Redirecting focus away from a field
- Replies: 4
- Views: 3219
Re: Redirecting focus away from a field
Thank you. There you go, see I am a newbie all over again. I could not find that focus on command when I looked before (I can find it easy now). My eyes must be getting old...bogs wrote: ↑Fri Mar 01, 2019 10:01 pmIn the button's script, either in mouseDown or up, wouldn'tCode: Select all
focus on nothing
- Fri Mar 01, 2019 9:32 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Redirecting focus away from a field
- Replies: 4
- Views: 3219
Redirecting focus away from a field
I feel like a newbie again after 10 years away from LC...lol I have a field that has the focus. When I click on some button, I want to close the field (remove the focus). I am having a hard time figuring out how to do this other than manually clicking into another field. None of my experiments have ...
- Thu Feb 28, 2019 5:04 pm
- Forum: Mac OS
- Topic: Can't open USB serial device
- Replies: 25
- Views: 18445
Re: Can't open USB serial device
I'm going to go out on a limb here, and guess there may be some confusion about the use of "shell" in this terminology. I do not imagine there is a shell command to do the connection and set the change. If there is a terminal application that can do the job, that application could possibly be calle...
- Wed Feb 27, 2019 4:40 pm
- Forum: Mac OS
- Topic: Can't open USB serial device
- Replies: 25
- Views: 18445
Re: Can't open USB serial device
Hmm, I don't know if you saw this comment (old dictionary) - Mac OS X note: the environment variables which are available in the shell function may not be the same as those available in the Terminal app. For instance, it may be necessary to update the $PATH variable to make some commands available ...
- Wed Feb 27, 2019 4:28 pm
- Forum: Mac OS
- Topic: Can't open USB serial device
- Replies: 25
- Views: 18445
Re: Can't open USB serial device
since LC doesn't yet have USB support officially Cripes, that's a real case of lagging behind. USB is a physical transport that the OS virtualizes for device control. I can't see why LC should or could support USB directly. What I am talking about is supporting the OS calls to control the USB virtu...
- Wed Feb 27, 2019 2:24 pm
- Forum: Mac OS
- Topic: Can't open USB serial device
- Replies: 25
- Views: 18445
Re: Can't open USB serial device
Well, why not use shell(dictionary) to execute the cli and then connect to it? Alternately, if you have to connect to it with Lc first (not sure why), do that then use shell for the cli then disconnect/reconnect. I would love to use shell. I tried it for a day. Internet showed others could not get ...
- Wed Feb 27, 2019 4:16 am
- Forum: Mac OS
- Topic: Can't open USB serial device
- Replies: 25
- Views: 18445
Re: Can't open USB serial device
Even though I got it to connect with the /dev/cu.usbmodem address, I could only write, but not read anything from another 3D printer. I found the root cause of why: Setting the serialControlString with dtr=on does not result in the dtr line being on. The default state is off and it stays off no matt...
- Fri Feb 08, 2019 1:44 pm
- Forum: Mac OS
- Topic: Can't open USB serial device
- Replies: 25
- Views: 18445
- Fri Feb 08, 2019 4:04 am
- Forum: Mac OS
- Topic: Can't open USB serial device
- Replies: 25
- Views: 18445
Re: Can't open USB serial device
Got it to connect. I changed the device address to:
"/dev/cu.usbmodem207F376659521"
So a JavaScript program needed the /dev/tty... to connect and MacOS needed the /dev/cu... to connect. And don't get them mixed up or you are going nowhere!
"/dev/cu.usbmodem207F376659521"
So a JavaScript program needed the /dev/tty... to connect and MacOS needed the /dev/cu... to connect. And don't get them mixed up or you are going nowhere!
- Thu Feb 07, 2019 6:22 pm
- Forum: Mac OS
- Topic: Can't open USB serial device
- Replies: 25
- Views: 18445
Re: Can't open USB serial device
Perhaps this part of it? "Tip: Because OS X is based on Unix, you can use the open file command, as mentioned above, as a replacement for open driver on OS X systems." Yes, I noticed that also. I tried both open driver and open file. They behave identically. I would have hoped that there would have...
- Thu Feb 07, 2019 5:26 pm
- Forum: Mac OS
- Topic: Can't open USB serial device
- Replies: 25
- Views: 18445
Re: Can't open USB serial device
I'm kind of surprised it works on windows, since LC doesn't yet have USB support officially. I am surprised by your response. The open driver command in the language dictionary states: "Use the open driver command to communicate with USB devices, devices attached to a serial port other than the mod...
- Thu Feb 07, 2019 12:20 am
- Forum: Mac OS
- Topic: Can't open USB serial device
- Replies: 25
- Views: 18445
Can't open USB serial device
I am trying to control a 3D printer from LC. It is attached to my current model Mac Pro (10.14.2) through a USB connection. I have several other programs that connect fine to the printer. I attempted to connect to it with the following commands: set the serialControlString to "BAUD=115200 PARITY=N D...
- Tue Apr 11, 2006 12:35 am
- Forum: Off-Topic
- Topic: Why Forums? What about the List?
- Replies: 24
- Views: 32690
Re: Why Forums? What about the List?
forums are a superior solution for what Runtime would like to provide: -An environment where users can more easily locate sub-communities and topics they are interested in, rather than a general community -An environment where abusive comments, warez/cracks/serials, NDA violations and other undesir...