Initial commit
This commit is contained in:
6
SMT_PlayGround/hw_ext_tests/InstrumentConfig.json
Normal file
6
SMT_PlayGround/hw_ext_tests/InstrumentConfig.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{"Instrument": {
|
||||
"Variant": ["AVI64","FVI16"],
|
||||
"Option": ["activeTransition", "diffVoltmeter", "differential", "highCurrent", "highResolution", "highSpeed", "highVoltage", "highVoltageH", "highVoltageL", "precisionGangRange", "siteInterlacingOn"],
|
||||
"PinType": ["single","ganged","stacked"],
|
||||
"PinNumber": ["1","128"]
|
||||
}}
|
||||
5
SMT_PlayGround/hw_ext_tests/VariantConfig.json
Normal file
5
SMT_PlayGround/hw_ext_tests/VariantConfig.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"Variants": [
|
||||
{ "Variant": "AVI64","Directory": "hw_ext_variants\\Avi64\\Driver\\TestSetup","FacadeName": "AVI64" }
|
||||
]
|
||||
}
|
||||
66
SMT_PlayGround/hw_ext_tests/setups/Setup_Simple_Typ.json
Normal file
66
SMT_PlayGround/hw_ext_tests/setups/Setup_Simple_Typ.json
Normal file
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"Options": [
|
||||
"", "highCurrent"
|
||||
],
|
||||
"FileNotes" : [
|
||||
"This is a simple test setup with 1 instrument. It powers up the instrument, and disconnects after measurement.",
|
||||
"Firsst setup will trigger a problem message, which will be fixed in the second setup.",
|
||||
"Clamps are set to the minimum clamp distance of largest range, to support proper ganging.",
|
||||
"Range values are smaller than the actual used ranges, so we can verify proper ranging in states."
|
||||
],
|
||||
"Variables": [
|
||||
{"$forceValue": "1.0"},
|
||||
{"$clampCurrent": "0.03*gangCount"},
|
||||
{"$irange": "0.033*gangCount"}
|
||||
],
|
||||
"TestSetups" :
|
||||
[
|
||||
{
|
||||
"Setup" :
|
||||
{
|
||||
"Name": "Simple_Typ",
|
||||
"Notes" : [
|
||||
"This setup will do the main setup, but trigger a problem message.",
|
||||
"The force value is larger than the actual used ranges, so we receive a problem message."
|
||||
],
|
||||
"InstrumentSetup" : {
|
||||
"Name": "pin1",
|
||||
"Properties": [
|
||||
{ "level.vforce": "$forceValue" },
|
||||
{ "level.iclampSource": "$clampCurrent" },
|
||||
{ "level.iclampSink": "$clampCurrent" },
|
||||
{ "level.vrange": "0.0" },
|
||||
{ "level.irange": "$irange" },
|
||||
{ "connect": "true" },
|
||||
{ "disconnect": "true" },
|
||||
{ "disconnectMode": "hiz" }
|
||||
],
|
||||
"Expects": [
|
||||
{ "type" : "problem", "checks" :
|
||||
[ {"proplemMsg" : "The $forceValue exceeds the level.vrange*"}]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
,
|
||||
{
|
||||
"Setup" :
|
||||
{
|
||||
"Name": "Simple2_Typ",
|
||||
"Notes" : [
|
||||
"This setup will fix the problem frome above setup."
|
||||
],
|
||||
"InstrumentSetup" : {
|
||||
"Name": "pin1",
|
||||
"Properties": [
|
||||
{ "level.vrange": "$forceValue" }
|
||||
],
|
||||
"Expects": [
|
||||
{ "type" : "state", "checks" :[ {"property" : "forceValue" , "value" : "forceValue" }] }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
31
SMT_PlayGround/hw_ext_tests/templates/Test_Level_Simple.json
Normal file
31
SMT_PlayGround/hw_ext_tests/templates/Test_Level_Simple.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"GroupId": 1000,
|
||||
"UniqueTemplateId": "auto_generated",
|
||||
"Description": [
|
||||
"Simple test level with 1 instrument. Powers up the instrument, and disconnects after measurement.",
|
||||
"Can check states and logsets after execution."
|
||||
],
|
||||
"Features": [
|
||||
"PowerUpWoPowerSequence",
|
||||
"PowerDownNoPowerSequence"
|
||||
],
|
||||
"TestInput": [
|
||||
{ "Instruments" : "Instruments" },
|
||||
{ "SetupFileName" :"Setup_Simple_Typ",
|
||||
"setups" : [
|
||||
{"InitialSetup": "Simple_Typ"},
|
||||
{"FinalSetup": "Simple2_Typ"}
|
||||
] }
|
||||
],
|
||||
"Template": [
|
||||
{ "call" : "createMeasurement", "args": [ "Instruments"], "return" :"Measurement" },
|
||||
{ "call" : "applySetup", "args": ["Measurement", "InitialSetup"] },
|
||||
{ "call" : "buildMeasurement", "args": ["Measurement", "false"] },
|
||||
{ "call" : "ProblemCheck", "args": ["Measurement", "InitialSetup"] },
|
||||
{ "call" : "applySetup", "args": ["Measurement", "FinalSetup"] },
|
||||
{ "call" : "buildMeasurement", "args": ["Measurement", "true"] },
|
||||
{ "call" : "executeMeasurement", "args": ["Measurement", "true"] },
|
||||
{ "call" : "StateCheck", "args": ["Measurement", "FinalSetup"] },
|
||||
{ "call" : "LogSetCheck", "args": ["Measurement", "FinalSetup"] }
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user