Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

XBEE API MODE communication

I am using xbee s2c in api 2 mode to transmit data using LABVIEW to another xbee connected to xctu or arduino uno. I am able to write the frame on xbee connected to labview using VISA write function but it is not transmitting.

I am generating a hex array of the frame and then sending each element of array one after another like 7E then 00 then 10..using VISA Write.

Please help me to solve this.

0 Kudos
Message 1 of 6
(3,241 Views)

This is the block diagram from writing the api frame generated. 

 

Note: Red crossed line is not included in the final block diagram.

0 Kudos
Message 2 of 6
(3,219 Views)

Hi

Are you sure you really need HEX, why not binary. In fact why send the hex (ascii in fact) representation of a byte when you can send the byte yourself?

greetings from the Netherlands
0 Kudos
Message 3 of 6
(3,215 Views)

I have no idea what will work. I just tried to generate a frame similar to the one generated in XCTU and there a hex frame is generated. If sending binary can work i will try that.

 

Thanks.

0 Kudos
Message 4 of 6
(3,213 Views)

Hey

 

As u suggested i tried sending the bytes i.e. instead of sequence 7E..00..12..and so on, I am sending decimal equivalent 126...0..18..so on. But still i am not getting any output.

 

Please give me some solution.

 

 

0 Kudos
Message 5 of 6
(3,197 Views)

Hi

I suggested to use the value of the character instead of the decimal interpretation.

You can convert a decimal value to a character by filling an array of bytes with decimal values and then convert this array into a string again. It seems a lot of work but in fact is easy.

 

If necessary post your vi and I will change it, but remember I don't know your XBEE part.

So if documentation about that part is available, send it also.

greetings from the Netherlands
0 Kudos
Message 6 of 6
(3,195 Views)