Priya:
If you are using streamDevice, and I recommend that you do, you can put
all of the output string commands into a single streamDevice protocol.
The "READ?" command appears to be a query that will invoke a response
from the device. In that case, you can also use an 'in' command to
acquire the reply, and format it into the respective record:
RESET {
out "*RST";
out "SOUR:FUNC VOLT";
out "SOUR:VOLT:MODE FIX";
out "SOUR:VOLT:RANG 20";
out "SOUR:VOLT:LEV 10";
out "OUTP ON";
out "READ?";
in "%f";
}
I think you would probably not want to reset the device each time you
read from it, so splitting the READ query into a separate protocol
attached to a separate record (ai, presumably) probably makes more sense.
Definitely see the streamDevice online docs for all of the details.
Rod Nussbaumer
Control System Group, TRIUMF
Vancouver, Canada
On 09/11/2014 06:48 AM, Mooney, Tim M. wrote:
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
- Replies:
- Re: Keithley 2400 communication priya tiwari
- References:
- Keithley 2400 communication priya tiwari
- RE: Keithley 2400 communication Mooney, Tim M.
- Navigate by Date:
- Prev:
RE: Keithley 2400 communication Mooney, Tim M.
- Next:
RE: msi missing when isntalling synApps Allison, Stephanie
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
<2014>
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
RE: Keithley 2400 communication Mooney, Tim M.
- Next:
Re: Keithley 2400 communication priya tiwari
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
<2014>
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|