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

Error -1223 When Using Instrument Driver with Unsupported Instrument

Primary Software: Driver Software>>NI-VISA
Primary Software Version: 3.3
Primary Software Fixed Version: N/A
Secondary Software: Instrument Drivers/IVI

Problem: I downloaded an instrument driver from the National Instruments web site, but it was not exactly the one for my instrument. It is for the same series, but my instrument has a slightly different model number. When I try to use this instrument driver, it gives error -1223. What does this mean? Is it possible for me to use this instrument driver or not?

Solution: Error -1223 occurs in the Initialize portion of the instrument driver. This is where the instrument driver sends an identification query to the instrument and then compares the response string to a known string (or set of strings) that has acceptable instrument identifiers. If the response string does not contain one of those acceptable identifiers, then error -1223 is returned.

For example, if you have an HP 8255A, then the identification query will return HP 8255A. If the instrument driver is for an HP 8255B, and it expects to see HP 8255B in the response from your instrument, then it will generate error -1223, because HP 8255A and HP 8255B are not identical (as far as the name of the instrument is concerned).

Now the two instruments may be functionally equivalent, so you could modify the instrument driver to expect HP 8255 (instead of HP 8255B) in the response string, so that it would work for both the HP 8255A and the HP 8255B. The only caution in doing this is that the instrument may have extra functionality, or different functionality, that was not accounted for in the instrument driver. You should be careful when modifying any driver in this way, because it could potentially cause damage to the instrument.

Related Links: Developer Zone Tutorial: What is an Instrument Driver?
Developer Zone Tutorial: Developing LabVIEW Plug and Play Instrument Drivers
Developer Zone Tutorial: Modifying IVI Instrument Driver VIs for Improved Error Handling

Attachments:





Report Date: 06/20/1997
Last Updated: 08/03/2007
Document ID: 0YJH4T7N

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