LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView Control programming

Hi. I am very new to LabView and i am supposed to be able to change the speed of 5 pumps and 1 motor with the help of Arduino Uno I2C and Linx. The stepper driver currently being used is MBC25081. We have not been able to change the speed of pumps and the motors. Can anyone please help modify the code that i have uploaded in this thread so that the speed can be controlled for these stepper motors. I will be very grateful if someone does. Thank you all for your time.

 

0 Kudos
Message 1 of 2
(2,064 Views)

Whew!  That is a big block diagram!  Some tips, don't hide the labels of the terminals on your block diagram.

Also use block diagram cleanup to shrink the size.

 

Before creating a monster size program, start smaller.  Create a VI that gets one motor to work.  When you've done that, then you know you have some working pieces to build on.

 

When expanding, start thinking in terms of modularity.  Don't create 6-7 times the code.  Think subVI's that do one thing that can be repeated 6-7 x for each motor/pump via For Loops.  Think arrays.  Don't create multiple nested True/False cases where the only difference is a constant output.  Think in terms of calculations and logic that would let you work with multiple case case structures, or code that can calculate what that constant should be.

 

Control Applications imply a state machine architecture where you sequence yourself through a series of steps and decision logic can determine when to move to the next step, stay in the same step, or even return to an earlier step.

 

Don't create monolithic applications that are hard to modify or expand on.

Write your documentation first.  Create flowcharts on paper that define your series of steps.  Then throw away what you have and start over.

 

 

 

 

0 Kudos
Message 2 of 2
(2,049 Views)