02-26-2009 04:36 PM
Hello,
I am trying to store the analog data into a array and then save it as a csv file. But due to some reason I am getting only 1 value in my saved file. Please look at attached pic of the block diagram. I can't move the save file block in the while loop as writing process (0.05 sec) is slowing down the acquisition rate. I am trying to store all the output values into one big array and at the end save all the values into one file. But array seems not to be appending 😞
Sine
Solved! Go to Solution.
02-26-2009 04:45 PM
You're only getting one datapoint because that is all you are saving. The insert into array function is building an array with exactly one element in it, the array index function then extracts the one data point and saves it to a file. Use auto indexing to accumulate all the data values that you read and then save the array to the file.
Mike...
02-26-2009 04:58 PM
You do NOT want to build an array of dynamic signals.
I avoid dynamic data like the plague and don't use express VIs you yuo might want to just use the Append Signals function and wire the result of that out through the loop.
02-27-2009 09:49 AM
Mike thanks for your reply. As per your suggestions I tried enabling autoindexing, but it is giving me another error (error pic and vi are attached).
Thanks,
Sine
02-27-2009 09:54 AM
What about my answer did you not understand? DO NOT CREATE A DYNAMIC DATA ARRAY!
Either convert the dyanmic data to something else or use my suggestion.
02-27-2009 10:08 AM
Hi Dennis,
I tried your suggestion, but some how can't make it to work. I am attaching the error pic and the vi. Please note that I have enable the auto indexing, if I disable it again, the error goes away but I am only left with the one iteration values.
Thanks,
Sine
02-27-2009 10:37 AM - edited 02-27-2009 10:38 AM
Hi Labview.edu,
Dennis is correct. You want to avoid the dynamic data type (the blue wires) in this instance. I think the easiest thing to do is wire the output of your DAQ Assistant into a Convert from Dynamic Data (set it up to convert to waveform data, for instance) and that to the indexed exit tunnel.
Try that and you should be ok :).
02-27-2009 10:48 AM - edited 02-27-2009 10:49 AM
With autoindexing disabled, I would check if the Append Signals function is configured correctly.
02-27-2009 12:10 PM
Hi Dennis,
There is not much to configure in append signal function, see attached pic.
Thanks,
Sine
02-27-2009 12:35 PM