New PILMon Command Set

Long Name

Short
Name
 

Does

Parameters

Comments

Returns

AttenuatorAttenuationGet

AAG

Get current attenuation

<no parameters>

Get current attenuation of selected subunit.

Returns float value

AttenuatorAttenuationSet

AAS

Set current attenuation

<attenuation(float)>

Set attenuation of selected subunit to <attenuation>.

AttenuatorInfo

AI

Info about attenuator subunit

<no parameters>

Get information about selected attenuator subunit.

Returns values: <type>;<number of steps>;<size of each step>

AttenuatorPadValue

AP

Get attenuator pad value

<index(int)>

Get value of attenuator pad at <index>.

Returns float value.

AttenuatorType

AT

Info about attenuator in string form

"<no parameters>

Get information about selected attenuator subunit in text form. Returns string in form: ATTEN(<number of steps><step size in dB>)"

BatteryCurrentGet

BCG

Get battery simulator current

<no parameters>

Get current setting of battery simulator subunit current leak.

Returns float value.

BatteryCurrentSet

BCS

Set battery simulator current

<current(float)>

Set battery simulator subunit current leak.

BatteryEnableGet

BEG

Get battery simulator enabled pattern

<no parameters>

Get current setting of battery simulator subunit output states.

Returns binary pattern characterizing states.

BatteryEnableSet

BES

Set battery simulator enabled pattern

<pattern(int)>

Set battery simulator subunit output states according to pattern.

BatteryInterlockGet

BIG

Get battery simulator interlock state

"<no parameters>

Get interlock state of battery simulator subunit. Returns 1 if all interlocks are up or 0 if one or more interlocks are down."

BatteryVoltageGet

BVG

Get battery simulator voltage

<no parameters>

Get current setting of battery simulator subunit voltage.

Returns float value.

BatteryVoltageSet

BVS

Set battery simulator voltage

<voltage(float)>

Set battery simulator subunit votage.

CalibrationReadInt

LRI

Read int calibration value

<index(int)>

Read integer calibration value of pad <index>.

Returns integer value.

CalibrationReadDate

LRD

Read calibration date

"<store(int)>

Read calibration date of subunit. <store> can be 0-for user store 1-for factory store. Returns date in form: <year>;<day>;<interval>."

CalibrationReadFp

LRF

Read float calibration value

<store(int)> <offset(int)>

Read float calibration value of <store> on position <offset>.

Returns float value.

CalibrationWriteInt

LWI

Write int calibration value

