LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

elapsed time since boolean true

Hello. I have a simple Boolean value and I just want to know if it is possible to actively record the time since it has been true/false.

0 Kudos
Message 1 of 12
(4,126 Views)

@ASCE wrote:

Hello. I have a simple Boolean ...


Booleans are always simple. 😄

 

Try the attached.... (LabVIEW 8.2)

 

Download All
Message 2 of 12
(4,117 Views)

Thanks a bunch!

0 Kudos
Message 3 of 12
(4,100 Views)

Hello again. I am having problems with wiring this timer. Would you please take a look at this for me?

0 Kudos
Message 4 of 12
(4,075 Views)

Please attach a real VI or a snippet instead of a picture.

You also did not define what the program is supposed to do.

 

From a quick glance, I think you have a dataflow problem. For example the stop condition of the inner loop will never update once the inner loop starts, and will cause it to either stop immediately or run forever, locking up everything and preventing the outer loop from spinning.

 

Try to put everything in the outer loop and delete the inner loop.

0 Kudos
Message 5 of 12
(4,067 Views)

I am trying to create a data-flow program in which I control the elements of an array. I want a boolean to tell me when the elements(one by one) in an array fall within a certain range for 60s. After, I want to create a case for each in which an action takes place. I want a certain amount of voltages to be sent to a device according to those ranges. What are some good vi's to instruct Labview to send certain things(save/store text, send voltages, etc.).

I attached the VI and I had one other timer that is constructed,using shift registers, to tell me the time. Let me know if the one you gave me will be better to use for the boolean.

0 Kudos
Message 6 of 12
(4,052 Views)

@jafon wrote:

II attached the VI ...


Where?

0 Kudos
Message 7 of 12
(4,035 Views)

My apologies.

0 Kudos
Message 8 of 12
(4,018 Views)

As I said, put everything in the outer loop. Get rid of the inner loops.

0 Kudos
Message 9 of 12
(4,005 Views)

Try this quick and dirty modification. (I did not clean up the code).

 

 

0 Kudos
Message 10 of 12
(4,002 Views)