08-10-2021 08:25 PM
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
08-10-2021 09:25 PM
Unfortunately we could not imagine how the CSV file looks like and why your code does not work with that CSV file
08-11-2021 07:39 AM
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
08-11-2021 08:40 AM
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
08-12-2021 08:59 AM
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?
08-12-2021 09:00 AM
Thanks again, I am very new to all of this and I am still learning
08-12-2021 12:39 PM
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