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

VISA Resource Name Constant/Control`s Drop Down Menu Becomes Inactive

Primary Software: LabVIEW Development Systems>>LabVIEW Full Development System
Primary Software Version: 7.1
Primary Software Fixed Version: N/A
Secondary Software: Driver Software>>FieldPoint Explorer

Problem:
When the VISA Aliases Editor is opened, there are some resources listed that are no longer present in the computer, like serial ports that were previously installed. As the VISA Aliases Editor does not allow deletion of these Resource Names, the Resource Names are individually deleted from the visaconf.ini file(C:\VXIpnp\WinNT\NIvisa ).

After this,when the VISA Resource Name constant or VISA Resource Name control is used,the drop down menu becomes inactive.Why does this happen?

Solution:
  1. Make sure that after deleting the VISA Resource Names in visaconf.ini, the number of Aliases is also changed.

    Example: To remove resources ASRL3::INSTR and ASRL4::INSTR, open visaconf.ini and replace

    [ALIASES]
    Alias0 = "'COM1','ASRL1::INSTR'"
    Alias1 = "'COM2','ASRL2::INSTR'"
    Alias2 = "'COM3','ASRL3::INSTR'"
    Alias3 = "'COM4','ASRL4::INSTR'"
    Alias4 = "'LPT1','ASRL10::INSTR'"
    NumAliases = 5

    with

    [ALIASES]
    Alias0 = "'COM1','ASRL1::INSTR'"
    Alias1 = "'COM2','ASRL2::INSTR'"
    Alias2 = "'LPT1','ASRL10::INSTR'"
    NumAliases = 5

    In the above example the NumAliases is not changed. This causes the drop down menu in the VISA Resource Name control to be inactive.
  2. Refresh MAX after deleting the VISA Resource Names. It will create a new visaconf.ini file.

Note: As of NI-VISA 4.2, the path to the visaconf.ini file has changed to \Documents and Settings\All Users\Application Data\National Instruments\NIvisa. For more information on the location of the visaconf.ini please see the related links section at the end of this document.

Related Links:
KnowledgeBase 4FDEG8C5: Where the visaconf.ini File Located?
KnowledgeBase 3DEI1LNQ: How can I Remove Resource Names From the VISA Resource Name Constant or VISA Aliases Editor?



Attachments:





Report Date: 08/21/2005
Last Updated: 08/25/2008
Document ID: 3OK9GBYR

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