LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

manage requests between acquisition and control program using agilent 34970A

Solved!
Go to solution

Hello
I realized a program for data acquisition with labview and agilent 34970, acquisition in real time works very well with a time you sampling from a second ... there is no problem
to complete the program and control the valves installed in a photovoltaic pumping system
jai realized a second program for the controlit is well functional
but the problem is when I merge the two program in real time
This error is present during the execution of two program at the same time, that is to say they are launching two request in the same time to the instrument 34970A
(the agilent 34970A labview poster hangs)

-------------------------------------------------- --------------------------------------
what I want is to find a little programming trick to manage two outgoing REQUESTS at the same time in LabVIEW to the instrument, and create a sort of delay between two REQUESTS

 

Sorry for the bad English

thank you

0 Kudos
Message 1 of 4
(2,726 Views)
Solution
Accepted by topic author bilalus

If you are in the same executable, then semaphores works well.  You lock the semaphore before making your command and request.  Release it after you get your data.  If the lock is already taken, then the Semaphore will just wait until the lock is available.  Only one process can act at a time this way.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(2,716 Views)
There is also the VISA lock functions.
0 Kudos
Message 3 of 4
(2,693 Views)

thank you so much

 

it works very well with the semaphore


@crossrulz wrote:

If you are in the same executable, then semaphores works well.  You lock the semaphore before making your command and request.  Release it after you get your data.  If the lock is already taken, then the Semaphore will just wait until the lock is available.  Only one process can act at a time this way.


 

0 Kudos
Message 4 of 4
(2,672 Views)