2021-05-26 12:29 AM
Hai,
I just want to enable the gpio through the LabVIEW using VISA communication, for this how can i make changes in stm32 firmware code to enable the gpio through the labview, if anyone have idea about to how to write the firmware code to access the gpio from LabVIEW Please give a suggestions or an example to access an gpio pin .
Thanks in advance
2021-05-27 07:36 AM
Hello VRajk.1,
so ST doesn't provide support for VISA commands by default and as far as I know there is no available materials on this topic. About connecting STM32 to labview you will find more information on national instruments forum. From my understanding first you will be interested in establishing communication between PC and the MCU. You can either use serial communication using USART peripheral or you can use Virtual COM port using USB peripheral as USB CDC class device. And then you will need to implement code to change the GPIO according to received commands.
ST offers number of tutorials how to setup communication namely I could recommend HAL basics fort the GPIO and UART communication and USB labs if you will decide connect the STM32 as USB device. Please click on Select as Best if my reply fully answered your question. This will help other users with the same problem to find the solution faster!