Hello, I want to control an A4988 stepper driver with LabVIEW and a DAQ similar to how you would control it with an Arduino.
I want to create a step index array of T/F in LabVIEW to send out to the driver via "daqmx write". This would essentially just be an array of pulses, TRUE or FALSE, as a digital output of a multifunction DAQ. Then I will put a 4 ms wait inside the loop after each pulse.
I just want to know if this is doable?
I have attached a screen shot of my LabVIEW code.
Hope its possible to Drive stepper motor using DAQ (Digitial IO).True/False will trigger Clockwise and anticlock wise direction movements.
It is possible, thats how they use it in arduino. The step pin is controlled by True/False pulses, where as direction pin is controlled by true / false
This is a long shot, but would you please be able to show what you have on the left side of the attached photo, as I am carrying out a similar project. Thanks
Thanks for reaching out. PFA of the code. I use NI-myRIO for my project. So, the code is for myRIO but you should be able to work with the same logic.
You can change the speed by changing the elapsed time and the constant.
Firstly thank you so much, I didn't know if I would get a response after such a period of time. I am working off of LABVIEW 2016, so was wondering, if possible, if you could please attach screenshots of the programme instead, as the vi isn't compatible with my version of LABVIEW. This would be greatly appreciated. Thanks
Apologies if this is a stupid question, but I couldn't find the digital output box on LABVIEW, so I programmed the DAQ Assistant instead, however, it is saying that the source and sinks are not compatible. I was wondering if anyone came across this problem before, and if so how to fix it. Thanks in advance.
Apologies if this is a stupid question,
Yes, it is a stupid question! 😄
The answer is given in the error explanation: the DAQAssistent expects an array of booleans and you only provide a scalar boolean value!
What's the point of that Select node before the DAQAssistent? It's THE classic Rube-Goldberg!