05-21-2012 05:32 AM
Hi,
I have a hexadecimal string to byte array.Iam trying to convert it to binary form.Eg:-F8 as 11111000.That is each index contains 1 byte.But in my VI,it comes true only when I enter the input in the first index of the array.
I would like to view my output like given below:-.But I can view only 11111111 in the first index of the output array
F8 11111000
A2 10100010
2B 00101011
B1 10110001
05-21-2012 06:14 AM
Hello Danil33,
Please check the attached snippet .
Regards,
Bijay
05-21-2012 06:14 AM
05-22-2012 07:23 AM
AGAIN, the poster created a new thread instead of continuing. NEW thread: http://forums.ni.com/t5/LabVIEW/problem-during-conversion/td-p/2000499
05-24-2012 01:50 AM
Hi,
In the below attached example Iam trying to view the output as:-
11111001101001000010101110110001.............F9A42BB1 after conversion.(In one index)But I got the output as:-
11111001101001000010101110110001.............F9
A4
2B
B1
what changes have to be made in the VI inorder to get the output as per the requirement??
05-24-2012 02:01 AM - edited 05-24-2012 02:04 AM
Hi danil,
you really have to learn to write good questions!
Before you always talked about "bytes" and you always have shown examples with byte/U8 values. Now you complain about not being able to convert U32 numbers. Why does it come this way? Ever thought about that on your own? You always come back to the forum saying something in the lines of "the examples programmed by others on my requirements don't work, because I have changed the requirements later on - please provide new examples!!!"
Combine such behaviour with good old (sarcasm!!!) double/triple/multi-posting of questions and I hope you understand our "irritation"/annoyance...
Danil, when will you start to do some own programming?
Reading the context help for format codes may also help in converting strings from one format into the other:
RTFM!
05-24-2012 04:23 AM
Is it possible with a 'casestructure' to check two conditions simultaneously??That is after satisfying both conditions the casestructure can execute.
Eg:-if(a==1&&b==2)
{then...}
05-24-2012 04:27 AM - edited 05-24-2012 04:29 AM
Hi danil,
this question is totally unrelated to the rest of this thread. Now you missed the chance to create a new thread...
A reply to my answer on your last question would have been fine too. (You know that's the way a discussion works...)
No, a case structure can only handle one condition. You can:
- put one case structure inside of the other
- make your own comparison before calling the case structure with a simple T/F boolean input...
05-24-2012 04:32 AM
Something like this?
05-24-2012 04:39 AM
Admiration to your patience, Gerd.
Danil: How about having a look at Darren's Nugget which handles the common use cases of case structures?