08-17-2016 12:27 PM
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.
Thanks
08-17-2016 11:01 PM
Hope its possible to Drive stepper motor using DAQ (Digitial IO).True/False will trigger Clockwise and anticlock wise direction movements.
10-13-2020 03:18 PM
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
03-05-2023 11:37 PM
Hi there,
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
03-06-2023 12:42 PM
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.
03-06-2023 02:24 PM
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
03-06-2023 03:05 PM
03-07-2023 02:14 AM
Thank you very much
03-07-2023 04:19 AM
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.
03-07-2023 08:38 AM
Hi JB,
@JB005 wrote:
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!