Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

generate an output voltage from a text file

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.

0 Kudos
Message 1 of 4
(2,690 Views)

by the way. thank you for your attention

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

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.

Message 3 of 4
(2,662 Views)

Thank you Jesús!

 

Hope it helps.

 

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