VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Device: How to change channel's icon in NI Veristand?

Solved!
Go to solution

Hello Board,

 

I am building custom device for third party product for my RT-Controller. They work properly and so far so good. One thing that disturb me is: the channel's icon as shown in the figure below with red box.

 

icon_veristand.png

 

 

How can i change the icon to appropriate icon? Any help would be appreciated..

 

Thank you!

 

Rajamodol 

 

 

Message 1 of 10
(7,643 Views)

Hey Rajamodol,

 

Typically a custom glyph is applied to a channel or a section based on what Page is used. Are you using a default page or a custom page when you build the the channels in your Initialization VI?

 

If you are specifying the GUID for a Page you have created then you will want to make sure it is configured properly in the Custom Device XML. In the Page section of your Custom Device XML you will specify the Glyph (.png specified by path) used for whatever section or channel uses this page.

 

pageglyph.PNG

 

If you're using a custom page you'll want to make sure that your .png path is setup properly. Remember the "To Common Doc Dir" is an Alias for "<Public Documents>\National Instruments\NI VeriStand 20xx\"

Tim A.
Message 2 of 10
(7,626 Views)

Hi Timothy,

 

Thank you for your reply. I have checked my custom device XML file, i found Glyph is located at "To Application Data Dir" + System Explorer\Glyphs\default fpga category.png.

XML.PNG

 

I am using Windows 7, LabVIEW 2012, NI Veristand 2012. My System (PC) doesn't have "C:\ProgramData\National Instruments\NI VeriStand" as mentioned in this page http://zone.ni.com/reference/en-XX/help/372846D-01/veristand/vs_dir_aliases/

 

Did i make mistake when generating custom device from template?

 

Thank you again,

 

Rajamodol

 

 

 

 

 

Message 3 of 10
(7,618 Views)

Hi,

 

 

 

<Veristand Application Data> is Hidden by default

 

Best way to find stuff like that is to use system variables.

 

 

 

Open Explorer and type

 

 

 

 %programdata%

<Veristand Application Data> is Hidden by default

 

 

 

And hit enter. You'll go to the Application Data folder. Same goes for other system wide folders, like %temp%, %appdata%  , etc

 

 

or open Explorer and type :     C:\ProgramData\National Instruments\NI VeriStand 2011

 

Message 4 of 10
(7,610 Views)

generating custom device from template is correct

Message 5 of 10
(7,609 Views)
Solution
Accepted by topic author rajamodol

 

 

Within the <Page> tags for an item, you can use the <Glyph> tag to configure a custom glyph to display for the item. You can use any PNG file as a glyph. As already mentioned a collection of glyphs that install with NI VeriStand is available at <Application Data>\System Explorer\Glyphs.

Message 6 of 10
(7,606 Views)

Hi hsm78,

 

Thank you for your nice help! Anyway, i am now able to adjust icon/glyph of my custom device. But, still i need to chaneg/adjust all of them.

 

In the picture below, there is still one icon "Channels" which still refers to "default fpga category.png".

 

icon_veristand2.png

 

 

I have only two statement in custom device .XML file which refers to glyph. Where can i find the link in XML file? is there any hidden "something" which i shall know? I attach my .XML file, in case you have a time to look at it (i change the extension to .txt to make it enable to attach)

 

Thank you again for your help,

 

Rajamodol

Message 7 of 10
(7,578 Views)

Hi,

 

Did you succeed in changing Channels icon ? That's something I would like to doo too...

 

Regards,

Da Helmut
Voir le profil de Maxime M. sur LinkedIn - View Maxime M.'s profile on LinkedIn
0 Kudos
Message 8 of 10
(7,527 Views)

Hi Da Helmut,

 

Yes, i finally found a way how to deal with channels icon.. Here what i did:

 

In the Custom Device initialization, you will define your section and channel. There you should refer those section/channel to specific GUID. It depends on you, if you chose the same GUID/Page for your section/channel, then you will have the same icon. So, in this case, if you have several pages (GUID), you can refer your section/channel to GUID.

 

Then in .XML file, you will find the corresponds GUID number and its glyps. Change .png file to what you want. The glyph library, you can find it in:

 

"C:\ProgramData\National Instruments\NI VeriStand 201X\System Explorer\Glyphs"

 

Please change X with your veristand version.

 

Hope I can help.

 

Regards,

 

Rajamodol

Message 9 of 10
(7,522 Views)

Hi Rajamodol,

 

nice to know that it woooorks 🙂

 

 

Have a nice weekend

 

Houssam

Message 10 of 10
(7,515 Views)