08-03-2016 06:26 AM
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
08-07-2016 01:58 PM
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.