LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Keithley 2000 Timeout

Solved!
Go to solution

Hey Developers,

 

I´m trying to communicate with a Keithley 2000 and I found this Programm on the NI site:

 

sine.ni.com/apps/utf8/niet_download_id.log_ids?p_profile_id=23466480&p_doc_id=014E6EF883B9743DE0440003BA7CCD71&p_app_id=1&p_url=http://download.ni.com/support/idnet/4FCA4CBA222912F0E0440003BA7CCD71/keithley_2000.zip&p_sensor_fla...

 

So I tried it, but it doesn't work. I always get the response: −1073807339 Timeout expired before operation completed.

 

I changed the some stuff like the Termination Character to "\n", or increased the Bytes to wait, but it won't work. I found the devise with the NI MAX.

The syntax of my commands should be ok, because when I remove the "\n", I see the Error -101 on the Keithley.

 

Could someone please tell me, where my mistake is?

 

Kind regards

RubertIV

0 Kudos
Message 1 of 8
(3,868 Views)
What sort of physical connection do you have? What exactly was found in MAX?

Your link returns an error.
0 Kudos
Message 2 of 8
(3,852 Views)

Hey Dennis,

 

I have Labview 2011 so I downloaded the Driver Labview 8.0 version from this Link:

 

http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=014E6EF883B9743DE0440003BA7CCD...

 

and I use RS 232.

 

NI MAX found an COM-Port. I dont know what is necessary there.

0 Kudos
Message 3 of 8
(3,842 Views)
Solution
Accepted by topic author RubertIV
So the only thing that MAX will detect is the computer's com port. Check the settings on the instrument for baud rate, parity, etc. Also check to see what the termination character is. Perhaps you need both cr and lf. Try to only use MAX until you can successfully communicate. Just work with the *IDN? query.
0 Kudos
Message 4 of 8
(3,826 Views)

Ok, i got a response (ID from Keithley...) in the Buffer when I change in Flow Control Settings the Output State, Ready to Send and DTR to Unasserted.

But also in the window Return Data the Timeout Error.

 

Where do I change this in the VI?

0 Kudos
Message 5 of 8
(3,816 Views)
When you get data and the timeout error, that indicates that you have specified the incorrect termination character. Can you show the result?
0 Kudos
Message 6 of 8
(3,810 Views)

Reply:

 

1: Write Operation (*IDN?\r)

Return Count: 6 bytes

2: Write Operation (*IDN?\r)

Return Count: 6 bytes

3: Read Operation
Return Count: 57 bytes
KEITHLEY\sINSTRUMENTS\sINC.,MODEL\s2000,0632657,A06\s\s/A02\s\s\r

 

But the Read option still don't work.

 

 

Edit: with \r it works. When I also change this on the Instrument.

0 Kudos
Message 7 of 8
(3,805 Views)

My test.vi now also works. I added in the Visa Serial the two characters to set DTS and RTS to unasserted, but I still get the Timeout Error.

0 Kudos
Message 8 of 8
(3,800 Views)