From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-22-2018 06:04 PM - edited 01-22-2018 06:05 PM
Hello Everyone,
I am trying to gather data from an NI 6002 board. I am currently storing my data in memory though a shift register. After I am done collecting I want to be able to export my data to a text file for post processing. However, LabVIEW writes the data as one continuous line and does not implement a carriage return line feed. I am looking to save the data in a new row for each loop iteration. Instead it makes one row with infinite columns. I tried it with one large shift register and with multiple small shift registers, but to no avail.
The calibrations for the instruments are not correct, so ignore those.
Down below are images and a copy of my code.
Any Information Would Be Appreciated!
Solved! Go to Solution.
01-22-2018 06:26 PM
You can use a single shift register. Change your array from 1D to 2D and the write spreadsheet function will write the data pretty much as it shows in an array indicator.
01-22-2018 08:08 PM
So I just tried that and LabVIEW errored due to an inconsistent data type.
Attached is an image.
01-22-2018 08:18 PM
Build the scalars into a 1-D array. Then build the 1-D array into a 2-D array using concatenate inputs and the array coming from the shift register.
01-22-2018 09:56 PM
I LOVE YOU. Thank you so much! It worked great.