06-02-2015 05:33 AM
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
Solved! Go to Solution.
06-02-2015 06:25 AM
06-02-2015 06:39 AM - edited 06-02-2015 06:53 AM
Hey Dennis,
I have Labview 2011 so I downloaded the Driver Labview 8.0 version from this Link:
and I use RS 232.
NI MAX found an COM-Port. I dont know what is necessary there.
06-02-2015 06:57 AM
06-02-2015 07:52 AM - edited 06-02-2015 07:59 AM
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?
06-02-2015 07:59 AM
06-02-2015 08:12 AM - edited 06-02-2015 08:14 AM
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.
06-02-2015 08:27 AM
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.