03-13-2009 02:48 PM
Hi,
I have a loop with an Instrument I/O Assistant for serial communication. Everything works great so far. My question is: Is it possible to terminate the execution of and Instrument I/O Assistant by means of a button (or likewise) before the timeout is activated? Now I stop the while loop with a button. However, if the Instrument I/O Assistant is waiting for a new command the loop wont stop until the Instrument I/O Assistant makes a timeout.
Sorry if I'm not explaining the problem good enough. Please let me know if you want more information or if you have any suggestions for terminating the Instrument I/O Assistant.
Best regards,
Mattias
03-13-2009 02:59 PM
03-13-2009 03:06 PM
The Instrument I/O Assistant is described here:
http://cnx.org/content/m12294/latest/
Best regards,
Mattias
03-13-2009 03:17 PM
03-13-2009 03:23 PM
I took the express VI because it solved my first problem (beginners choice ), I now realise that it might perhaps not solve my current problem. Please, if you have the possibility, could you provide me with an example that uses standard VISA functions?
A very big thanks in advance.
/Mattias
03-13-2009 03:26 PM
Look in the Example Finder for Serial I/O examples.
Also, do what Jim says and right click on the Express VI and Open Front Panel. You'll see and learn from the code that the Express VI is doing in the background.
03-13-2009 03:27 PM - edited 03-13-2009 03:28 PM
mattias@hv wrote:I took the express VI because it solved my first problem (beginners choice
), I now realise that it might perhaps not solve my current problem. Please, if you have the possibility, could you provide me with an example that uses standard VISA functions?
A very big thanks in advance.
/Mattias
I can do you one better. On the toolbar select Help>>Find Examples
and search for: Advanced Serial Write Read
This is a great shipping example for you to look at.
(Beat to the punch)
03-13-2009 03:29 PM
Excellent! Thanks for your time!
Kudos to you!
/Mattias