Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

keithley 6517a serial interface help

Solved!
Go to solution
SOrry this is the updated one, in case u need to look at it
0 Kudos
Message 11 of 28
(5,360 Views)
forgot to attach the file lol
0 Kudos
Message 12 of 28
(5,360 Views)

Your format string is set for normal display. In order to send the \r\n, you need to set it for '\' Codes Display. right click on it and change it.

 

Your last VI does not have the Read? command.

 

You are converting the reading to an integer. You want to convert to a float. Don't strip the exponent.

 

Your VI has some code that is very confusing and almost certainly unnecessary. All of the stuff with the divide and insert into array makes no sense. If the dividing value is supposed to represent number of steps, subtract the start voltage from the stop voltage and divide by number of steps. Use a shift register. Something like the image below.

 

Ramp.PNG

0 Kudos
Message 13 of 28
(5,357 Views)

I just learned how to use shift registers.

Thanks to you, I made it much easiar to understand now.

I used the dividing voltage as an incrementer to the starting voltage (that's what i wanted).

 

But the error -110:command header error still persists, even after changing both constant strings to \code display.

 

It gives me a full information when it reads, so i wanted to only use the voltage value. For ex, it gives me this when i read using a different VI "+00.23157E+00NVDC,+0001795.962808secs,+28032rdng#", but I only want  "00.23157", so i trimmed of everything after E and change the before to int

 

Could you please tell me what;s my VI not to read even after putting :READ?

 

Thanks

0 Kudos
Message 14 of 28
(5,350 Views)

I fixed the converting from huge string to just a number.

I was playing around and found out that I can simply use "Fract/Exp string to number" conversion function to convert that huge string to just a number.

 

SO all that;s left to fix is reading the instrument problem.

0 Kudos
Message 15 of 28
(5,347 Views)
Solution
Accepted by topic author ADDS

You changed to '\' Code Display but did not fix the format string! Notice the \\r and \\n? And if the first command requires a \r\n, then the Read command requires it as well.

 

And NO, do not eliminate the code after the E and NO, do not convert to an integer. Why would you want to drop the exponent and why would you want to eliminate all decimal places. Read the help for the function you are using or get an understanding of the differences between an integer and a floating point number. You are converting 00.2317 to 0! Use a Scan From String with a %f format string and leave the string alone.

 

You also want to wire a False constant to the reset input of the Build XY Graph. Otherwise, you won't see anything except a single point.

0 Kudos
Message 16 of 28
(5,346 Views)

Finally, everything is working now thanks to you (except an error called -213:Init ignored, which is not affecting any results, but I might fix it later myself).

I have learned a lot from you, Dennis.

 

Thank you again and keep up the good work helping people.

0 Kudos
Message 17 of 28
(5,339 Views)

Hi all,

I'm currently working on the Keithley 6485 picoammeter and I'm also trying to convert the driver to RS-232. 
However, I'm having problem with understanding SCIP, and since I'm using LV 7.0, I can't access the examples posted.  Can anyone give me some tips or a LV 7.0 readable example?

Thanks alot,

0 Kudos
Message 18 of 28
(4,939 Views)

Hi Devin,

 

Here’s a picture of the block diagram of the last VI that ADDS posted. Try to follow along what ADDS and Dennis were discussing. I’m not sure how similar the command set for the 6517 and the 6485 are, but this should give you a good starting point. If you have more questions it may be better to create a new forum post. Good luck!

 

Edit: forgot the pic!

Message Edited by Matt W. on 11-06-2009 05:11 PM
Message Edited by Matt W. on 11-06-2009 05:12 PM
Matt
Applications Engineer
National Instruments
0 Kudos
Message 19 of 28
(4,916 Views)

Thanks Matt!

0 Kudos
Message 20 of 28
(4,912 Views)