LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Timing

Hello,
I am developing a VI for finite data aquisition, I would like to add a timing option to my VI. In my program I click start to start aquisition and end to end it etc... as can be seen from my front panel. I would also like to have the option to specify a specific amount of runtime, and click run and let it countdown from the specefied time. I am not sure of the best way to do it, I am using a simple state machine, so shall i add timing in the initialize case or the run case? Attached are snapshots and the VI itself.

Thank you
Labview Newbie

Message Edited by Alloush on 08-17-2006 06:38 AM

Download All
0 Kudos
Message 1 of 9
(3,662 Views)
0 Kudos
Message 2 of 9
(3,659 Views)
Use the "Elapsed Time" function or make your own by substraction the loop actual duration to the amout of time you set.

Or you can also compute the number of sample to acquire from the acquisition rate and the duration and use different DAQmx settings.

I ll try to find time latter today to modify your VI


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 3 of 9
(3,653 Views)
Hi Titou I am trying to use the elapsed time function, by setting a start time and a time target, but it does not seem to have an affect. You mentioned three alternatives, how do I choose which one to use? and which onewould be the most effective?

Thank you
Alloush


0 Kudos
Message 4 of 9
(3,646 Views)
I assume the mopst effective and probably the easiest would be to set the DAQmx task according to what you want. I am not an expert in DAQmx, far from Smiley Sad !
But I know for sure that there are loads of examples for if you want to set a continuous acquisition or a certain number of point to acquire and so on. So I suggest you look through the examples and try to learn about the different way to set up a DAQmx task ;).
I know this is a lot of work... good luck !

Hopefully somebody here will be able to tell you more on DAQmx in other section of the forum 😉

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 5 of 9
(3,644 Views)
HI Totou,

How about this way ?, can I change the control from reading in in milliseconds to seconds.


Cheers
Alloush
0 Kudos
Message 6 of 9
(3,639 Views)
0 Kudos
Message 7 of 9
(3,633 Views)
Sory I can t open your VI.. Smiley Indifferent

What version of LabVIEW doyou have ??


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 8 of 9
(3,632 Views)
I have version 8.0 But here is a screen shot


Cheers
Alloush
Download All
0 Kudos
Message 9 of 9
(3,629 Views)