03-16-2010 09:29 AM
Hi,
I am fairly new to Labview. I am looking for a vi that can convert my vi file (the file generates an arbitrary waveform, amplitude vs. time) to a binary file. Can anyone please help me how to construct this vi. Thanks in advance.
Thanks & Regards,
Varindra
03-16-2010 09:34 AM
Why did you post this generic question to the Multifunction DAQ board?
Have you looked at the example programs that ship with LabVIEW? Open the example finder (Help>Find Examples) and go to the search tab. Enter 'file'.
03-16-2010 09:59 AM
Sorry for the wrong posting. I had posted it here since I am looking for exporting the waveform to my NI5421 Card. Can anyone please suggest what steps I need to follow if I am creating some bit-pattern and I need to export it to my NI5421 Card.
Thanks & Regards,
Varindra
03-23-2010 11:26 AM
Hi,
If you look at the Fgen Arbitary Waveform.vi example that ships with LabVIEW (use the example finder and search for 5421) then you'll see that all you need to make this code generate your own custom waveform is an array of doubles that contain your waveform points.
This then means that if you want to load the data from a file or somewhere else, you'll need to convert it from whatever the source format is into an array of doubles.