LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW and Arduino

sorry but I have a problem with LabVIEW, I hope you can help me.
my project is to make a LabVIEW interface with Arduino and a machine.
I will make two buttons (like 1,2) that when I click number (1) you should
spin the machine (5s) and when I click (2) the machine
turned 4s
I don't know if I will do the program in Arduino or  LabVIEW

0 Kudos
Message 1 of 10
(2,104 Views)

Why use LabVIEW at all?

What is the purpose of having the Arduino?

Doesn't the "machine" have interfaces such as serial , wifi, or Ethernet ?

0 Kudos
Message 2 of 10
(2,077 Views)

this is my final project at university and I should do it with Arduino.
my problem is how I make the Arduino program in LabVIEW

0 Kudos
Message 3 of 10
(2,058 Views)

@patron.11 wrote:

this is my final project at university and I should do it with Arduino.
my problem is how I make the Arduino program in LabVIEW


https://www.labviewmakerhub.com/doku.php?id=libraries:linx:start

 

 

0 Kudos
Message 4 of 10
(2,052 Views)

In general there are three ways of using LabVIEW with an Arduino

 

  1. Program the Arduino in the native Arduino language and use LabVIEW to access the Arduino using VISA just like any other instrument on a serial port.
    1. IMHO: this is the best way as you have full control over the communications protocol and access to all of the of Arduino libraries and LabVIEW toolkits that are already out there.
  2. Use LINX (LIFA has long since been deprecated)
    1. Full LabVIEW integration, but limited amount of Arduino libraries and peripherals directly supported
    2. The Arduino basically becomes a tethered DAQ device that needs to be connected to a computer to work
  3. TSXperts Arduino compiler for LabVIEW
    1. Actually turns LabVIEW into compiled Arduino code. (A real feat on its own)
      1. Limited subset of LabVIEW vi's and primitives
      2. Very limited support for Arduino libraries 
      3. Development seems to have stopped, so those annoying bugs are here to stay
========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 5 of 10
(2,036 Views)

the Arduino program is finished but how can I put it on visa is my problem

0 Kudos
Message 6 of 10
(2,015 Views)

@patron.11 wrote:

the Arduino program is finished but how can I put it on visa is my problem


 

Watch this video for some good ideas. VIWeek 2020/Proper way to communicate over serial

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 7 of 10
(1,998 Views)

still my problem with how I pit the Arduino program in Visa 

0 Kudos
Message 8 of 10
(1,967 Views)

You don't put the Arduino program in VISA but the following is how you would do that,

 

  • Arduino
    • Implement your regular digital/analog read/write loop
    • In addition, use the Serial.Read or Serial.Write to implement a system which allows Arduino to respond to communication over the Serial (UART) port
    • This serial communication structure can be on-demand (reply only when there is a query) or broadcast (continuously provide the data)
  • LabVIEW
    • Use VISA APIs to communicate with a device on Serial port
    • Based on what "you implemented" on the Arduino (whether on-demand or broadcast), you would have to just keep reading on VISA or query the required data

I hope, this helps you better connect how LabVIEW and Arduino side of things fit at a high level.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution
0 Kudos
Message 9 of 10
(1,962 Views)

@patron.11 wrote:

still my problem with how I pit the Arduino program in Visa 


Well since we don't have any idea what your Arduino program does and what your LabVIEW program is intended to do, there's not much else we can tell you.

 

But your question really sounds like you lack basic understanding of LabVIEW and VISA.

 

LabVIEW is a programming language, VISA is a hardware abstraction layer for handling communication between programs (LabVIEW, C# C+, Etc.) and hardware (instruments on a serial port, GPIB bus, Ethernet, Etc.).

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 10 of 10
(1,953 Views)