LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

analog voltage trigger threshold

Hi,

 

I'm trying to set up a threshold voltage that will start the timer, however my timer starts a lot earlier and i cannot work out why.

 

Many thanks in advance,

 

Julia

0 Kudos
Message 1 of 5
(2,628 Views)

Hi Julia, welcome to the NI Discussion Forums!

 

The code is a little difficult to follow as a picture, are you able to post the code? My initial suspicion is that you're making a comparison between two arrays for your thresholding analysis and these arrays are most likely different sizes. Did you mean to compare the values with a single, constant number?

Regards,

Ben Clark
0 Kudos
Message 2 of 5
(2,589 Views)

Here is the code 🙂

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

I have been working on this all day. Now the problem is that it read my voltages as i want to, but it doesn't start the timer at all. When i take all the "timing code" out of the case structure,, it implements it before i want to start it timing.

 

Many thanks in advance.

0 Kudos
Message 4 of 5
(2,568 Views)

Hi Julia,

 

I've drafted a quick VI to show you how timing can be triggered and ran continously, in the example based off of your original code, the Time Elapsed VI will turn on the boolean LED until the values from the analogue input have reduced to below the threshold and the timer will be reset.

 

Please let me know if this helps.

 

EDIT: Looks like the post is having trouble downloading an attachment, try a temporary download here.

Regards,

Ben Clark
0 Kudos
Message 5 of 5
(2,542 Views)