03-26-2011 05:50 PM
Hi
I am new for using the Labview. I have problem saving the data in spreadsheet. mine just save the last reading that come from DAQ. And can not figure it out .
If there is way to make it save all the data with the time when I start run it till I stop it,please
Thanks in advince
03-26-2011 07:02 PM
The data coming from the while loop in the second frame of the sequence structure is only the data from the last iteration. This its the way dataflow works. If you have not done so, work through the on-line tutorials to learn more about LV.
To get all the data you can enable indexing to create 2-dimensional arrays. Queues or functional globals (or Action Engines) can be used to get data from a loop before it has finished executing, but that would not help with your architecture.
Stacked sequence structures are almost never the best choice for a program. I have not used them since about 1991. Learn about state machines. They are more flexible, powerful, extendable, and maintainable.
Lynn
03-27-2011 12:34 PM
try the attached VI..it should write all the data............ It is not the best way to use stacked sequence structure...........
03-27-2011 01:16 PM - edited 03-27-2011 01:21 PM
I've changed the architecture to something that is way better then the sequence structure you had (State Machine). Just to give you an idea on how it could be done.
Still the dynamic data type is in there (which I don't like), but I'm not going to change your method.
I've cleaned up your code a bit. It's still not perfect, but it's done in 2mins.
I do have one question though : why are you saving an entire column (the last) of data which contains the same value (namely the total time the test ran)???
03-28-2011 01:43 PM
Thanks Lynn ,
03-28-2011 01:48 PM
Anil thanks alot for the help , but i could not open it coz i have LabView 8.2
if you can attache it again with 8.2 8.2 version please
03-28-2011 02:20 PM
Thanks alot Bjorn , I would like to see the architecture ,but the labview that I am using is 8.2, If you can reattache it please
regarding the question,:
smileysad: I do not need that column ,and I do not really know why is that .
I tryed some string ,but I was not lucky for the right one
Regards
03-28-2011 03:32 PM
Hi othman,
Downgraded it to 82. If there is something you don't understand, don't hesitate to ask
04-07-2011 08:31 PM
04-08-2011 07:58 AM
in 8.2