Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

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

Primary Software: LabVIEW Development Systems>>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.


Related Links:

Attachments:





Report Date: 08/21/2005
Last Updated: 12/01/2006
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