LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 2014 Indicator Hex Display

The option to right click to select the Hex display type is not available for indicators, only for constants in Labview 2014. Is there a different way to receive strings in Hex format? 

0 Kudos
Message 1 of 7
(4,240 Views)

@mapeter25 wrote:

The option to right click to select the Hex display type is not available for indicators, only for constants in Labview 2014. Is there a different way to receive strings in Hex format? 


Of course it is available! Make sure you right-click the indicator (or control, resp.) on the front panel and not the terminal on the diagram.

 

(If this does not solve your problem, please attach your VI.)

 

(Also note that the display format is only a cosmetic property of the indicator. It does not change the underlying data)

0 Kudos
Message 2 of 7
(4,223 Views)

Hi mapeter,

 

when you use controls from the System palette you will see those options missing. System controls only allow a subset of properties as they are provided by the OS.

 

In all other controls you should find the options you are looking for…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 7
(4,207 Views)

GerdW wrote:

when you use controls from the System palette you will see those options missing. System controls only allow a subset of properties as they are provided by the OS.


The display format selection is available for strings from the system palette and thus irrelevant for this question. Try it.

0 Kudos
Message 4 of 7
(4,197 Views)

Hi Chris,

 

I was talking about the option to set the "Radix"/"DisplayMode" visible in the control/indicator. This option is missing for System controls.

Sorry for not expressing this point more clear…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 7
(4,182 Views)

Hi All,

 

Thank you so much for the immediate help! 

 

Right-clicking the front panel worked! However, since it isn't actually changed in the block diagram, will I have to go through the process of converting the string to Hex (my data is being output in Hex)? I need to access byte 4 and 5 out of 6 bytes of data and convert it to decimal in order to log it into a spreadsheet. Do I need to convert it from ascii to hex, seperate byte 4 and 5 then convert to decimal? Would be much simpler if the data in the block diagram is being output as Hex.

 

 

I can attach my vi, but I honestly don't have much, just a VISA read in a while loop at this point. 

 

0 Kudos
Message 6 of 7
(4,156 Views)

mapeter25 wrote:

Right-clicking the front panel worked! However, since it isn't actually changed in the block diagram, will I have to go through the process of converting the string to Hex (my data is being output in Hex)? I need to access byte 4 and 5 out of 6 bytes of data and convert it to decimal in order to log it into a spreadsheet. Do I need to convert it from ascii to hex, seperate byte 4 and 5 then convert to decimal? Would be much simpler if the data in the block diagram is being output as Hex.


Yes, please attach your VI, prefereably make a typical string the default for the control/indicator. Also tell us what value you would expect.

 

If you are dealing with a binary string, you need to know the specifications on how the data is represented. Often taking the correct substring followed by e.g. unflatten and typecasting is all you need.

 

Processing a binary string is typically much easier and more efficient than processing a hexadecimally formatted string, exclusively containing the characters 0..F.

 

What does the instrument documentation say about the data specifications?

0 Kudos
Message 7 of 7
(4,151 Views)