JPA Consultingaccelerating product development

 
 

Introduction

Why SCPI?

Why use the JPA-SCPI Parser?

JPA-SCPI Parser

Overview

Features

DATASHEET

Quick-start user guide

Create Command Set file-pair

Integrate into your code

Specifications

Download Manual

Free Demo

Ordering

Order Info & Pricing

Terms & Conditions

ORDER NOW

SCPI Explained

What is SCPI?

SCPI Commands

Links

Support

Support Request

Contact Us

JPA-SCPI Parser V1.3 Specifications

Source Code

Language C, fully ANSI/ISO-compliant
External libraries required none
Typical compile-size1 13.3KB ROM, 165 Bytes RAM2

SCPI Support

SCPI Version

V1999.0 (current version)

Long and Short-form keywords

Yes, e.g. VOLTage allows VOLT or VOLTAGE

Compound commands
(i.e. multiple commands separated by semi-colons)

Yes

Numeric suffix Yes, e.g. OUTPut<Channel Number>

Optional keywords

Yes, e.g. [:AMPLitude]

Default nodes

Yes

Query commands

Yes

Optional parameters

Yes

Parameter types supported

Numeric Values (all variations as defined in SCPI, i.e.: integer, floating-point and scientific notation (up to and beyond +/- 9.9 e +/-37, regardless of processor/compiler limitations)

Character Data (i.e. mnemonics such as "MINimum", "DEFault", etc.)

Booleans

Strings (delimited by quotes)

Unquoted Strings

Numeric Lists, e.g. (11.4, 15:27, 31)

Channel Lists, e.g. (@2!3:4!8, 5!12)

Expressions3

Default parameters

Yes (Boolean and Character Data parameters)

Multiple-parameter types allowed for the same command

Yes, e.g. {MINimum|MAXimum|<range>}

Units

Numeric values can be followed by a unit suffix, e.g. kV, GR, uH, etc. Unit Multipliers (p, u, m, k, Ma, G, etc.) automatically scaled to base units. User-definable units allow complete flexibility.

Number Bases

Numeric values can be entered in decimal, binary, octal, or hexadecimal

Maximum Length of Command Line

255 characters or more (limited only by processor/ compiler)

Number of Commands that can be Specified

255 or more (limited only by processor/compiler)

SCPI Instrument Class Templates Supplied

A template is supplied for each of these SCPI Instrument Classes:
  DC Voltmeter
  AC Voltmeter
  DC Ammeter
  AC Ammeter
  Ohm Meter
  Four-Wire Ohm Meter
  Digitizer (e.g. oscilloscope)
  DC Power Supply
  Signal Switcher (e.g. programmable switch system)
  RF Source (e.g. RF and microwave signal generators)
  Base Template (supports the base SCPI commands required by all instruments)

Notes

1Compile-size excludes space occupied by command set of instrument, and with no optional support features (numeric suffix, numeric lists, channel lists, expressions) enabled. Requires 5KB ROM extra with all support features turned on

2These figures were obtained when compiling JPA-SCPI Parser for a Microchip PIC18C452 using the HiTech C-18 compiler (optimizations on)

3Expressions are returned as a string pointer. nterpretation of the contents of expressions must be handled by the user's code