10-18-2018 07:30 AM
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.
Solved! Go to Solution.
10-18-2018 07:34 AM
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.
10-18-2018 08:07 AM
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?
10-18-2018 08:17 AM
10-18-2018 08:23 AM
okay.
Then you mean that I/O assistant can't be used with arduino as a replacement for the NI DAQ device, right?
10-18-2018 08:49 AM
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.
10-18-2018 08:59 AM
thank you for your patience. Now, I understood
10-18-2018 09:37 AM
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?
10-18-2018 10:25 AM
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.