02-14-2011 03:54 AM
Hello,
I am trying to generate a signal from a text file but I'm kind of lost.
I have a cDAQ9172 and I have analog output module NI9263.So what I would like to do is to open a text file that contains data of the voltage in each moment.
The thext file is something like this (the sampling frequency is known):
0.0000000e+000
9.9999983e-004
1.9999987e-003
2.9999955e-003
3.9999893e-003
4.9999792e-003
5.9999640e-003
6.9999428e-003
So what I would like is to generate those voltages continously.
If you could give some ideas how to approach the problem.
02-14-2011 04:49 AM
by the way. thank you for your attention
02-15-2011 02:49 AM
Hi, José,
you can use the Get Waveform Components VI in conjunction with the Build Waveform VI to take data out of your text file and create a waveform from it. Once you've recreated the waveform, you can write it to the hardware using the method of your choice. (For how to output the data, I recommend checking out the examples that come with LabVIEW.)
Here you are a couple of examples:
http://decibel.ni.com/content/docs/DOC-7336
http://decibel.ni.com/content/docs/DOC-11694
I hope this helps! Suerte con ello!
Jesús.
02-15-2011 03:25 AM
Thank you Jesús!
Hope it helps.