09-15-2014 05:23 AM
Can anybody guide me how to convert string to 32 bit Integer? I am trying to convert it but getting some error. Can anybody please look at attached VI and guide me where is the mistake.
Thanks
JK
09-15-2014 06:36 AM
JK,
i am sorry, but neither your post nor the VI shows what you want to achieve. I assume that you get a numeric string (i.e. a string with numeric symbols only) which you want to convert into an array of numeric values.
Your VI on the other hand shows a "binary" string. So another option would be: take 32 elements of the string, convert it to a 32bit integer, then proceed with the next 32 characters.
This would require though that the string only contains '1' and '0' and no other character.
Please provide more information.
Norbert
09-15-2014 11:46 AM - edited 09-15-2014 11:46 AM
What are you expecting for an output? What is the format of your string?
Assuming it is to be a 32 character string of just "0" and "1", then Scan From String will be your friend here.