LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

LabWindows CVI not reloading Label/Value information in Ring controls

When I use the 'Save in XML Format' command from the 'Options' menu to convert FrontPanel files like niSwitch.fp to a FPX file (XML file) and then reload it using the 'Load from XML Format' command, the Label/Values in the Ring controls in Get/Set/Check Attribute functions are not restored. And when I open up the FPX file in an XML editor, the FPRingCtrl nodes under the Get/Set/Check Attribute functions do not contain any Label/Value information either.
 
Is there a way to make LabWindows save the Label/Value information in the Ring controls? Or is there some setting that I'm missing? Any help is greatly appreciated.
 
Thanks,
 
 
VRMan
0 Kudos
Message 1 of 2
(3,047 Views)

Hello VRMan,

For some instrument drivers such as niSwitch.fp, the label/value pairs are not stored in the .FP file, but rather in the associated .SUB file.  The *.SUB file contains additional information specific to Set/Get Attribute function panels in an instrument driver.  More information on this file and its format can be found in the following KnowledgeBase: What Is a CVI *.SUB File and How Do I Use One with My Instrument Driver?  So before you load the FP from XML, you need to copy the niSwitch.sub and niSwitch.lib files that are in the VXIPNP\WinNT\niSwitch and VXIPNP\WinNT\lib\msc folders, respectively.  These files need to be copied to the same folder where you save the .fpx XML file.  When you convert this file to a FP file using the Load from XML file option, it will read the label/value pairs at that time, and populate the function panels with these values.

Hope that helps.

 

Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 2
(3,028 Views)