LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hexadecimal string array

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

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 1 of 14
(4,265 Views)

Hello Danil33,

 

Please check the attached snippet .

 

Regards,

Bijay

Message 2 of 14
(4,248 Views)

Hi Danil,

 

sometimes it can be so easy:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 14
(4,246 Views)

AGAIN, the poster created a new thread instead of continuing. NEW thread: http://forums.ni.com/t5/LabVIEW/problem-during-conversion/td-p/2000499

0 Kudos
Message 4 of 14
(4,199 Views)

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??

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 5 of 14
(4,170 Views)

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?

 

check.png

 

Reading the context help for format codes may also help in converting strings from one format into the other:

check.png

 

RTFM!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 14
(4,166 Views)

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...}

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 7 of 14
(4,146 Views)

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...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 14
(4,141 Views)

Something like this?

 

A and B.png

 

 

-----

The best solution is the one you find it by yourself
0 Kudos
Message 9 of 14
(4,133 Views)

Admiration to your patience, Gerd.

Danil: How about having a look at Darren's Nugget which handles the common use cases of case structures?

0 Kudos
Message 10 of 14
(4,130 Views)