Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 rating:
 1 out of 5     Rate this Document

Problems with Editing an IVI Instrument Driver's Help Text

Primary Software: Instrument Drivers/IVI>>IVI Compliance Package
Primary Software Version: 2.0
Primary Software Fixed Version: N/A
Secondary Software: LabWindows/CVI Development Systems

Problem: I am developing an IVI instrument driver in LabWindows/CVI, and I have manually changed the help text by editing the .sub file. Now it seems like my changes are being undone or overwritten when I launch the Attribute Editor or upload the .fp file. What might be happening?

Solution: When you develop an IVI driver, you can choose to edit the help text either through the Attribute Editor provided with LabWindows/CVI, or by manual changing in the .sub file.

You might experience difficulties after making manual changes to the .sub file, when the .sub file is is accessed via the function panel (through the Set/Check/Get attributes function panel), or by the Attribute Editor. It is possible for the .sub file changes to be overwritten when lauching the Attribute Editor or uploading the .fp file.

Why?
When the .fp file is loaded, CVI reads in a copy of the .sub file into memory. If the manual changes in the .sub file are done while the .fp file is loaded, subsequent launching of the Attribute Editor or the Set/Check/Get attributes function panels does not read in the changed version of .sub file. Instead, the original in-memory .sub file is being used, and if any saving is done through the Attribute Editor or if unloading of .fp file takes place, this version of .sub file overwrites the disk copy (not the version that was manually edited).

Solution
Make sure the .fp file is unloaded before attempting any manual changes in the .sub file. Save it before loading the .fp file or launching the Attribute Editor. Since the Attribute Editor loads the .fp file automatically, if you plan to edit the .sub file manually, then you should unload the .fp file after launching the Attribute Editor.

Related Links: Developer Zone: Instrument Driver Network
Developer Zone: IVI Driver Development Tools and Resources

Attachments:





Report Date: 08/03/1999
Last Updated: 03/19/2008
Document ID: 1O2ES5L2

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit