Why Do Device Templates Created Using GpibConf.exe Not Work? Primary Software: Driver Software>>NI-488.2Primary Software Version: 2.2 Primary Software Fixed Version: 2.3 Secondary Software: N/A
Problem: I used the GpibConf.exe utility to create device templates for my devices and they do not work. How can I fix this? Solution: This problem is a known error in the NI-488.2 driver version 2.0, 2.1, and 2.2. The GpibConf.exe utility changes the GPIB.ini file which contains all the information about the device templates the user has created. The utility puts quotation marks ("") around the property values and causes them not to be read correctly. GPIB.ini template after editing with GpibConf.exe: [DEV1] Connect = "GPIB0" DeviceName = "SIMDEV" EOSchar = "0" EOScmp = "7-bit" EOSrd = "No" EOSwrt = "No" EOT = "Yes" PAD = "2" READDR = "No" SAD = "None" SPollTime = "1sec" TMO = "10sec" Below is the same template before editing with GpibConf.exe: [DEV1] Connect = GPIB0 DeviceName = SIMDEV EOSchar = 0 EOScmp = 7-bit EOSrd = No EOSwrt = No EOT = Yes PAD = 2 READDR = No SAD = None SPollTime = 1sec TMO = 10sec NI-488.2 version 2.3 has fixed this error, allowing the quoted strings in the first sample to be read properly. Upgrading to NI-488.2 version 2.3 or later will eliminate this problem. However, if upgrading is not an option then a work around for this is to manually remove the quotation marks after the utility has run or to enter the information manually in the GPIB.ini file. Related Links: Attachments: [Chris Ricketts 4/15/08] Made title capitalized, removed contraction "can't", added a question to the problem statement
Report Date: 01/07/2005 Last Updated: 04/15/2008 Document ID: 3H69HCHL |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
