LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

hex input using user dialog box.

Hello
 
I am trying to use the user dialog box to input data. I want to input the data as Hex. format. however as I select the input to be a number, it takes as a decimal number and there seems to be no option where I can change it to a hex format. Any suggesstions as how to make this possible..
Thanks in advance.
0 Kudos
Message 1 of 7
(3,182 Views)
You made me look. 🙂   I had to try this on dialog controls for myself.

Place your control and then right click on it and select a representation that works with Hex formats (say I32 or U32).

Then right click on it again and select Format and Precision...

Now you should be able to select Hexadecimal format.


Message 2 of 7
(3,179 Views)

Dravi99,

Are you talking about a control on a VI you are writing or are you talking about the Express VI - Prompt User for Input? If it's the Express VI, then all you have to do is on the diagram, right click on the function and select Open Front Panel. This will convert the Express VI to a regular VI. Once you have done this, then just follow Robert's instructions. Don't forget to save the new VI.

Message 3 of 7
(3,173 Views)

Thanks Dennis and Robert. Yes i was actually using the express vi and then converted to a normal vi and could use the method told by robert to implement the hex input.

Thanks again for the help.

Ravi

0 Kudos
Message 4 of 7
(3,144 Views)

hi,

again now when i am using the prompt user input. i want to use the input as hex number. it allows me write a decimal and converts it to hex, but converts a hex again. so problem persists, I have followed what dennis said and I got a new vi for the prompt user input inwhich i made the change. Also it does not pass value using the stucture as I get an error message saying OS cannot pass special charactes...kindly help.

0 Kudos
Message 5 of 7
(3,133 Views)
Why don't you attach the modified VI?
0 Kudos
Message 6 of 7
(3,127 Views)

Hi,

actually working on it and could fix the bug. It goes like this. when we modify the prompt user vi, it generates a custom vi, we can make the format and precision changes in this new custom vi and they are incorporated in our current vi.

Thanks for your help.I appreciate your prompt help for all.

Regards

Ravi

0 Kudos
Message 7 of 7
(3,123 Views)