LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modify example to read bin file

I have a NI USB-6009 to analyze voltage on LabView 7.1 and I need 8 channels. I’m using “Cont Acq&Graph Voltage-To File(Binary)” example to write voltage data into a bin file and read it graphically on “Graph Acquired Binary Data” example. However, I had to change DAQmx Read.vi from Analog->Unscaled->2D I32 to Analog-> Multiple Channels->Multiple Samples->2D DBL, but now “Graph Acquired Binary Data” example does not read it right. Can I change it so it can read the bin file?

Thanks

Download All
0 Kudos
Message 1 of 4
(2,681 Views)
DBL is 8 bytes per data point, thus you need to divide by 8 at the Q&R function at the bottom center. Then at the read function, you need to change the representation if the diagram constant (next to the arrow) to DBL.
 
See if this works. Good luck!
0 Kudos
Message 2 of 4
(2,674 Views)

Thanks, but it didn't work!
Maybe I need to change something in “Convert Unscaled to Scaled.vi” next to the Scaled Data. I don’t know, just a guess.

0 Kudos
Message 3 of 4
(2,670 Views)


@Archnot wrote:
Maybe I need to change something in “Convert Unscaled to Scaled.vi” next to the Scaled Data. I don’t know, just a guess.


Well, there is no way to tell, because you did not include that subVI.
 
In any case, you did not change the representation of the "data type" input in the last read statement. It is still not DBL. Just right-click and select representation.
 
(I also highly recommend noT to stack icons on top of each other!)

Message Edited by altenbach on 10-13-2006 12:21 PM

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