09-14-2024 02:25 PM
Hi,
I'm currently working with a CSV file that contains 7000 samples. I'm attempting to input these values into my DAQ output voltage channel, AO1, at intervals of 0.01 seconds. While using LabVIEW, I encountered error 200560, detailed in the attached photo.
I'm striving to adopt best practices in code development. Any suggestions for resolving this issue would be greatly appreciated.
Here are my system details:
- Operating System: Windows 10, 64-bit
- LabVIEW Version: 2024 Q4, 32-bit
- Hardware: NI USB-6212
Thank you for your assistance.
09-15-2024 01:36 AM
Please take note of the following Correction:
- LabVIEW Version: 2024 Q3, 32-bit
Thanks.
09-15-2024 08:29 AM
Most forum users don't have the latest version of LabVIEW. Please save your VI in an earlier version ( File » Save For Previous Version), preferably 2020.
09-15-2024 02:56 PM
Sure, here is the LV 2020 version of the VI code.
Thanks.
09-15-2024 03:38 PM
I'll bet if you look at your "all rows 2" indicator, it is probably empty, not what you'd expect from a .csv with 7000 entries.
You are making use of Express VIs, which are many times "not your friend". You have specified the file type as an "LVM" text file, but have named it as a .csv, which has a specific meaning ("Comma-Separated Variables", where NI likes to (by default) make them "Tab-Separated Variables", which is also not so bad. You are also using Dynamic Data Wires, which I've never liked, and are sending these data to the Dreaded DAQ Assistant (hmm, is my prejudice showing?).
If you really do have a .csv file, NI has a "Read Delimited Spreadsheet" function in the File Palette that should shlurp up tab or comma-delimited data (tabs/commas separate entries in a row, i.e. are column separators, and separate lines of text are rows, or Channels, if you are doing multi-channel DAQ stuff).
Where did the data (7000 readings) come from? You might consider showing us a sample of the data file (maybe not all 7000 readings, but enough that we "get the idea" of the data).
Bob Schor