LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Continually update input value

I have, in conjunction with a LabView support engineer, developed a VI which records a frequency input, converts the signal into rpm and scales the output as a 0-5V signals (0-3000 rpm range).

 

The VI works perfectly except it does not constantly update, i.e. the voltage output is constant at the first frequency it records, how can I modify the VI so it constantly updates the output as the input varies?

 

I have attached the VIs I've been using.

 

Thanks,

 

Richard

 

Download All
0 Kudos
Message 1 of 3
(2,539 Views)

I'm not seeing anything immediately wrong, DAQmx wise.  Are you getting any errors?  Try removing the Run Task for the Analog Output.  Since it should just be an on-demand task, you shouldn't have to tell it to run.  Just write to the task inside of the loop.

 

I felt the need to clean up your VI.  There is no need to have 2 stop buttons.  And then all of the ORs can be combined with a Compound Arithmetic Function.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(2,504 Views)

Hi.

 

Thanks for the reply. I have run your version of the vi this morning and I'm still getting the same result. The output is correct when I first run the VI but it never updates. I left it running for a bit longer this time and I eventually get the attached error.

 

I appreciate your help.

 

Many thanks.

 

Richard

 

 

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