LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Hexadecimal editor for CVI

I want to have a text box or the like in CVI to enter hexadecimal data, like LabVIEW's string control.
 
This has probably been done many times, but my search through CVI's example code yields nothing.
 
Has anybody done this?
0 Kudos
Message 1 of 7
(4,121 Views)

You don't need to write code to make this happen.  It is already there for you.

You can use a standard numeric box.

Right-click on it and select 'edit control".

Selct the "format and precision" button.

In the display format window, select 'hexadecimal".

 

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

That is fine for a single number, but I'd like to edit many bytes.

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

If you're wanting a calculator/translator, put two numeric boxes up.  Read the integer from the hex box and write the integer to the decimal (or whatever format you are translating into) box.

If you're looking for more functionality still, then provide a few more details about what you are looking for.

0 Kudos
Message 4 of 7
(4,109 Views)
You could use a table with each cell set to a numeric hex format byte.   Works pretty well for organizing hex data in things like ROMS when organized as rows of 16 bytes.

Message Edited by mvr on 07-19-2006 03:46 PM

0 Kudos
Message 5 of 7
(4,108 Views)
mvr is right, and it's not that bad to use a table to do what you want.... attached is one I did for a project.
0 Kudos
Message 6 of 7
(4,098 Views)
That table idea seems like it will work, since I'll be able to see many bytes at one time.

And with a little work, I can write code to delete or add a range of bytes.

Ideally I would have the text box work just like LabVIEW's string controls when set to "Hex Display" mode, where you just type the hex code in there, but the table thing works for my simple application.

thx
0 Kudos
Message 7 of 7
(4,093 Views)