07-17-2013 03:14 PM
Hello buddies. I am a Labview novice and has just started on a project involving communication with an MOS (Magnetic Orientation Sensor)
Basically a string in Hex is read in and I want to convert it into numbers. I am having problem probably due to data type, since when I use "highlighted execution", everything was fine, until it reaches the division part. The precision suddenly changes to 2 significant figures. Also, somehow the data could not be shown in the cluster, except for the integral ones. (voltage and temperature)
I am pretty sure it's due to data type, coz the integral ones are ok. I am using double precision, which should be fine. Please help me to find the solution!
Thanks in advance! Your kind help is highly appreciated!
Solved! Go to Solution.
07-17-2013 03:29 PM
On your front panel, right-click on one of your "output cluster" numbers, then go dpwn to "Representation." The VI you attached has all the numbers as U32 (I think the last one was actually U8). This is an integer. Change what you want to DBL. Then right-click the number again, go down to "Diaplay Format" to get the number fo decimal places (or sig figs) you want to see. That will do it.
Cameron
07-17-2013 03:33 PM - edited 07-17-2013 03:40 PM
The displayed precision on highlight execution has nothing to do with the underlying data. It just so happens the highlight execution display is showing 2 decimal places.
The displayed precision on your indicator has nothing to do with the data coming in. It just depends on how you set the display format for each of the indicators within that cluster.
So, what problems do you actually have?
07-17-2013 03:38 PM
Oh Thank you so much!!! I changed the data type of the cluster but I forgot to change the data type of the indicator!
Appreciate your kind help!!!
07-17-2013 03:38 PM
It is fixed now, thanks anyway!