LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to setting time for acquire data in Continuous Measurement and Logging Template?

Hello everyone!! I'm new.this is first time i use labview.

 

I start my project by use Continuous Measurement and Logging Template for my project. My project is measurement value of gas sensor.

 

and I would like  project can setting time for acquire data by user and working same "Stop Case" I have problem to write block diagram.

 

I think , i should use Elapsed Time for set target time and send condition to stop working but I don't know where is i should put Elapsed Time for working and how to write condition. i don't understand about Message queue.  

 

 

 

 

Please advise me/

 

Thanks 🙂

 

 

0 Kudos
Message 1 of 3
(2,566 Views)

This is my idea that i try

 

First, I add Enqueue Message for Enable time case

 

Capture 1.PNG

 

Then, I create Enable time cases and write box diagram fallow below pic.

 

Capture2.PNG 

 

But when i run program,it don't work, time don't count 

 

Capture 3.PNG

 

Please help me.

0 Kudos
Message 2 of 3
(2,530 Views)

Hi 90110,

 

Do you have the Automatically Reset After Time Target enabled for the Elapsed Time.vi? This could be resetting the value of the indicator to 0.  Also, make sure the value you are putting in the Time Target(s) terminal is greater than 0. 

 

I encourage you to use Highlight Execution (Lightbulb on the task bar) in LabVIEW to watch how your code is working. This could help explain the behavior you are seeing.

 

Best of luck.

 

Robert R. | Applications Engineer | National Instruments
0 Kudos
Message 3 of 3
(2,488 Views)