LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Updating Variables Inside a Case Structure

Solved!
Go to solution

Hey guys,

 

So a little background first. I am attempting to control the speed of an actuator through a controller with LabVIEW. It is way more complicated than I am going to explain, so I'm not going to post my code. If you need anymore background, please let me know.

 

So right now, I have the current velocity outputting to my system. I have that comparing to a desired velocity. What I wanted to do was to say if the current velocity is less than the desired velocity, bump up the current running to the actuator. If it is greater than the desired velocity, lower the current. The idea here is to get the current provided to an equilbrium point that will cause the actuator to move at the desired velocity.

 

My original thought was to use a case structure with shift registers to update the supplied current.... until I found out that you cannot use shift registers with a case structure. So my question to all of you who are much more experienced with LabVIEW is what is the best way to achieve this effect?

 

 

Thanks in advance!

0 Kudos
Message 1 of 3
(2,901 Views)
Solution
Accepted by topic author jrydell15

Shift registers on whatever structure owns the diagram in which the case strucure lives.

 

Or an action engine for this control action.



Message 2 of 3
(2,897 Views)

Thank you, that worked!

0 Kudos
Message 3 of 3
(2,878 Views)