LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

The problem about GPIB Wait

Dear all,

First, Thank you for your attention!!!

I have to use a network analyzer to perform a test for the return loss of antenna. For convenience, I have to use both port 1 and port 2 in order to test two samples together. Because I plan to use mechanical button to trigger the test, this may have problem to cause a crash when two requeust arise together.

May I know whether I can use the function GPIB wait to avoid it to happen?

THANK YOU VERY MUCH
0 Kudos
Message 1 of 4
(2,807 Views)
I'm not sure exactly what you're trying to do. Are ports 1 and 2 different inputs to the same instrument? If you provide an external trigger to the instrument and don't want to do a read until the instrument has done a measurment, you could do a GPIB Wait for RQS (assuming the instrument issues RQS). Then you would do sequential reads of measurements 1 and 2.
Message 2 of 4
(2,795 Views)
If your two mechanical buttons are read by LV and your code has two separate loops to allow both tests to run independently, then you should have a look at the example called Semaphore using SubVIs. Using a semaphore you can have the first button grab the semaphore and the second button will wait until the semaphore is released to start the test.
Michael Munroe, CLD, CTD, MCP
Automate 1M+ VI Search, Sort and Edit operations with Property Inspector 5.1, now with a new Interactive Window Manager!
Now supports full project automation using one-click custom macros or CLI.
Message 3 of 4
(2,790 Views)
Dear all,

Thank you very much!!! The information are useful but I still not very clear what to do.

May be I make the question simpler: If I have two programs to communicate with same device at the same moment, how to avoid confusion, can I make one program to wait until the other program finish communication and then start to wirte and read immediately, and the steps continue again and again
0 Kudos
Message 4 of 4
(2,767 Views)