LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Send 8 bit data using NI USB-6001

Solved!
Go to solution

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.

0 Kudos
Message 1 of 3
(1,281 Views)

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...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(1,258 Views)
Solution
Accepted by topic author BHGF

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.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 3
(1,214 Views)