LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem in saving data in spreadsheet that comes from DAQ

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

0 Kudos
Message 1 of 10
(3,229 Views)

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

0 Kudos
Message 2 of 10
(3,222 Views)

try the attached VI..it should write all the data............ It is not the best way to use stacked sequence structure...........

Anil Punnam
CLD
LV 2012, TestStand 4.2..........
Message 3 of 10
(3,212 Views)

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)???

Kind regards,

- Bjorn -

Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's 😉
LabVIEW 5.1 - LabVIEW 2012
Message 4 of 10
(3,205 Views)

Thanks Lynn , Smiley Happy

0 Kudos
Message 5 of 10
(3,187 Views)

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 pleaseSmiley Happy

 

 

 

 

 

0 Kudos
Message 6 of 10
(3,183 Views)

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  Smiley Sad

 

Regards

0 Kudos
Message 7 of 10
(3,172 Views)

Hi othman,

 

Downgraded it to 82.  If there is something you don't understand, don't hesitate to ask

Kind regards,

- Bjorn -

Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's 😉
LabVIEW 5.1 - LabVIEW 2012
0 Kudos
Message 8 of 10
(3,162 Views)

 

Dear Bjorn 
I am trying to see the effects of  DAQ assistant properties on the 
reading. like changing sampling rate , different frequency deferent   
mode.
when  I increase the sample to read the time increase . and the time is not any more is the  actual time of reading
.
my questions 
1-what would be  the recommended mode for thermocouple
2-If i want the correct time for the reading 
   
3- the saved data start with different time in the  previous program .  to make it start from zero just when i press continue button ,
 
I have a LABVIEW 8.2 and NI USB-9211A
I hope to have your kind response!!
Thanks alot

 

0 Kudos
Message 9 of 10
(3,126 Views)

in 8.2

Anil Punnam
CLD
LV 2012, TestStand 4.2..........
0 Kudos
Message 10 of 10
(3,120 Views)