LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

binary file to output

Jan 26, 2001
I am using the demo version of LabVIEW 5.1 with an AT-MIO-64F-5 I/O DAQ
board. I can record a chunk of analog sound input to a binary file, but
I cannot output the content of the binaary file to one of the analog outputs
and to a speaker). Ultimately I want to do some off-line processing in between
to explore the effects of various filtering, aliasing, etc.
Can anyone tell me where I can get a LabVIEW program to do this? It does
not seem to be in any of the examples provided.
Thank you,
jrmaxwel@umich.edu
0 Kudos
Message 1 of 2
(2,285 Views)
Actually, it is 2 examples combined. You can use the examples\DAQ\anlogin\strmdisk\Display Acq'd File (binary) to read the binary values from the file. In a nutshell, what you really need from this VI is the Read File (I16) VI, the one in the middle of the While loop. This will read the binary data and put it into an array. You then scale that array to voltage values by dividing by the resolution of the card (12-bit or 16-bit), and multiplying by the range of the input (-10 to +10 volts default, I think). That will give you an array of voltage values.

Take that array, and use it in the examples\daq\anlogout\anlogout.llb\Generate N Updates.VI. They have a VI called My Data Gen.VI in the diagram which generates a 2-dimensional array of data which is used in for
the DAC output. Remove that VI, and use the data array you've created in its place. That should generate the output you want.

Mark
0 Kudos
Message 2 of 2
(2,285 Views)