I am a student using LabView for the first time and working on a code using LabView and myRIO. I am trying to run two different motors, make them run clockwise for 5 sec., stop for 2.5 sec., run counter-clockwise for 5 sec., stop for 2.5 sec. Then make it loop four times before stopping.
I'm not sure where I am going wrong here, but I think something is wrong with either the input or the case structure. The code runs, but nothing happens and I've checked to see if my motors are properly soldered and plugged in.
I would appreciate if someone could point me in the right direction!
You have a LOT of express VI's there we can't look into because you attached a screenshot rather than a VI.
What kinds of motors are these? You have several different digital outputs you are wiring True constants to, but I never see you wiring a false to them. Your case structure is always True because of the constant, and we can't see the false case.
I've added the VI file in the thread. Didn't think properly about what wasn't being seen due to it being just a screenshot.
These are two brushless DC motors. I didn't wire a false because I wasn't sure where I would put one, and I didn't know what my false case would be.
What do those digital outputs do? Do they drive a relay that turns on the motors in a particular direction? How do you change to the other direction? How do you stop the motor so you can change to the other direction?
Before you get into a more complicated VI, have you been able to do a couple basic steps in LabVIEW to be able to turn on and off one motor? Ar eyou sure your motor is getting voltage?
Digital outputs don't do anything but put a voltage at that terminal. They don't turn a motor until you wire things up. How do you have the motor wired up? What voltage and current does it draw? What power supply are you using to power it? Do you have relays in there?
Think about how you turn on and off a motor if you weren't using LabVIEW.
Yes. Physically wired. How do you connect the motors to your DAQ device?
If the professor's VI works, then what does it look like? What is different about your setup vs. his setup?