CM_SCPI
Description: ADS Ptolemy link to send SCPI commands to any instrument
Library: Instruments
Class: SDFCM_SCPI
Parameters
| Name | Description | Default | Type |
|---|---|---|---|
| Instrument | instrument to be used in the simulation | [GPIB0::19::INSTR][localhost][4790] | instrument |
| SetupCommands | commands to send at simulation setup time | string | |
| BeginCommands | commands to send at simulation begin time | string | |
| WrapupCommands | commands to send at simulation wrapup | string | |
| SendIDCommand | send SCPI "*IDN" command to instrument (select NO for non-SCPI instrument): NO, YES | YES | enum |
| Enabled | When YES communicates with instruments: NO, YES | YES | enum |
Notes/Equations
- CM_SCPI sends arbitrary commands to an instrument at the beginning and end of simulation. This model can be used for configuration of an instrument beyond what ADS Ptolemy models provide. This model uses the connection manager architecture to communicate with the instrument. See Client-Server Architecture in the Connection Manager documentation for more information.
- Prerequisites for using CM_SCPI are:
- Any instrument that supports commands in ASCII text format; for example, instruments that comply with the IEEE 488.2 standard.
- Supported method of connecting the instrument to your computer through the Connection Manager architecture. For detailed setup information, refer to Configuring the Server IO on the PC in the Connection Manager documentation.
- The Instrument parameter specifies a triplet that identifies the specific instrument to be used in the simulation, along with the Connection Manager server information to be used to connect to the instrument.
To interactively select an instrument, refer to Instrument Selection.
For more information regarding instrument selection, see Discovering Connected Hardware in the Connection Manager documentation. - Commands sent to the instrument are echoed to the status server for confirmation. Enclose variable names inside your commands with curly braces. For example, if you have a variable F signifying the frequency, setting BeginCommands to :FREQ {F} Hz sets the instrument frequency.
- The SendIDCommand parameter provides the flexibility to use this SCPI model to send commands to instruments that are not SCPI compliant. SendIDCommand = YES by default, which causes the SCPI identification command *IDN? to be transmitted during initialization. Set SendIDCommand to NO when used with non-SCPI instruments.
- The Enabled parameter, when set to YES, enables CM_SCPI to log information into the simulation status window and communicate with instruments; when set to NO, logging and communication activities are disabled.
- Refer to the appropriate instrument documentation for commands that correspond to the settings you want. Use semicolons to separate multiple commands. If you send a query command (one containing a question mark), CM_SCPI reads the result and display the result in the status window.
Privacy
Statement
|
Terms of Use
|
Legal |
Contact Us
|
© Agilent 2000-2008 ![]()
