07-17-2012 06:29 AM
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:-
Solved! Go to Solution.
07-17-2012 06:39 AM
Maybe:
Christian
07-17-2012 06:42 AM
Hi christian,
Thanks for immediate reply.I need a hex string as output.I just try and get you soon.
07-17-2012 06:47 AM - edited 07-17-2012 06:48 AM
Use Christian's solution, and set the display format of your indicator to Hexadecimal.
On the front panel with your mouse over the indicator...
Right Click >> Display Format >> Hexadecimal
07-17-2012 06:52 AM
07-17-2012 06:55 AM
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
07-17-2012 06:57 AM
07-17-2012 07:10 AM
Hi,
when I tried something different like the attachment.It seems to be not working.What is the problem with it?
07-17-2012 07:14 AM
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.
07-17-2012 07:16 AM - edited 07-17-2012 07:22 AM
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.