LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read channels alternately on Agilent data logger

Solved!
Go to solution

Hi Everyone, 

 

I am trying to finalise on a code. I am remotely controlling my Agilent 34970A and I want to read channels one after the other. I have an actuator in the device that is also being controlled to close and open the channels. 

 

The actuator channels are 201, 202....220

The multiplexer channels are 101, 102, 103....121

 

I want the code to close 201 and read 101, then open 201 before going out to close 202 and read 102....etc.

 

At the moment what I have will close all the actuator at once and read all the channels which is not what I want. I kinda know the long hand to do this is to have so many sequences but I want to see if there's a kinda shorthand.

 

 

Attached is a printscreen of the front panel of what I currently have. 

 

P.S: I'm relatively new in using labview. I will appreciate all help I can get.

0 Kudos
Message 1 of 2
(2,197 Views)
Solution
Accepted by topic author concacid

Possibly use a FOR loop.  Put all of your parameters in arrays and autoindex the arrays going into the FOR loop.  Inside of the loop, you could close a relay, read a value, then close the relay.  Repeat for as many channels and samples as you want.


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 2
(2,163 Views)