04-06-2009 05:01 AM
04-06-2009 05:54 AM
04-06-2009 05:56 AM
04-06-2009 06:26 AM
Baji:
About the "First Misstake". If I insert the instrument as you describe I get stuck in an infinite loop, as the program will never read anything. Occasionally I will get a warning saying that there might be more bytes at port than I requested to read.
04-06-2009 07:34 AM
I hav made a new version of getstring.vi. It checks for errors, but it still gets stuck in the second loop, despite getting an 'Á', indicating EOF.
I have put the indicator withthe read string inside the case structure. Is this the right thing to do?
04-06-2009 09:28 AM
04-06-2009 10:35 PM
04-06-2009 10:47 PM
04-08-2009 03:23 AM
I thought the function you inserted were supposed to do that. Do I need to change it further?
The timer.vi is still in 8.6.
04-08-2009 04:08 AM
I think I figured this one out. Connecting the numeric wire from Bytes at Port to the VISA read function seems clever, but that makes it incompatible with getstring. The way getstring works it is supposed to only read one character at a time, looking for EOF, which it won't find, since it keeps getting larger chunks of text, hence infinite loop.
I include new version of serial port control.