11-12-2021 01:42 AM - edited 11-12-2021 01:48 AM
Hello,
I'm relatively new to LabVIEW, and for a school assignment, I have to actuate a linear actuator.
Previous students already bought the NI USB-6001, so it would be nice if it were possible to use it.
To be able to supply the correct power for the linear actuator, I use the BTS7690 Motor driver,
This is why I need to generate a PWM signal that is above 400Hz. However, after reading through the forums, I found out this is not really possible since the USB-6001 only supports software timed PWM signals.
So the idea a teacher came up with was to send the values via an 8-bit signal to an Olimex stm32 Since these can create a consistent PWM signal.
How can I send 8-bit binary data to another device? What protocol is the easiest to use?
I appreciate any help you can provide.
Solved! Go to Solution.
11-12-2021 03:49 AM
Hi BHGF,
@BHGF wrote:
To be able to supply the correct power for the linear actuator, I use the BTS7690 Motor driver,
This is why I need to generate a PWM signal that is above 400Hz. However, after reading through the forums, I found out this is not really possible since the USB-6001 only supports software timed PWM signals.
You can use an AO to generate your PWM signal at 400Hz...
11-14-2021 08:52 PM - edited 11-14-2021 09:47 PM
If you use the Olimex stm32 (basically an Arduino) then you do not need the USB-6001 at all.
I would just program the Olimex stm32 in its native language so you can set the PWM duty cycle through the serial port. Then use LabVIEW to communicate with the Olimex stm32 using VISA just like any other instrument on a serial port.