Our online shopping is experiencing intermittent service disruptions.
Support teams are actively working on the resolution.
Our online shopping is experiencing intermittent service disruptions.
Support teams are actively working on the resolution.
02-13-2019 09:18 AM
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!
02-13-2019 02:24 PM - edited 02-13-2019 02:29 PM
@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.
02-20-2019 03:21 AM
Hi!
I've chosen to apply different microcontroller, but thank you for replying!
Please, consider this question closed.
Thanks!
02-20-2019 09:26 AM
Okay, good luck
FYI: Everything I said above generally holds true for any microcontroller.