LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Append data coming from Serial Port in Serial Indicator in Front Panel?

I am receiving an array by ZigBee interfaced with LabVIEW. The problem is LabVIEW receives the array of numbers if the largest index is 120 but if it is greater it receives nothing.here is my code.

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

1. You should not have that FOR looop.  All it is doing is duplicating the data you recieved 1000 times.

2. What is the actual format of the data?  It looks to me that you are just not doing the conversion correctly.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 6
(3,741 Views)
It is just an array of integers that I am sending.
I am facing two problems.
1. I am not receiving any kind of data if the array is bigger than 120 index size.
2.The second problem is that the number bigger than 255(1byte range) does not receive as it is ....like I got 255 if I send 300.....
0 Kudos
Message 3 of 6
(3,612 Views)

Hi, just two clarification questions because I'm not sure where the problem is exactly.

 

1. You mention an array bigger than 120 index. Where is the index larger than 120 indexes being generated? How do you know it has more than 120 items in the array?

 

2. I'm also not entirely sure what you mean by this. What string did you send, and what U8 did you receive? 

0 Kudos
Message 4 of 6
(3,569 Views)
Clarification for the ist one is
I have simple array say 500 numbers of integer type.
If I set its index 120 then the other 380 element are rejected and I got 120 first elements
But if I set the index greater than 120 like 121,122.....
Then I received nothing.
0 Kudos
Message 5 of 6
(3,556 Views)

Could you upload code that reproduces this behavior that isn't using hardware? It sounds like the issue is within the software, so you should be able to recreate it and we can look at your code. 

0 Kudos
Message 6 of 6
(3,537 Views)