LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Terminate Instrument I/O Assistant before timeout occurs

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

 

0 Kudos
Message 1 of 8
(3,311 Views)
I don't know what an Instrument I/O Assistant is, do you think you could either post an image of your code or post a piece of sample code that illustrates your problem?
0 Kudos
Message 2 of 8
(3,308 Views)

The Instrument I/O Assistant is described here:

http://cnx.org/content/m12294/latest/

 

Best regards,

Mattias

0 Kudos
Message 3 of 8
(3,306 Views)
I don't have much experience with using express VI's, but by right clicking on it and selecting Open Front Panel I discovered that all it does is use VISA functions to communicate.  I am not sure how to stop the Instrument I/O function before it times out but I could help you do what you want to do with VISA fuctions.
0 Kudos
Message 4 of 8
(3,301 Views)

I took the express VI because it solved my first problem (beginners choice Smiley Tongue), 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

0 Kudos
Message 5 of 8
(3,295 Views)

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.

Message 6 of 8
(3,290 Views)

mattias@hv wrote:

I took the express VI because it solved my first problem (beginners choice Smiley Tongue), 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)

Message Edited by jmcbee on 03-13-2009 02:28 PM
Message 7 of 8
(3,288 Views)

Excellent! Thanks for your time!

Kudos to you!

/Mattias

0 Kudos
Message 8 of 8
(3,284 Views)