LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW 2018(32bit) connectivity with STM32 via USB

Hi!

 

I'm using microcontroller (STM32L152RCT) and I want to send commands from LV to the STM32 itself via USB.

 

Is it possible ? If yes, can you please share a method which should I use, or even better - an example VI ?

 

Thanks!

0 Kudos
Message 1 of 4
(4,063 Views)

@Ragn wrote:

Hi!

 

I'm using microcontroller (STM32L152RCT) and I want to send commands from LV to the STM32 itself via USB.

 

Is it possible ? If yes, can you please share a method which should I use, or even better - an example VI ?

 

Thanks!


I have never used the STM32L152RCT but if it has an on board UART then simply use the proper USB to Serial converter. (3.3V or 5V logic)

 

In LabVIEW the USB to Serial adaptor will appear as a Com port.

 

Use VISA to communicate with the STM32L152RCT just like communicating with any other instrument on a Com port.

 

I am guessing you are also programming the STM32L152RCT0?

 

That makes it even easier because every aspect is completely under your control, you get to decide on the serial communication protocol, commands, and expected responses.  

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 4
(4,036 Views)

Hi!

 

I've chosen to apply different microcontroller, but thank you for replying! 

 

Please, consider this question closed.

 

Thanks!

0 Kudos
Message 3 of 4
(3,999 Views)

Okay,  good luck

 

FYI: Everything I said above generally holds true for any microcontroller.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 4
(3,991 Views)