06-15-2011 05:37 AM
Hi,
I wish to acquire data in LabVIEW from an external source and store the data in the form of an array. I am able to store data as a spreadsheet and a data file, but I am unable to do so as an array.
I have tried using arrays, but the cells are over-written each time an iteration happens.
Please suggest.
Thanks.
Solved! Go to Solution.
06-15-2011 05:42 AM
06-15-2011 05:44 AM
PFA the VI created so far. I am reading the data into a file, and reading the array from the file.
06-15-2011 05:45 AM
For the time-being, I am generating a signal to store into the array. After this problem is solved, I shall move on to external data acquisition.
06-15-2011 05:47 AM - edited 06-15-2011 05:48 AM
Hi,
This is the simple way to do it. Check out the attached VI.
Regards,
Nitzz
(Give kudos to good Answers, Mark it as a Solution if your problem is Solved)
06-15-2011 05:48 AM
Hi Dheeraj,
so you write a file from simulated data and you read a 2nd file to display it in an array indicator.
In each iteration you read the 2nd file and display it in the indicator. Yes, that will overwrite the previously shown data in the array indicator...
What exactly do you want to do?
06-15-2011 05:54 AM
@Nitzz I am unable to open your file as I am using LabVIEW 8.5 . Please try sending me a screenshot. Thanks 🙂
@GerdW
I want to write the data from the simulated signal in the form of an array, similar to how it does in a spreadsheet. I was trying to write the data to a file and read the data from the same file into an array.
Please suggest me how this can be done directly without getting over-written.
06-15-2011 05:56 AM
06-15-2011 05:57 AM - edited 06-15-2011 05:59 AM
Hi Dheeraj,
This is in 8.5. In this VI the data is accumulated into an array using shiftregister. So later after acquisition you can write it all together into a spreadsheet instead of writing continuously into the spreadsheet and reading.
Regards,
Nitzz
(Give kudos to good Answers, Mark it as a Solution if your problem is Solved)