LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a pulse time

So I'm currently working on a project where I'm digitally writing to multiple pins to an Arduino after pressing a button and staying digitally writing until the button is turned off manually. I'm still fairly new to labview and was wondering if there is a way to make a timer. The timer would have a control that the user can choose how long it goes for but the main function of the timer is to digitally write to those pins for however long is chosen and then it would change the button state to false/turn off the button automatically. Any advice/help on this would be appreciated, a version of the Vi has been attached. 

0 Kudos
Message 1 of 2
(587 Views)

LabVIEW code is not "backward compatible", that is, only LabVIEW users running LabVIEW 2023 will be able to open and view your code.  But do not dispair -- there is a "Save for Previous Version" button option -- open your VI, "Save for Previous Version", and go back 2 or 3 years (for example, I'm currently working in LabVIEW 2019 because most of my colleagues use this version).

 

If I were working on your Problem, I'd change the logic to have the Timer stop the program, and have a manual push-button to override the Timer.  LabVIEW comes with a nice set of Time functions, and is "unusual" in having "Time" be a sort of "variable" like "Numeric", "Boolean", or "String".

 

Bob Schor

0 Kudos
Message 2 of 2
(552 Views)