LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to continously record data

HELLO

 

I am trying to cotinously record thermocouple and pressure data.  I am only able to capture the final data upon clicking the stop botton. How can I continously collect every data point?

 

BTW, I am using LabVIEW6 with XP

Thank you

0 Kudos
Message 1 of 14
(3,587 Views)

Did you try to take a look at the DAQ examples (Help>Find Examples...>>Hardware Input and Output>>DaQmx>>Analog Measurements>>Temperature)? I am pretty sure there is one that is doing exactly what you are looking for.

0 Kudos
Message 2 of 14
(3,572 Views)

YES! I did.

But the example didn't record the data.

 

0 Kudos
Message 3 of 14
(3,570 Views)

Sorry, I can't look at your VI (too early a version for me). Which example did you try? What hardware are you using? Do you get an error and if yes, which? Did you try to test your hardware from within MAX first?

0 Kudos
Message 4 of 14
(3,566 Views)

I use the "continous thermocouple mesurement", but I think because of the version, your might different.

I am using 6023E with SCXI devices. They're recognized by MAX.

I didn't get any error, just couldn't record each of data point, only the point when I click the stop.

 

0 Kudos
Message 5 of 14
(3,560 Views)

Please see my program which is attched. Thank you

And I have a loop for overall as well.

0 Kudos
Message 6 of 14
(3,553 Views)

Here is what I can see of your code, so it is in part guess work:

 

ScreenHunter_003.jpg

0 Kudos
Message 7 of 14
(3,550 Views)

So in essence, your code should do what you are describing it does. It is a wonderful example of beginner's code (we have all made some similar stuff at the beginning of our wiring attempts!).

Unless you really want to look for a loooong while at each bunch of thermocoupe data before moving on to the following, your code should look something like that (in your beginner's style, no offense intended, but there are a few new concepts in the newer versions of LV that would call for an entirely different structure):

 

ScreenHunter_004.jpg

 

This is obviously oversimplified, but that should give you an idea.

0 Kudos
Message 8 of 14
(3,544 Views)

Wow! That's fantastic! Thank you so much!

I will try to re-build my program.

If I have more problems, can I ask you again?

 

0 Kudos
Message 9 of 14
(3,543 Views)

Dear X,

 

I got the data continuously! Thanks a lot!

But I have another question is the data is repeatedly record on 1 second.

 

EX: 12/9/11 10:55:01, 27E+030E-150E-3, 27E+030E-150E-3, 27E+030E-150E-3, 27E+030E-150E-3, 27E+030E-150E-3

 

Should I set anything for only record a set of data for a second?

0 Kudos
Message 10 of 14
(3,523 Views)