LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

String to decimal number cluster?

Hi xin,

why do you have a 2d Array? i thought like this.

Mike

0 Kudos
Message 11 of 24
(1,454 Views)

yes, you're right,

but the vale in the Cluster doesn't change more, it shows alway the first pair,

I'd try with the Index "i", then it shows nothing.

0 Kudos
Message 12 of 24
(1,451 Views)

Hi xin,

yes this could be, because you check always the complete string. Try this example. Hope it helps.

Mike

0 Kudos
Message 13 of 24
(1,444 Views)
ya, this time it changs, but only in one feld, how can i get the two values at the same time? 
0 Kudos
Message 14 of 24
(1,440 Views)

Hi xin,

store the first value in the shift register, and bundle same if you receive the second number.

Mike

0 Kudos
Message 15 of 24
(1,438 Views)
sorry, i don't get it, where can i see the results?
0 Kudos
Message 16 of 24
(1,433 Views)
If I understand correctly, the bytes for x and y do not arrive in the same iteration and that is why the shift register is used.  Hence the "array to cluster" operation should be done every other instance when a non zero data is received (i.e. inside the case structure).

You can to have a counter to count to count
a. convert string to array of numbers
b. convert the array to cluster
c. clear the string for the next set of x and y
d. reset the counter

Hope that makes sense.
0 Kudos
Message 17 of 24
(1,430 Views)
I want to show you this, so i need this two values realy to be outputed, so that i send them into another processing.
 
(It's a bad implementation and bad to read, but please help me...)
0 Kudos
Message 18 of 24
(1,424 Views)

Hi xin,

try this. with this example you get every loop the last to items of the array, but it is not sure if they belong together.

Mike

0 Kudos
Message 19 of 24
(1,417 Views)

It looks like the same results as the last one, the two values are still in one feld...

Or did i misunderstand?

0 Kudos
Message 20 of 24
(1,412 Views)