12-16-2016 03:36 AM - edited 12-16-2016 03:37 AM
Hey Guys,
I am working on a Data Aquisition and I want to save my measured data in an array:
I have 3 voltages coming from a DAQassistent and I want to plot them over the time as well as save their values and the corresponding time stamp (relative time, beginning from 0).
My whole VI is running in a while loop. Inside this while loop is a case structure. Inside this case structure I want to create my array. I can plot those 3 graphs in a waveform chart without any issues but i'm having trouble building up my array.
So my problem right now is:
The array only consists of 50 rows. - why is that?
It is only writing the last 50 data points of my data into my array, while the time (first column) goes from 0 to 50.
The "write measurement to file" block doesnt work for me as it's creating an error and it actually slows down my VI significantly, thats why I want to use an array.
12-16-2016 03:55 AM - edited 12-16-2016 03:56 AM
Hi TLentzen,
but i'm having trouble building up my array.
You should try to take the free online lessons to learn LabVIEW. And examine the example VIs coming with LabVIEW to learn about Array functions…
So my problem right now is: The array only consists of 50 rows. - why is that?
Maybe you have configured your DAQAssis to deliver just 50 samples? And you only collect the samples from your last iteration. And you use a lot of ExpressVIs and DDT wires - both don't help in understanding/analyzing your images!
As you only attach images we cannot check this (using LabVIEW) for you…
It is only writing the last 50 data points of my data into my array, while the time (first column) goes from 0 to 50.
When the time has values from 0 to 50 you should have 51 data points in your file… 😉
As there is no WriteToFile function in your image we cannot say anything about how you create those files…
Did I mention we cannot examine your images with LabVIEW?
The "write measurement to file" block doesnt work for me as it's creating an error and it actually slows down my VI significantly
Which error do you get? What does the error message say?
Yes, writing to files can be slow - depending on your hardware!
Attach your VIs - with all information needed to answer your questions!