LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I get an error when I use the instrument driver KE230x.

Good day.  I am using the ke230x instrument driver connected to a Keithley 2306-PJ.  I am using the USB to GPIB to communicate with the instrument

I load the Getting Started VI and when I hit run I get the following error message

====================================================================
Error - 1074003951 occured at ke230x Initialize With Options.vi
Possible reason(s):

Driver Status:  (Hex 0xBFFC0011) Primary Error: (Hex 0xBFFC0011) Identification query failed.
Elaboration: Failed to Recognize Model
=====================================================================

When I place the "id query" switch into the false position, everything appears to be working.  I have left the "reset device" in the true position and I see the instrument resetting.

I do not understand what is happening?

Thank you for your time and help.
0 Kudos
Message 1 of 8
(4,348 Views)
The *IDN? query is probably returning a different string from the model that was originally used to develop the driver. Go to MAX and run the query and see what comes back. Since this is an IVI driver, you can't modify the code unless you have LabWindows/CVI so if you need to verify that the correct isntrument is there, you can use the ke230x Write Instrument Data and ke230x Read Instrument Data to send the *IDN? and parse the result yourself.
Message 2 of 8
(4,343 Views)
Good day.  Dennis - thank you for your response.  My next question is if I leave the ID Query off (false) position, I still cannot get the program to work. 

My guess is that I am doing something wrong (I am relatively new to LabView).  I use the Getting Started vi and everything looks to be working okay.  I then start the Application Example (I run the Getting Started vi before I run the Application Example to make sure that the Application Example has the correct instrument handle).  When I run the Application Example I get the following error message

Error -1074130544 occurred at ke230x Configure Current Limit.vi

Possible reason(s):

Driver Status:  (Hex 0xBFFA1190) The session handle is not valid.

Any help or advice would be greatly appreciated.

Michael
0 Kudos
Message 3 of 8
(4,330 Views)
The Getting Started example calls the Application Example and then closes the session. Open the Getting Started example and look at the block diagram. It doesn't make any sense to do what you are doing. The Getting Started example should give you an idea on how to create your own program. You need to first use the Initialize function to get an instrument handle and pass that to any other function you wish to call. It could be any of the functions on the palette. When your program is done, the last thing you want to do is call the close function. You cannot use another function in the library unless you do another open.
Message 4 of 8
(4,327 Views)
Dennis - thank you very much.  I now understand what is happening.

Have a good day and a better tomorrow.
Michael
0 Kudos
Message 5 of 8
(4,320 Views)
Good day.  I am now trying to add the "Configure Channel One Impedance.vi" to the "Getting Started.vi".  When I add the impedance vi and run the program, LabView crashes and I get a Windows error message stating that the program will be shut down. 

I have compared the Impedance VI and the "Configure Voltage Level.vi" and they appear to be identical with the exception of having level for the voltage VI and impedance for the impedance VI.

Any suggestions would be greatly appreciated.

Thank you for your time and help.

Michael
0 Kudos
Message 6 of 8
(4,294 Views)

They are identical except of course they call a different function in the DLL. Smiley Wink

To have one function in a driver cause a crash is unusual. The driver says that the valid range for the impedance is 0.0 to 1.0 but even with an invalid impedance, I would expect only an error message. I'm not sure what else I can do. I don't have the instrument to experiment with. Can you set the impedance with the Write Instrument Data function?

0 Kudos
Message 7 of 8
(4,283 Views)
Good day

I am not sure what happened, but I deleted the VIs that I had modified (to include the impedance) and started over.  Everything works just fine.  So I am going to assume that I was dealing with operator error.

Thank you for your time and help.

Michael
0 Kudos
Message 8 of 8
(4,270 Views)