10-29-2015 03:24 AM - edited 10-29-2015 03:25 AM
Hello Crossrulz,
If this possible as a solution this would be absolutely great!
However:
How does the unflatten from string know which bytes it has to use to unflatten. As you can see in the picture (I will attach it again) this numbers are devided over several bytes per number.
Also we use little-endian.
How do I program this?
Kind regards,
Jesse Bax
SwissDrones Operating AG
10-29-2015 07:28 AM
@Feignedjesse2 wrote:
How does the unflatten from string know which bytes it has to use to unflatten. As you can see in the picture (I will attach it again) this numbers are devided over several bytes per number.
Also we use little-endian.
Your cluster should be made up of I32 and I16 values to correspond to the data type given in that table. My previous post was a snippet which you can save to your desktop and then drag onto a block diagram and you will have the code. You can see how I made up the cluster from there. Note that the snippet was made with LabVIEW 2015, so you will need 2015 to open the snippet.
And there is an input to the Unflatten From String to state the endianness. You just need to set that to Little Endian.
10-29-2015 08:11 AM
10-29-2015 08:30 AM
And be sure to set the correct cluster order. Which will work if you create the controls/indicators in the order that is in your string. If you mess up, go to the cluster, right click on the boundary and reorder the elements to get the order that is in the byte array. Best to save this cluster as a type def control so that it can be used in the code and in front panels.
10-29-2015 11:04 AM
Thank you for the info.
It alreadyworks, I used your template as a base 🙂
Kind regards,
Jesse Bax
SwissDrones Operating AG