LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling Micro-controller using Labview

Solved!
Go to solution

Hello everyone, 🙂

I want to control the STM32 (Nucleo-32) using the the labview.(like Arduino using the linx library) some one know how to do it?

 

please looking forward to your help.

Thank you 

0 Kudos
Message 1 of 27
(4,261 Views)

These examples rely on having some code on the Arduino ready to communicate with the LabVIEW side. This will always be the case no matter the board you use. You will have to write some code on the microcontroller to do comms with LabVIEW over serial or Ethernet.

 

The simplest thing would be a serial/Ethernet receive routine that parses a message from the port and affects an output. Then also have some periodic task on the micro that reads whatever inputs you want and sends that information back at some regular interval or on-demand. Anything further is just going to be more custom.

 

I would recommend looking at the LINX or LIFA source code and either copy what they have done and modify for your application or just get some ideas from it and implement something much simpler.

 

This is not a LabVIEW question, by the way, it is only a question of how to communicate with the micro over serial or Ethernet using LabVIEW. If you are unfamiliar with VISA and the serial and TCP primitives in LabVIEW, there are many shipping examples and forum posts about those topics in general.

_______________________________________________________________
"Computers are useless. They can only give you answers." - Pablo Picasso
Message 2 of 27
(4,230 Views)

LINX isn't just for Arduino:

 

Digilent LINX (Control Arduino, Raspberry Pi, BeagleBone and more) Toolkit for LabVIEW - Download - ...

 

Given LINX is open source (LINX FAQ [LabVIEW MakerHub]), I wander (I don't know) how hard it would be to adapt it to STM32...

 

That would save a lot of work on the host side...

 

EDIT: That crossed. I think we're saying the same thing.

Message 3 of 27
(4,228 Views)

@User002 wrote:

Hello everyone, 🙂

I want to control the STM32 (Nucleo-32) using the the labview.(like Arduino using the linx library) some one know how to do it?

 

please looking forward to your help.

Thank you 


Control or program?

 

You can control anything that has a serial port (or some other standard communications port) using LabVIEW and VISA, as long as you know the communication protocol.  

 

But you can only directly program certain devices using LabVIEW and the LINX toolkit, such as Arduino, Raspberry Pi, and BeagleBone.

 

Frankly you would probably be better off programming the STM32 in its native language and use LabVIEW and VISA to control it just like any other instrument on a serial port.

========================
=== Engineer Ambiguously ===
========================
Message 4 of 27
(4,197 Views)

@RTSLVU wrote:

But you can only directly program certain devices using LabVIEW and the LINX toolkit, such as Arduino, Raspberry Pi, and BeagleBone.


That is strictly speaking only true for the Raspberry Pi and BeagleBone Black. Arduino targets can have the Linx library installed that provides a Linx compatible communication interface but you can not have LabVIEW code deployed to an Arduino target.

 

Generally for more complex operations on an Arduino you would want to develop an application in whatever favorite Arduino IDE you have and simply have it communicate with your own protocol through serial or TCP/IP. The same applies for STM32 and similar targets.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 5 of 27
(4,185 Views)

@rolfk wrote:

@RTSLVU wrote:

But you can only directly program certain devices using LabVIEW and the LINX toolkit, such as Arduino, Raspberry Pi, and BeagleBone.


That is strictly speaking only true for the Raspberry Pi and BeagleBone Black.


And obviously not all Raspberry Pis...

 

I don't know about all the A, B, +, etc. models, but I'm sure LabVIEW executables will not run on a Raspberry Pi Pico, which compares to an Arduino.

 

Just stating what (hopefully) is obvious...

0 Kudos
Message 6 of 27
(4,146 Views)

Yes, you need an ARM Cortex-A CPU. That means it needs to be at least a Raspberry Pi 2. Model A, B and their + variants make no difference.

 

Zero (except the Zero 2) and the Raspberry Pi 1 use an ARM11 core which the LabVIEW embedded environment can not run on.

 

Pico uses an ARM Cortex-M0 core which also doesn't work for a LabVIEW embedded environment.

 

As far as the Computing Module goes, you need at least the CM3. CM2 didn't seem to be ever released.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 7 of 27
(4,137 Views)

Hello everyone,

I want to control STM mirco controller using labview. I knw i have to use VISA but how Im not getting... Can someone help me with it? or someone did it before? need some suggetions.

 

thank you in advance 

0 Kudos
Message 8 of 27
(4,121 Views)

It won't help to create a new topic with basically the same request. You will have to start doing something yourself to learn how you can do it. This is not an STM32 support board so there is not a big chance that someone will show you a ready made example.

 

Basically you need a program on the STM32 developed in your favorite IDE (which can't be LabVIEW in this case) that provides some serial port handling of some sort.

 

Then you can start trying to communicate with that program through NI VISA. That is still potentially an effort to do, but without an existing application on the STM32 that you can communicate with through for instance putty or another terminal application, there is not so much we can do for you here.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 9 of 27
(4,093 Views)

hello, I will tell the situation  in detail,  I developed code using cube ide and its working fine when Iam sending commands with putty the im getting the results which i want. Now i want ti implement the GUI with lab-view and control it. Moreover im just looking for suggestions how i can develop it.

 

Thank you in advanvce

0 Kudos
Message 10 of 27
(4,084 Views)