10-12-2005 12:58 PM
10-13-2005 01:28 PM
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.