08-19-2011 06:27 AM
hi!!
i am new to lab view, i am trying to make a progarm to source current of desired range and measure voltage using keithiley 2400 source meter and plot its VI characterstics. i found an example on NI's site in which current is sourced by ke2400 and voltage measured by 2182 nano voltmeter. i tried to modify this program and used it acc to my requirement but it is showing generic i/o error GBIB ERROR CODE 6. can any one help me to fix this problem??
08-19-2011 07:01 AM
08-19-2011 02:12 PM
The example that comes with the 2400 driver on NI's site does not look anything at all what you have posted. Why aren't you using that?
08-20-2011 07:29 PM
I'm currently using the Keithley 2400 without a problem, but I'm using the Labview Library for the device.
I'm currently used the library/driver that I downloaded from ni.com/idnet:
http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=1583
There there are similar/older drivers on the Keithley website:
http://www.keithley.com/products/dcac/dmm/broadpurpose/?path=2400/Downloads
If you wire the error terminals in your MY.vi example, that should help to isolate where the problem is with your code. The first things that comes to mind is that you don't allow any time between your GPIB Writes by checking the status. Also, the command syntax in MY.vi is unfamilar to me sourc:curr0.001000\noutp on is atypical in my experience.
I'd download and run the example from the ni.com/idnet site. That should get you going. The only problem I've had with this driver is that it has limited functionality (doesn't have any sweep operations), and it not optimized for speed, but I've had no problem with setting up current source and then monitoring current, voltage and resistance at an update rate of 2 Hz (500ms period).
08-24-2011 02:37 AM
Can you tell what should be the command for sourcing current of range -1mA TO +1mA. in steps of 0.1mA??
08-24-2011 02:45 AM
I DID UNDERSTOOD THE MODIFICATIONS YOU MADE IN MY VI BUT... IT IS SHOWING HEADER SAPERATOR ERROR (-111).AT THE FIRST GPIB WRITE COMMAND.
08-25-2011 07:08 AM - edited 08-25-2011 07:10 AM
Your error is of command-syntactical nature. Keithel 2400 follows both: ieee 488.1 as well as scpi gpib protocols. If you have chosen the later, you must remember that while concatenating commands, each new command (other than than the top most one wired) must be prefixed with a colon[:]. Also commands that are querries must be followed by question marks while commands that have a set function need not. Some commands can do both. Either ways, you have to be careful of the syntax.You can go to the link http://www.ivifoundation.org/scpi/default.aspx and download all the specifications. Further I think, the scaling you want to do would be set in Keithel 2400.
Vinayak Singh
Application Engineer
08-27-2011 03:59 AM
i think that the successive queries of gpib write should be given in saperate flat sequence with some delay.... but i m not getting what exactly has to be done... i mean an instruction of gpib write for sourcing current has to be given and just after that the command for measuring the voltage has to be given... how much delay should be there between these two commands... more over the cocatenated string i am using sour:curr0.001000\n outp on gpib write is this in correct format???
08-27-2011 05:46 AM