PWACImmunityAPI.proto
Provide various functions that allow you to run the Immunity Tests. The functions are:
Be sure to input the Mandatory settings for the parameters. You may skip the Optional settings.
Run the function files in the following sequence for executing the Immunity test.
1. loadImmunityTestFile
2. runImmunityTest
1. loadImmunityTestFile
2. runImmunityTest
loadImmunityTestFile
Load the pre-configured Immunity test file into the AC Source application.
The Immunity test file has to be pre-configured using the AC Source before it can be used via gRPC service.

Input
Type | Parameter | Input | Input Option |
---|---|---|---|
string | modelNumber | The model number of the instrument. | Optional |
string | visaAddress | The visa address of the instrument. | Mandatory |
string | serialNumber | The serial number of the instrument. | Optional |
string | firmwareVersion | The firmware version of the instrument. | Optional |
string | testFilePath | The path where the Immunity test file is located. | Mandatory |
Response
Type | Name | Response |
---|---|---|
bool | status | true - When no error is detected |
ImmunityErrorData | error | Show error information if there is any error.
|
runImmunityTest
Run the previously-loaded Immunity test via the loadImmunityTestFile function.

Input
Type | Parameter | Input | Input Option |
---|---|---|---|
string | modelNumber | The model number of the instrument. | Optional |
string | visaAddress | The visa address of the instrument. | Mandatory |
string | serialNumber | The serial number of the instrument. | Optional |
string | firmwareVersion | The firmware version of the instrument. | Optional |
IECStandard |
standard | The IEC Standard to be run in the Immunity test. 0 - To select IEC-61000-4-11 1 - To select IEC-61000-4-13 2 - To select IEC-61000-4-14 3 - To select IEC-61000-4-17 4 - To select IEC-61000-4-27 5 - To select IEC-61000-4-28 6 - To select IEC-61000-4-29 7 - To select IEC-61000-4-34 |
Mandatory |
Response
Type | Name | Response |
---|---|---|
bool | status | true - When no error is detected |
ImmunityErrorData | error | Show error information if there is any error.
|