LabVIEW Interface for Arduino Discussions

cancelar
Mostrando los resultados de 
Buscar en lugar de 
Quiere decir: 

LabVIEW Interface for Arduino using Xbee Module

what settings did you use for the modem connected to the computer and the arduino, in the CTU.  you have pics but i dont know which is which.  im having the same problems as everyone here.  they wont communicate

0 kudos
Mensaje 51 de 98
3.383 Vistas

brother you need to do additional programming in arduino for making the xbees communicate . only LIFA will not make the xbee communicate.

0 kudos
Mensaje 52 de 98
3.383 Vistas

I did the modification of the code that changes the baud rates to 9600.  However I know that originally the firmware that's on the xbee them selves need to be correct for them to talk to each other also.  If you are talking about a different thing in the life code please provide me details please.

0 kudos
Mensaje 53 de 98
3.383 Vistas

actually i cant provide you the code .... but if you search the internet i hope you will get help.

0 kudos
Mensaje 54 de 98
3.383 Vistas

hknizer, not to be rude, however if you cannot provide a code or give details to how to fix the issue, why did you post anything at all.  The purpose of these disscusions is to help us learn and fix issues that we are having. 

If anyone has gotten their Xbee to communicate using the arduino and labview can you please help me with some of the settings and details you used to communicate with the two.  I have changed all the baud rates in the approriate 3 places and compiled the code and i still get a 5002 error in labview. 

Any ideas?

0 kudos
Mensaje 55 de 98
3.383 Vistas

i am not open sourcing anything my friend ...
i used this in a project so thats why i developed my own code.....i also searched the internet and found the answers..
you can find anything over the internet..

0 kudos
Mensaje 56 de 98
3.383 Vistas

I have tried the suggestions over the internet and my xbees do not communicate.  that is why i turned to here.  If the internet had solved my problem i would not have asked the question. 

0 kudos
Mensaje 57 de 98
3.383 Vistas

Hello Mikey,

Two questions:

Do you have a Sparkfun Xbee Explorer?

Do you have a Sparkfun Xbee Shield or an equivalent Xbee Shield from another source. 

You need both when using Xbee for a communication link between Labview and an Adruino board.

My suggested approach is first get your setup working using just the Arduino IDE.  Then once you have that working successfully move onto getting your setup to work with LIFA.

The following link is an Instructable quick set up guide.

<http://www.instructables.com/id/Xbee-quick-setup-guide-Arduino/>

Some additional instructions for testing your setup.

1.  Connect the Arduino board to your PC using a USB cable.

2.  On the Xbee Shield use the SPDT switch to connect the Xbee serial output to the Arduino's digital pins D2 and D3.

3.  Compile and upload the AnalogReadSerial example to your Arduino Board. The example is found in the Examples > Basics folder.

4.  On the Xbee Shield use the SPDT switch to connect the Xbee serial output to the Arduino's digital pins D0 and D1.

5  Use the IDE Serial monitor to see if the Arduino board is sending or is not  sending data to the Serial Monitor.

hrh1818

0 kudos
Mensaje 58 de 98
3.383 Vistas

Two questions:

Do you have a Sparkfun Xbee Explorer?

Yep,

https://www.sparkfun.com/products/11697

Do you have a Sparkfun Xbee Shield,

Yep,

https://www.sparkfun.com/products/10854

however my shield only has one switch DLINE or UART

The arduino works when plugged in directly.  just the xbee communication is not working.  however today i found some interesting things.

When i use the new X-CTU program they have i am able to find the xbee that is the coordinator, and i can find the xbee thats on the arduino power via the sheild, not connected directly to the computer.  This is the end device.  The New X-CTU has a open serial connection button.  When i do this, and run the range test i get data to send and recieve to both xbees.  i do get some TX errors and packets lost however they do communicate.  If i leave this open i get a -1073807246 error in labview,  if i close the X-CTU program i get the 5003 error.  i will attach a copy of the range test also.

0 kudos
Mensaje 59 de 98
3.383 Vistas

Capture.PNG

0 kudos
Mensaje 60 de 98
3.383 Vistas