08-07-2013 10:58 AM
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
08-08-2013 10:14 AM
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?
08-08-2013 10:54 AM
Here is the code 🙂
08-08-2013 10:56 AM
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.
08-14-2013 06:54 AM - edited 08-14-2013 07:00 AM
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.