LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to modify NI Xcontrol

Hi,

 

I'd like to know how to modify the Xcontrol that National Instruments made?

 

For instance, with the Sound and Vibration toolkit, you get those nice colormap and spectral map Xcontrol. If I right click the Xcontrol and select advanced=> Show diagram, I can see the block diagram but I can't make any modification. Is it possible to modify those Xcontrol?

 

Best regards,

 

peper

 

 

0 Kudos
Message 1 of 5
(2,562 Views)

Peper,

 

first and foremost:

NEVER change the components installed by NI Installers directly!

 

Before starting to modify anything, please make sure that you do the following:

  1. Modify XControls only if you are already familiar with this technology. Otherwise, you will mess up things.
  2. Copy the original sources (e.g. into the user.lib folder) and modify that copy. The source you want to copy is in the vi.lib\addons\_XControls\Colormap. Note that you also have to copy part of the "sound and vibration" addon folder as well.....
  3. Make sure that modified components have new names (e.g. MyColormap) and make sure that they do not depend on code which is part of the original XControl.
  4. Add new palettes to your LabVIEW installation to increase usability of the modified XControls.

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 5
(2,544 Views)

Hi Norbert_B,

 

Unfortunately the Xcontrols are password-protected.....;(

 

Pfff i just want to add a "bring cursor to center" right click menu!

 

Regards,

0 Kudos
Message 3 of 5
(2,538 Views)

Peper,

 

the XControl is protected as long as you use it.

At least on my machine, the XControl is editable if there is no "user" vi in memory.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 5
(2,535 Views)

Did you plan to move (or add) the active cursor to center? I noticed that the current order/frequency does not move when I invoke the 'Bring to Center' from the cursor legend. You may want to respond to that as well if you are implementing this feature for your customers. 

 

Modify your copy of the XControl. Specifically, edit your copy of the following VI:

<LabVIEW>\vi.lib\addons\_XControls\Colormap\subVIs\svx_Colormap Facade.vi

Make your edits in the "Colormap": Shortcut Menu Activation? and "Colormap":Shortcut Menu Selection.vi events.

 

The facade VI is not password protected. You do have to make sure that the XControl is not running in order to make edits to the facade VI. The XControl is running if the XControl is present on any front panel of a VI in memory.

 

Post back with your results. Perhaps this extension can be added to the Sound and Vibration Colormap XControl in a future release.

 

 

 

 

Doug
NI Sound and Vibration
0 Kudos
Message 5 of 5
(2,516 Views)