04-27-2015 12:20 AM
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?
04-27-2015 01:16 AM - edited 04-27-2015 01:23 AM
@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)
04-27-2015 02:32 AM - edited 04-27-2015 02:33 AM
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…
04-27-2015 03:01 AM
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.
04-27-2015 03:47 AM
04-27-2015 10:52 AM
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.
04-27-2015 11:00 AM - edited 04-27-2015 11:02 AM
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?