Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

programming control

Hi
I am new to labview and am trying to use Labview to control the actuator position for my undergad project in creating a breathing machine imitating breathing patterns.I have managed to make the program in Visual studio and have a slight idea how to start programming in LAbview but am stuck in the timer and condition section.I am basically trying to move the actuator back and forward from 2cm to 7cm(i.e. 5cm) every 2 seconds i.e. first 2 seconds it moves forward and the other 2 seconds it moves back until the user clicks cancel.
There are 2 options-one normal breathing and the other hyper breathing in which case time is faster and therefore i have created 2 timers to switch back and forth in vb.
 
Can anyone help...any suggestons for improvement..
Thanks...
Download All
0 Kudos
Message 1 of 3
(3,352 Views)
Hi,

I made up an example based on the info you posted.  I hope I understood things correctly, but if not you can modify it to suit your needs.  I made the delay 400ms (2 seconds / 5 cm), and just arbitrarily made the hyper speed faster (250 ms).  There are probably other ways to implement this, but I think my VI is simple enough.
0 Kudos
Message 2 of 3
(3,328 Views)
Thank you very much.Helps a lot.I just have to put a time delay between the left and right operation and change a few things here and there.
Thanks again.


0 Kudos
Message 3 of 3
(3,323 Views)