LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Instrument I/O assistant use

Solved!
Go to solution

I am still a beginner in LabVIEW Software. I want to write data on a motor that is connected to Arduino board. The question is: "Can I use the Instrument I/O assistant" blocks in order to write data to that motor connected to the Arduino?"

The reason is: I can't use Arduino or Linx modules. I can only use VISA, but I don't understand how I will define the motor pin number on VISA. So, after searching, I thought I can use the Instrument I/O assistant but with Arduino instead of the NI Device. Please, help me to understand if I was wrong.
Thanks in advance.

0 Kudos
Message 1 of 9
(3,797 Views)

Hi muneerkun,

 

use VISA functions like VISARead and VISAWrite, no need for the IO Assistent…

 

how I will define the motor pin number

You need to define that in the Arduino sketch.

Maybe you can define a command/parameter in that sketch and send the command/parameter from your LabVIEW VI.

 

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 9
(3,795 Views)

Thank you so much. the problem is I am trying to avoid writing anything on the arduino IDE sketch. I want to write the whole code from labview.

 

Is it possible anyway?

0 Kudos
Message 3 of 9
(3,775 Views)

Hi muneerkun,

 

I want to write the whole code from labview.

Use LINX.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 9
(3,771 Views)

okay.

Then you mean that I/O assistant can't be used with arduino as a replacement for the NI DAQ device, right? 

0 Kudos
Message 5 of 9
(3,763 Views)
Solution
Accepted by topic author muneerkun

Hi muneerkun,

 

you mean that I/O assistant can't be used with arduino as a replacement for the NI DAQ device, right?

Generic answer: no. Somewhat special answer: it depends…

 

The IO Assistent is made for devices connected by a bus supported by VISA: this qualifies your Arduino as you communicate using a (virtual) COM port. But the IOAssistent also needs that instrument to react on certain, predefined commands with a predefined message: to allow that you would need to create an Arduino sketch with those commands and answer messages implemented!

As far as it seems you don't have any sketch implemented, so the IOAssistent isn't usable right now.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 9
(3,757 Views)

thank you for your patience. Now, I understood

0 Kudos
Message 7 of 9
(3,748 Views)

I know this is off topic, but this is the second post I have read that the OP said they can not use LINX, LIFA, or "have to use VISA" to communicate with an arduino.

 

Where is this coming from?

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 8 of 9
(3,742 Views)

Linx is a superior tool to communicate and control a controller such as Arduino. But, it is only limited for the supported embedded systems. 

 

Also, in my case, I was using Arduino uno to position control a servo motor. I know that it can be made using linx > sensors > motion servo. But, I wanted to avoid using it and to try using the linx > digital write , and the control and simulation module. I tried doing it but I failed. I attached my own trail "my VI". I got the idea from this example on the internet (the attached "working VI"). I thought I can replace the NI DAQ device (because I do not have it) with my Arduino uno , and that's all the story.

Download All
0 Kudos
Message 9 of 9
(3,735 Views)