LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Shouldn't switch channels

Hi, I have a NI USB-6009 to analyze voltage on LabView 7.1 and I need 8 channels. The program is almost finished; the only problem is that when I read the .bin file somehow it’s switching the channels. It should be showing from ai0 to ai7, but it’s showing ai6, ai7, ai0, ai1, ai2, ai3, ai4, ai5. I know it because the rms values are wrong. I don’t know if the problem is when I write or when I read.

 

I need to write at i16 type, but I couldn’t make it write correctly and show the rms values at the same time, that’s why I had to read it twice at Write.vi!

 

Just one more thing, the date and time are not showing on the graphic, can you help me with that too?

 

Thanks a lot!

Download All
0 Kudos
Message 1 of 2
(2,449 Views)
You don't need to write I16 data. You can modify the VI to write U16 just by changing the data representation. Make the changes and save it with a new name in a new location. Even easier is to change DAQmx Read to return I16. All that takes is a right click (Select Type>Analog>Unscaled>2D I16) or click on the Polymorphic VI Selector below the function. Then you don't do the conversion from u16 to I16. You also don't need to do the Transpose 2D Array.
0 Kudos
Message 2 of 2
(2,414 Views)