ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

String to decimal number cluster?

Hi,
I'v sent a mouse position through the UDPsender and UDPreceiver, and on the  UDPreceiver-side, how can i get this coordinate- value in decimal number from the UDP-data String again? I'd tried to make this with "type cast", but it did'nt output the cluster value... how can i do this?
 
thanks! 
0 Kudos
Message 1 of 24
(4,436 Views)
A sub vi is missing...
 
Try STRING >> STRING NUMBER CONVERTION >> STRING DECIMAL TO NUMBER
0 Kudos
Message 2 of 24
(4,429 Views)

Hi xin,

in which format is the mouse position in the string? Do you create it with LabView?

Mike

0 Kudos
Message 3 of 24
(4,420 Views)
Oh ya, sorry, I'v forgot to post the error handling vi, so here you are....
 
by the way, thank you two guys for the replys:) 
 
(first run the UDPreveiver.vi, then run the UDPsender.exe, input 80, or 100...) and you can see, what i'd mean in Labview.
 
0 Kudos
Message 4 of 24
(4,413 Views)

Hi xin,

try the "Spreadsheet String to Array.vi".

Mike

0 Kudos
Message 5 of 24
(4,411 Views)

no, it doesn't work, there's nothing in the Aarry...

 

have you another idea?

0 Kudos
Message 6 of 24
(4,407 Views)

Hi xin,

i´m sure it works. But if you insert data with labview and press return for a line break, there is only a "\n", but your program returns "\r\n". check the attachment.

Mike

0 Kudos
Message 7 of 24
(4,402 Views)
yes,yes, this time, it works!
 
Tahnk you very much, mike.
 
 
ahh, but i want just a "cluster", the UDPsender(.exe) sends every time two values(x,y),  and later i will process another thing whith this coordinate, but not with a array.
how can i get only two values from this array everytime?
 


Message Edited by xin.li@tuhh.de on 02-20-2008 07:59 AM
0 Kudos
Message 8 of 24
(4,398 Views)

Hi xin,

you can use the "Index Array.vi" and bundle it then to a cluster.

Mike

0 Kudos
Message 9 of 24
(4,393 Views)
like this?
 
I don't know,how do it right
0 Kudos
Message 10 of 24
(4,385 Views)