This widget could not be displayed.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

processing the array elements

Solved!
Go to solution

Sorry,If my question is not clear.I have an input array(hexadecimal string array).It is representing digital data,so each array index represent 1 bit.I just want to take the first 8 elements and represent in the form of hex in the first index of the output array.Then take the next 8 inputs and after conversion display it in the next index of the output array.

But when I tried I got the output as shown in the attachment.

0 Kudos
Message 11 of 42
(2,039 Views)

asdf.png

 

 

I just saw that your input is a string, so use the conversion you had in the vi you posted before.

 

 

Christian

Message 12 of 42
(2,033 Views)

Sounds like this might work for you as well.  No need to convert strings into numbers.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 13 of 42
(2,023 Views)

You can't keep Type Cast man out of this party. 

 

BitArraytoByteArray.png

Message 14 of 42
(2,012 Views)
Solution
Accepted by topic author josy

Is this want you wanted?

Message 15 of 42
(2,007 Views)

WOW!!great.varities of answers.ThanksSmiley Happy

0 Kudos
Message 16 of 42
(1,995 Views)

Hi,

      Let me add one more question.If we are getting string elements on each iteration,then how will we form it into an array with the first iterated element into the first array index of the output array,second iterated element on the second index of the output array and so on....

0 Kudos
Message 17 of 42
(1,970 Views)

It kind of depends on your architecture.  Are you getting a bunch of elements and then pass the array on when you are done collecting?  Or are you just building the array for GUI purposes?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 18 of 42
(1,966 Views)

Hi,

        Iam getting the value one by one.And using that I build an array,But the entire elements displayed in the first index of the array.But I want to display it in index one by one.(that is corresponding indices.)

0 Kudos
Message 19 of 42
(1,954 Views)

I'm still not sure if I'm understanding you properly.  But it sounds like you could do it with a simple shift register and build array.  I used a feedback node instead of a shift register in the example below.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 20 of 42
(1,941 Views)