LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I send commands and receive ouputs from arduino using VISA

Hello,

I am working on a project concerning Wireless Sensor Network using Xbees and Arduino, and the idea is to control when to read data, from which sensor, and then save each sensor's measured data into a specific file (or column in TDMS files) ..For now I want to control an arduino by sending a command and receiving a response using Labview. I'm new to this so bare with me please:

1- I have modified the arduino firmware (LABVIEWinterface.ino) that LIFA provided, to add two cases:

case 0xB8:

digitalWrite(13, HIGH);

Serial.write("hii");

break;

case 0xB9:

digitalWrite(13, LOW);

Serial.write("bye");

break;

2- I have made a simple labview code, but when i send B8, or it's equivalent in decimal nothing works and i get a timeout error.

Maybe, there is another proper way of sending commands and receiving data from labview ?

Appreciate your help


Download All
0 Kudos
Message 1 of 2
(3,983 Views)

When using LIFA firmware on the Arduino, you must also use LIFA in LabVIEW.  However, LIFA has been deprecated for quite a while now and therefore, you should upgrade to the LIFA replacement called LINX.  Similar to LIFA, you will be able to add your own custom commands to the firmware.

Message 2 of 2
(3,536 Views)