EXAMPLES
Fetch Online Measurement Data
-> *RST // Reset Device
-> :COMMunicate:HEADer 0 // Switch Off Header response
-> *IDN? // Query Identification
<- "DEWETRON,OXYGEN,0,2.5 RC1"
-> *VER? // Query Version Information
<- "SCPI,"1999.0",RC_SCPI,"1.5",OXYGEN,"2.5 RC1""
-> :SETUP:LOAD "scpi_test_setup.dms" // Load Measurement setup
-> :ACQU:STAT? // Query Acquisition state
<- Waiting_for_sync
-> :ACQU:STAT? // Query Acquisition state
<- Started
-> :RATE 500ms // Set Aggregation Rate to 500ms
-> :NUM:NORMal:ITEMs "ABS-TIME","U1_tRMS@PG1","I1_tRMS@PG1","P1_t@PG1"
-> :NUM:NORMal:ITEMs? // Query Output Channels
<- "ABS-TIME","U1_tRMS@PG1","I1_tRMS@PG1","P1_t@PG1"
-> :NUM:NORMal:VAL?
<- "2017-08-28T13:17:26.9715+00:00",5.6568531E+1,5.6568531E+1,3.1999988E+3
Store Measurement Data on Device
-> *RST // Reset Device
-> :COMMunicate:HEADer 0 // Switch Off Header response
-> *IDN? // Query Identification
<- "DEWETRON,OXYGEN,0,5.1.1"
-> *VER? // Query Version Information
<- "SCPI,"1999.0",RC_SCPI,"1.10",OXYGEN,"5.1.1""
-> :SETUP:LOAD "scpi_test_setup.dms" // Load Measurement setup
-> :ACQU:STAT? // Query Acquisition state
<- Waiting_for_sync
-> :ACQU:STAT? // Query Acquisition state
<- Started
-> :STORe:FILE:NAME "TEST_1" // Set File Name for storing operation
-> :STORe:STARt // Start storing operation
-> :STORe:PAUSe // Pause storing operation
-> :STORe:STARt // Resume storing operation
<- :STORe:STOP // Stop storing operation
Set Channel Properties
Set a bool Item example
-> :CHANNEL:ID? "Sync Sim 0" //get channel id
<- :CHANNEL:ID "10271021882991968256"
-> :CHANNEL:CONSTR? "10271021882991968256","Used" //check constraints
<- :CHANNEL:CONSTR (BOOL,OFF),(BOOL,ON)
-> CHANNEL:PROP? "10271021882991968256","Used" //get value
<- :CHANNEL:PROP (BOOL,OFF)
-> :CHANNEL:PROP "10271021882991968256","Used",ON //set value
-> :CHANNEL:PROP? "10271021882991968256","Used"
<- :CHANNEL:PROP (BOOL,ON)
-> :CHANNEL:PROP "10271021882991968256","Used",OFF
-> :CHANNEL:PROP? "10271021882991968256","Used"
<- :CHANNEL:PROP OFF
Set a string Item example
-> :CHANNEL:ID? "AI 2/1 Sim" //get channel id
<- :CHANNEL:ID "8785115489526349845"
-> :CHANNEL:PROP? "8785115489526349845","Mode" //get current value
<- :CHANNEL:PROP (STRING,"Voltage")
-> :CHANNEL:CONSTR? "8785115489526349845","Mode" //get item constraints
<- :CHANNEL:CONSTR (STRING,"Calibration"),(STRING,"Voltage"),
(STRING,"Resistance"),(STRING,"IEPE"),(STRING,"Bridge"),
(STRING,"ExcCurrentMonitor"),(STRING,"ExcVoltMonitor"),
(STRING,"Current")
-> :CHANNEL:PROP "8785115489526349845","Mode","Resistance" //set new value
-> :CHANNEL:PROP? "8785115489526349845","Mode" //get current value
<- :CHANNEL:PROP (STRING,"Resistance")
Set a floating point Item example
-> :CHANNEL:PROP? "3789779077842337813","Neon/PhysicalScaleFactor"
<- :CHANNEL:PROP (FLOAT,1.2)
-> :CHANNEL:PROP? "3789779077842337813","Neon/PhysicalScaleOffset"
<- :CHANNEL:PROP (FLOAT,0.0)
-> :CHANNEL:PROP "3789779077842337813","Neon/PhysicalScaleFactor",1.1
-> :CHANNEL:PROP "3789779077842337813","Neon/PhysicalScaleOffset",0.1
-> :CHANNEL:PROP? "3789779077842337813","Neon/PhysicalScaleFactor"
<- :CHANNEL:PROP (FLOAT,1.1)
-> :CHANNEL:PROP? "3789779077842337813","Neon/PhysicalScaleOffset"
<- :CHANNEL:PROP (FLOAT,1.0E-1)
Set an enum item example
-> :CHANNEL:ID? "Sync Sim 0" //get channel id
<- :CHANNEL:ID "10439625394041651200"
-> :CHANNEL:PROP? "10439625394041651200","Neon/Stored" //get current value
<- :CHANNEL:PROP (ENUM,"ChannelStored","Auto")
-> :CHANNEL:CONSTR? "10439625394041651200","Neon/Stored" //get constraints
<- :CHANNEL:CONSTR (ENUM,"ChannelStored","Auto"),(ENUM,"ChannelStored","No")
-> :CHANNEL:PROP "10439625394041651200","Neon/Stored","No" //set item
-> :CHANNEL:PROP? "10439625394041651200","Neon/Stored" //get current value
-> :CHANNEL:PROP (ENUM,"ChannelStored","No")
-> :CHANNEL:PROP "10439625394041651200","Neon/Stored","ChannelStored","Auto"
-> :CHANNEL:PROP? "10439625394041651200","Neon/Stored"
-> :CHANNEL:PROP (ENUM,"ChannelStored","Auto")
Set scalar item example
-> :CHANNEL:ID? "AI 2/1 Sim"
<- :CHANNEL:ID "14649928104269578261"
-> :CHANNEL:PROP? "14649928104269578261","SensorDelay" //get current value
<- :CHANNEL:PROP (SCALAR,0.0,"ms")
-> :CHANNEL:CONSTR? "14649928104269578261","SensorDelay" //get item constraints
-> :CHANNEL:CONSTR (FLOAT,0.0),(FLOAT,500.0)
-> :CHANNEL:PROP "14649928104269578261","SensorDelay",SCALAR,100,"ms" //set item
-> :CHANNEL:PROP? "14649928104269578261","SensorDelay" //get current value
<- :CHANNEL:PROP (SCALAR,100.0,"ms")
-> :CHANNEL:PROP "14649928104269578261","SensorDelay",500 //set item
-> :CHANNEL:PROP? "14649928104269578261","SensorDelay" //get current value
-> :CHANNEL:PROP (SCALAR,500.0,"ms")
-> :CHANNEL:PROP "14649928104269578261","SensorDelay",0.4s //set item
-> :CHANNEL:PROP? "14649928104269578261","SensorDelay" //get current value
<- :CHANNEL:PROP (SCALAR,4.0E-1,"s")
-> :CHANNEL:PROP "14649928104269578261","SensorDelay",300,"ms"
-> :CHANNEL:PROP? "14649928104269578261","SensorDelay"
<- :CHANNEL:PROP (SCALAR,300.0,"ms")
Set range item example
-> :CHANNEL:PROP? "8785115489526349845","Range"
<- :CHANNEL:PROP (RANGE,-10.0,"V",10.0,"V")
-> :CHANNEL:CONSTR? "8785115489526349845","Range"
<- :CHANNEL:CONSTR (FLOAT,2.0E-4),(FLOAT,10.0),(RANGE,-10.0,"V",10.0,"V"),
(RANGE,-3.0,"V",3.0,"V"),(RANGE,-1.0,"V",1.0,"V"),
(RANGE,-3.0E-1,"V",3.0E-1,"V"),(RANGE,-1.0E-1,"V",1.0E-1,"V"),
(RANGE,-3.0E-2,"V",3.0E-2,"V"),(RANGE,-1.0E-2,"V",1.0E-2,"V")
-> :CHANNEL:PROP "8785115489526349845","Range",RANGE,-1.0E-2,"V",1.0E-2,"V"
-> :CHANNEL:PROP? "8785115489526349845","Range" //get current value
<- :CHANNEL:PROP (RANGE,-1.0E-2,"V",1.0E-2,"V")
-> :CHANNEL:PROP "8785115489526349845","Range",-3.0V,3.0V //set value
-> :CHANNEL:PROP? "8785115489526349845","Range" //get current value
<- :CHANNEL:PROP (RANGE,-3.0,"V",3.0,"V")
Change sample rate with the sample rate divider example
-> :CHANNEL:PROP? "6995216112623288362","Neon/ReducedSampleRateActive"
<- :CHANNEL:PROP (BOOL,OFF)
-> :CHANNEL:PROP "6995216112623288362","Neon/ReducedSampleRateActive",ON
-> :CHANNEL:PROP? "6995216112623288362","Neon/ReducedSampleRateActive"
<- :CHANNEL:PROP (BOOL,ON)
-> :CHANNEL:PROP? "6995216112623288362","Neon/WantedReducedSampleRate"
<- :CHANNEL:PROP (SCALAR,5000.0,"Hz")
-> :CHANNEL:PROP "6995216112623288362","Neon/WantedReducedSampleRate",10000,"Hz"
-> :CHANNEL:PROP? "6995216112623288362","Neon/WantedReducedSampleRate"
<- :CHANNEL:PROP (SCALAR,10000.0,"Hz")