LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

comunication with xbee using labview

Hello
 
I'm working in a project using labview 8.5 and in the end of this i have to communicate my spartan 3E board with one computer using two xbee. If i do it with the RS 232 cable,
i haven't got any problem but if i try to put the xbee when i compile apper this message:
 
ERROR: Xflow- Program map returned error code 2. Aborting flow execution.
 
However, is impossible that the FPGA is full because i try done it the last part alone and the problem persist. Therefore, I think that the problem is in the configuration of it. To configure:
 

1.No characters sent for one second

2.Input three plus characters ("+++") within one second

 3.No characters sent for one second
 
 
I do it with a sequence before i send my information, but is something wrong and i do a lot of different combination of different command and the problem continues.
 
I hope that someone could help me.
 
Kind regard
 
Josu
0 Kudos
Message 1 of 10
(10,673 Views)

Hi Josu,

there are different  possible reason for the error you reported. If the error is caused by an overflow you can see in the report compilation something like the message reported in this KB:

http://digital.ni.com/public.nsf/allkb/060BA89FE3A0119E48256E850048FFFE?OpenDocument

The error cuold also be caused by some window setting like:

http://digital.ni.com/public.nsf/allkb/A45687D827A81D6E86257195007807B3?OpenDocument

To have a more information about the error you have to look at the compilation report (attach the report to a post reply if you want).

Regarding to the XBee setting, unfortunatly from the NI side we don't have many suggestion to give you, sorry.

Regards

Clara

0 Kudos
Message 2 of 10
(10,639 Views)
Hi Loura
 
Thank you for your replay. I check it your links and the problem was that the program was so big, because I was using to much subVI and some of then to many times. So I do a redesign and know is compile satisfactorily. 
 
Regards
 
Josu
0 Kudos
Message 3 of 10
(10,633 Views)
I have posted example code on AT Commands and LabVIEW on our NI Developer Zone Community site. Here is the link (http://decibel.ni.com/content/docs/DOC-3023). Enjoy!!
0 Kudos
Message 4 of 10
(10,429 Views)

Hello,

 

i am working on a project which will interface labview with xbee.  i am having much trouble writing and reading to and from the xbee.  i want to write out API mode to the xbee and recieve hex code back from the xbee.

 

the project is a weather station which basicly uses 6 ADC's from a remote xbee and transmits wirelessly to a local xbee which is connected to the PC using an explorer (USB) board from "sparkfun.com"

 

Thus far i have been able to use X-CTU software to write and read the correct hex commands (API-mode) and this all works great!  Now i want to manipulate the data values from the ADC's and display them accordingly in labview.

 

Labview prefers ASCII but the arrays display in decimal when the Xbees prefer hex, is there an easy conversion program to read and write using primarily hex.

 

thank you for any help.

 

0 Kudos
Message 5 of 10
(10,143 Views)

You can set string arrays and indicators to display character data as their ASCII hex byte.  Right click on the control and select Hex display.

 

You can also format numeric controls and indicators to display integer numeric data as hex if you right click and go to Display Format

0 Kudos
Message 6 of 10
(10,136 Views)
thank you so much ravens fan, i was making it so much more difficult than it actually was, thank you so much.!!!
0 Kudos
Message 7 of 10
(10,116 Views)
Have you got your project running with LabVIEW yet? Can you please post it up or go through the steps. I'm trying to do something similar with my solar tracker. Thanks in advance. 
0 Kudos
Message 8 of 10
(9,714 Views)

Hi Grant,

 

I tried your example code (AT Commands in LabVIEW). I'm using USB port to connect XBee to my laptop. The Enter-AT-CMD-Mode is OK. But it failed when I set AT CMD. Is it only used for serial port?

0 Kudos
Message 9 of 10
(9,152 Views)

hi,

  

    i m  sending analog signal frome remote xbee but m not geting proper siganal in labview i have set remote xbee m using xbee in API mode 1... here i am attachjing my adc.vi, is there any seting for base xbee...m using XBP24 XBEE waiting for ur reply.

0 Kudos
Message 10 of 10
(7,279 Views)