LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

urgent help - splitting a string into 5 u8 data

Dear all,
 
I am using a dll which requires(preconfigured) a U8 bit input data. But i have input data as 2010010100H and i convert it to string "2010010100".
 
Input    = 2010010100(String)
Output = 20H
               10H
               01H
               01H
               00H
 
How to achieve this?
Now how to proceed? Kindly suggest asap.
 
Thanks,
Mathan
Message 1 of 22
(2,928 Views)

Hi mathan,

try this.

Mike

Message 2 of 22
(2,924 Views)
Hai mike,
 
Thanks a lot. How can i give that array output as an input to the dll?
 
Thanks & Regards,
Mathan
Message 3 of 22
(2,920 Views)

Hi mathan,

it depends in your dll. You can connect it as array or as five separate values.

Mike

Message 4 of 22
(2,915 Views)
Hi! I think there is no need to the string conversion. Just use type cast function!
LV 2011, Win7
0 Kudos
Message 5 of 22
(2,912 Views)

Hai mike,

The dll was configured to get input as unsigned 8 bit integer only. That's why i asked to seperate the string into 5 separate ones.

Thanks & Regards,

Mathan

Message 6 of 22
(2,911 Views)

Hi mathan,

you can use the "Index Array" function from the Array pallete and resize it to 5 outputs.

Mike

Message 7 of 22
(2,907 Views)
Dear mike,
 
This attachment shows correct way?
 
1) I have to give all the 5 values one by one starting from 20H
2) What should be given as index (0 or 5) to the index array?
 
 
Thanks,
Mathan
Message 8 of 22
(2,901 Views)
Hai mike,
 
Sorry missed the attachment.
 
Thanks,
Mathan
Message 9 of 22
(2,899 Views)

Hi mathan,

the index says which element (starting from 0 for the first) you want from the array, so for the first value connect 0, for the second 1, and so on. 20H should be index 0.

Mike



Message Edited by MikeS81 on 04-11-2008 11:50 AM
Message 10 of 22
(2,895 Views)