Hi Priya,
A quick way to do this would be to attach an asyn record to the serial
port, and use a sseq record to control and send strings to it.
record(sseq, "doReset") {
field(STR1, "Read")
field(LNK1, "asynrecord.TMOD")
field(STR2, "*RST")
field(LNK2, "asynrecord.AOUT CA")
field(WAIT2, "Wait")
field(STR3, ":SOUR:FUNC VOLT")
field(LNK3, "asynrecord.AOUT CA")
field(WAIT3, "Wait")
...
field(STR7, ":OUTP ON")
field(LNK7, "asynrecord.AOUT CA")
field(WAIT7, "Wait")
field(STR8, "Write/Read")
field(LNK8, "asynrecord.TMOD")
field(STR9, ":READ?")
field(LNK9, "asynrecord.AOUT CA")
field(WAIT9, "Wait")
}
Tim Mooney ([email protected]) (630)252-5417
Software Services Group (www.aps.anl.gov)
Advanced Photon Source, Argonne National Lab
------------------------------------------------------------------------
*From:* [email protected] [[email protected]] on
behalf of priya tiwari [[email protected]]
*Sent:* Thursday, September 11, 2014 2:19 AM
*To:* [email protected]
*Subject:* Keithley 2400 communication
Hello,
I am trying communication with KEITHLEY 2400 on serial port(RS-232).I
sent command "*IDN?" it has performed very well and i got the output.
i want to reset the device and the commands are
*RST
:SOUR:FUNC VOLT
:SOUR:VOLT:MODE FIX
:SOUR:VOLT:RANG 20
:SOUR:VOLT:LEV 10
:OUTP ON
:READ?
now,How to write program in VDCT for performing all commands
sequentially.Actually i have no idea about this.please help me....
Q.2: How to send commands to device at run time in VDCT?
what is the format of
caput? on that time
Thanks in advance