<index(int)> <value(int>

Write integer calibration value <value> of pad <index>.

CalibrationWriteDate

LWD

Write calibration date

"<store(int)> <interval(int)>

Write calibration date of subunit. <store> can be 0-for user store 1-for factory store. Date written is current system date <interval> is number of days for cards to be recalibrated."

CalibrationWriteFp

LWF

Write float calibration value

<store(int)> <offset(int)> <value(float)>

Write float calibration value <value> of <store> on position <offset>.

CardClear

CC

Clear current card

<no parameters>

Clear all switches on all subunits on selected card.

CardClearAll

CCA

Clear all cards

<no parameters>

Clear all switches on all subunits on all cards.

CardClose

CL

Close current card

<no parameters>

Close selected card. Card cannot be used until opened again.

CardCloseAll

CLA

Close all cards

<no parameters>

Close all opened cards.

CardDiagnostic

CD

Get card diagnostic

<no parameters>

Get text diagnostic of selected card. When card is faulty diagnostics shows details about faults. It does not diagnose the relays, only communication

Returns diagnostic text.

CardId

CI

Get card id string

<no parameters>

Get card id string in form: <card model>;<serial number>;<card revision>

CardLoc

CLO

Get card location

<no parameters>

Get card physical location.

Returns location in form: <bus>;<device>;

CardOpen

CO

Open card with specified bus and slot

"<bus(int> <device(int)> [access(int)]

Open card on physical position <bus> <device>. Optional parameter [access] modifies access setting. 1-exclusive access 0-nonexclusive access. Card is opened with exclusive access implicitly. "

CardOpenAll

COA

Open all cards in LXI

"[access(int)]

Open all cards in LXI if possible. Optional parameter [access] modifies access setting. 1-exclusive access 0-nonexclusive access. Cards are opened with exclusive access implicitly."

CardStatus

CS

Get card status code

"<no parameters>

Get status of selected card. Status consists of binary flags detecting various problems of card.

Result: hex integer containing status flags."

FindCountCards

FCC

Count free cards

<no parameters>

Get number of available cards in LXI.

Returns integer value.

FindFreeCards

FFC

Find free cards

<no parameters>

Get location of all unopened cards.

Returns locations of cards in form: <bus1> <device1>;<bus2> <device2>;...

InputBitRead

IBR

Read bit state of input subunit

<bit(int>

Read state of individual <bit> of selected input subunit.

Returns state of bit= 1-active 0-inactive.

InputSubunitRead

IUR

Read state of whole input subunit

<no parameters>

Read states of all bits of selected input subunit.

Returns hex string representing all states of bits.

PSUEnableSet

PES

Set enable state of PSU

<state(int)>

Set output state of psu subunit.

PSUInfo

PI

Info about PSU

"<no parameters>

Get info about selected psu subunit.

Returns info in form: <type>;<ratedvoltage>;<ratedcurrent>;<precision>;<capabilities(hex flags)>"

PSUType

PT

Info about PSU in string form

<no parameters>

Get info about selected psu subunit in string form.

Returns info in form: PSUDC(<rated voltage><rated current>).

PSUVoltageGet

PVG

Get current voltage of PSU

<no parameters>

Get current setting of voltage of selected psu subunit.

Returns float value.

PSUVoltageSet

PVS

Set voltage of PSU

<voltage(float)>

Set voltage setting of selected psu subunit.

ResistorInfo

RI

Info about resistor subunit

"<no parameters>

Get info about selected programmable precision resistor subunit.

Returns: <minres>;<maxres>;<referenceres>;<precisionpc>;<precisiondelta>;<reserved>;<reserved>;<capabilities(hex flags)>"

ResistorResistanceGet

RRG

Get current resistance of subunit

<no parameters>

Get output resistance of selected programmable precision resistor subunit.

Returns float value.

ResistorResistanceSet

RRS

Set resistance of subunit

<resistance(float)>

Set output resistance of selected programmable precision resistor subunit to <resistance>.

SwitchClose

SC

Close switch

<bit(int)>

Close switch (energize relay coil) on selected subunit of index <bit>.

SwitchOpen

SO

Open switch

<bit(int)>

Open switch (disengage relay coil) on selected subunit of index <bit>.

SwitchView

SV

Get state of a switch

<bit(int)>

Get state of switch on selected subunit of index <bit>.

Returns 1 if coil is energized 0 otherwise.

SwitchMask

SM

Mask switch from using

<bit(int)>

Mask switch on selected subunit of index <bit>.

Switch cannot be operated until unmasked.

SwitchUnmask

SU

Unmask switch for using

<bit(int)>

Clear mask of switch on selected subunit of index <bit>.

SwitchMaskView

SMV

Get state of mask of a switch

<bit(int)>

Get state of mask of switch on selected subunit of index <bit>.

Returns 1 if mask is active 0 otherwise.

SubunitClear

UC

Clear subunit

<no parameters>

Clear all switches (set relays to their default state) on selected subunit.

SubunitClosureLimit

UCL

Get closure limit of subunit

"<no parameters>

Get closure limit of selected subunit. Closure limit is maximum number of switches that can be simultaneously closed on a subunit.

Returns integer value."

SubunitEnumerate

UE

Get number of subunits

"<no parameters>

Get number of input and output subunits on selected card.

Returns: <number of input subunits>;<number of output subunits>"

SubunitInfo

UI

Info about subunit

"[input(int)]

Get information about subunit.

Optional parameter <input> states whether to get information about input-0 or output-1 subunit. Implicitly its output.Returns information in form: <type>;<number of rows>;<number of columns>"

SubunitSettleTime

USE

Get settling time of relays

<no parameters>

Get time in ms that is required for relay contanct to settle down after switch operation.

Return integer value.

SubunitStatus

UST

Status code of subunit

"<no parameters>

Get status of selected subunit. Status consists of binary flags detecting various problems of subunit.

Result: hex integer containing status flags."

SubunitType

UT

Info about subunit in string form

"[input(int)]

Get string info about selected subunit.

Return string contains description of the subunit.




Optional parameter <input> states whether to get information about input-0 or output-1 subunit. Implicitly its output.




For example: MATRIX(<columns>X<rows>)"

SubunitMaskClear

UMC

Clear mask on whole subunit

<no parameters>

Clears all mask bits on selected subunit.

SubunitMaskView

UMV

View state of mask on whole subunit

"<no parameters>

View states of all mask bits on selected subunit.

Return hex string describing mask. Each bit in hex string represents 1 bit of mask."

SubunitMaskWrite

UMW

Write mask states to whole subunit

"<pattern(hex string)>

Writes hex string converted to bit array into subunit mask bits. Note that hex string must be started with \0x\"" notation."""

SubunitView

UV

View states of switches on subunit

"<no parameters>

View states of all switches on selected subunit.

Return hex string describing states of switches. Each bit in hex string represents 1 switch."

SubunitWrite

UW

Write states of switches on subunit

"<pattern(hex string)>

Writes hex string converted to bit array into subunit.




Note that hex string must be started with \0x\"" notation."""

How did we do?
0 out of 0 people found this helpful.