LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

processing the array elements

Solved!
Go to solution

Hi,

      I have a very simple question but trying to figure it out for a long time.I have an array of  'n' elements.which represents digital data.What my aim is representing the first 8 elements as a byte in the new array.Anyone please suggest some simple methods.For example:-

0 Kudos
Message 1 of 42
(3,758 Views)

Maybe:

 

asdf.png

 

 

Christian

Message 2 of 42
(3,750 Views)

Hi christian,

                  Thanks for immediate reply.I need a hex string as output.I just try and get you soon.

0 Kudos
Message 3 of 42
(3,746 Views)

Use

 

 

On the front panel with your mouse over the indicator...
Right Click  >>  Display Format  >>  Hexadecimal



Never say "Oops." Always say "Ah, interesting!"

Message 4 of 42
(3,742 Views)
Hi, If the input array is also a hexadecimal then how can we adopt this method?
0 Kudos
Message 5 of 42
(3,734 Views)

If the values in the initial array are not boolean (at least from the meaning), you will introduce data reduction. This will most probable result in plainly wrong values.

 

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 6 of 42
(3,730 Views)
Thanks for all the suggestions.I figured it out.
0 Kudos
Message 7 of 42
(3,723 Views)

Hi,

      when I tried something different like the attachment.It seems to be not working.What is the problem with it?

0 Kudos
Message 8 of 42
(3,716 Views)

Hi,

        I want to see the next 8 array elements to be converted and has to display in the next index of the second array.But it is showing nothing.

0 Kudos
Message 9 of 42
(3,711 Views)

We can't answer that question because you haven't told us in what way it is not working.

 

What are you expecting and what are you actually getting?

 

Please attach your VI with actual data saved in the controls as default so we can see what kind of data you are trying to work on.

 

EDIT:  You posted more information while I was creating this message.

You need to typecast your U32 number into a U8 array.

 

0 Kudos
Message 10 of 42
(3,706 Views)