LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read from a csv and output to DAQ Assistant

Hi,

 

I am trying to generate an arbitrary noise file that I have generated into a CSV file. I am trying to output that signal to a DAQ Assistant that is setup to the voltage output of a D to A device(NI9263).

I am not able to read the CSV file with the read from spreadsheet block and I need help.

Any help would be appreciated.

 

Thanks in advance,

Daniel Han

0 Kudos
Message 1 of 7
(2,267 Views)

Unfortunately we could not imagine how the CSV file looks like and why your code does not work with that CSV file

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 7
(2,259 Views)

This is my CSV file. I dont know how to connect this and include a dt interval so it can become a signal for my DAQ assistant

0 Kudos
Message 3 of 7
(2,220 Views)

Your csv file has 1 row and more than 1 million columns.

 

Nevertheless, the read function worked when given a comma as the correct delimiter instead of the default tab.

 

 

-Kevin P

 

Kevin_Price_0-1628689189557.png

 

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 4 of 7
(2,217 Views)

Thank you!

That worked got me a ton of progress.

But it is still not sending the voltages to the DAQ. How would it know the sample rate?

0 Kudos
Message 5 of 7
(2,201 Views)

Thanks again, I am very new to all of this and I am still learning

0 Kudos
Message 6 of 7
(2,200 Views)

Since the data files don't include any timing information, it'll have to be up to *you* to determine a sensible sample rate and set up the DAQ task accordingly.  I never use the DAQ Assistant, so I can't really speak to the detailed steps involved.  (I'd recommend you try to start using regular DAQmx functions too.  See the shipping examples, right-click a DAQ Assistant and tell it to convert to DAQmx code, and read through this article.)

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 7 of 7
(2,193 Views)