11-07-2017 12:42 PM
Hello, I'm a student in electronic technologies and I need some help figuring out how to control a stepper motor with a DAQ module (NI USB-6008). We're using the digital I/O. I will attach exactly what I need to be doing and the schematic we used. I can't seem to figure out why it won't work but I need some major help with LabView. I'm always lost in this class and have no idea what I'm supposed to do. My instructor does a terrible job of helping when asked so I'm going to forums for help.
Please someone explain to me how I can do this. Thanks.
11-07-2017 09:25 PM
It looks like you need a specific set of 4 bits to be delivered to 4 digital outputs at (presumably) different time points.
Sometimes it helps to step back, look at the problem, and see how "What you Know" maps into "How You Can Use What You Know".
Bob Schor
11-08-2017 02:31 AM
what does lab 10.x in your document mean?
11-08-2017 02:48 AM
Just make 4x4 array of boolean and use index array to get 4 bit at a time. Then you just need to control the index , such as 0,1,2,3 for CW and 0,3,2,1 for CCW. To control speed just use wait.vi with numeric control in front panel. As for trigger(limit switch) just use select to control the index or the 4 bit logic to stop the stepper motor. It is the same when you want to make only 1 revolution.
The conclusion is to play with the index of the 4x4 array.With just that you can make any squence you want easily and you can even count how many angle the motor has move
If you want to smoothen the movement of stepper motor, you can use half step logic set rather than full step set.