LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ

 
Hello,
 
The code's attached - I'm trying to read up to 8 voltages at the same time. The code I've written is crap - is there a better way to do it?
 
Thank you for any help you might be able to give me.
0 Kudos
Message 1 of 4
(2,795 Views)
Use the DAQ assistant express vi. You can set it up to return all 8 channels at once
Andrew Alford
Production Test Engineering Technologist
Sustainable Energy Technologies
www.sustainableenergy.com
0 Kudos
Message 2 of 4
(2,790 Views)
You do not need the case structure full of duplicated code. Pull one of your for loops out. Then use code similar to what I have attached to feed the appropriate physical channels input to the for loop. Note that I replaced your enum for Selection with a standard numeric so I could perform mathematical operations on it. (You can do math on enums, but since the item order in you enum is reversed, the math gets messy).

Lynn
0 Kudos
Message 3 of 4
(2,779 Views)
And here's yet another way. I changed the enum. I think it's less confusing this way.
Message 4 of 4
(2,774 Views)