PWACAvionicsAPI.proto
Provide various functions that allow you to run the Avionics Tests. The functions are:
- LoadTestFile
- SaveTestFile
- ViewTestStep
- RunAvionicsTest
- CheckTestPlanStatus
- CheckTestStepStatus
- GenerateReport
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 Avionics test.
1. LoadTestFile
2. RunAvionicsTest
3. CheckTestPlanStatus and CheckTestStepPlan
4. GenerateReport
1. LoadTestFile
2. RunAvionicsTest
3. CheckTestPlanStatus and CheckTestStepPlan
4. GenerateReport
LoadTestFile
Load the pre-configured Avionics test file into the AC Source application.
The Avionics 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 Avionics test file is located. | Mandatory |
Response
Type | Name | Response |
---|---|---|
bool | status | true - When no error is detected |
AvionicsErrorData | error | Show error information if there is any error.
|
TestPlan | testPlanList | Show a list of loaded test plan details. See List of Loaded Test Plan Details. |
List of Loaded Test Plan Details
Type | Name | Response |
---|---|---|
int32 | id | Show the ID of the test plan. |
TestStandard | standard | 0 - DO-160 Test Standard 1 - MIL-STD-704 Test Standard |
string | section | Show the section of the test plan. |
string | name | Show the test plan name. |
OutputMode | outputMode | 0 - 1P output mode 1 - 3P output mode |
OutputCouplingMode | outputCouplingMode | 0 - AC mode 1 - DC mode 2 - ACDC mode |
VoltageRangeMode | voltageRange | 0 - High (H) voltage range 1 - Low (L) voltage range |
SaveTestFile
Save the current Avionics test file that you have configured on the AC Source application.

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 Avionics test file will be saved. | Mandatory |
Response
Type | Name | Response |
---|---|---|
bool | status | true - When no error is detected |
AvionicsErrorData | error | Show error information if there is any error.
|
ViewTestStep
View the list of test steps details in a certain test plan.

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 |
int32 | testPlanId | The ID of the test plan. | Mandatory |
Response
Type | Name | Response |
---|---|---|
bool | status | true - When no error is detected |
AvionicsErrorData | error | Show error information if there is any error.
|
TestStep | testStepList | Show a list of test steps details in the test plan. See List of Test Steps Details in the Test Plan. |
List of Test Steps Details in the Test Plan
Type | Name | Response |
---|---|---|
int32 | stepID | Show the ID of the test plan. |
float | aCVoltage | Show the AC voltage used in the test step if 1P mode is selected. |
float | acVoltU | Show the AC voltage used for the phase U if 3P mode is selected. |
float | acVoltV | Show the AC voltage used for the phase V if 3P mode is selected. |
float | acVoltW | Show the AC voltage used for the phase W if 3P mode is selected. |
float | dCVoltage | Show the DC voltage used in the test step if 1P mode is selected. |
float | adVoltU | Show the DC voltage used for the phase U if 3P mode is selected. |
float | adVoltV | Show the DC voltage used for the phase V if 3P mode is selected. |
float | adVoltW | Show the DC voltage used for the phase W if 3P mode is selected. |
bool | acVoltRamp | Show the AC voltage ramp. |
bool | dcVoltRamp | Show the DC voltage ramp. |
float | duration | Show the test step execution time. |
float | frequency | Show the test step frequency. |
bool | freqRamp | Show the frequency ramp. |
bool | outputOn | true - If the output is turned on. false - If the output is turned off. |
int32 | wave | Show the waveform bank ID for the test step. |
int32 | jumpIndex | Show the destination step number (skip steps). |
int32 | loopNumber | Show the number of times to repeat the step continuously. |
float | uvPhase | Show the phase U and phase V angle difference. |
float | uwPhase | Show the phase U and phase W angle difference. |
bool | trigger | true - If the trigger output signal is turned on. false - If the trigger output signal is turned off. |
bool | status | true - If the status output signal is turned on. false - If the status output signal is turned off. |
bool | enabled | true - Show the results upon completion of the step. false - Do not show the results upon completion of the step. |
Depending on the Phase Naming Convention setting, the "U, V, and W" may be displayed differently as "1, 2, and 3" or "A, B, and C".
RunAvionicsTest
Run the previously-loaded Avionics test(s) via the LoadTestFile 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 |
int32 | testPlanIds | The test plan ID(s) to be run in the Avionics test. | Mandatory |
Response
Type | Name | Response |
---|---|---|
bool | status | true - When no error is detected |
AvionicsErrorData | error | Show error information if there is any error.
|
CheckTestPlanStatus
Check the status of the selected test plan(s).

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 |
int32 | testPlanIds | The ID(s) of the test plan you want to check the status. | Mandatory |
Response
Type | Name | Response |
---|---|---|
bool | status | true - When no error is detected |
AvionicsErrorData | error | Show error information if there is any error.
|
TestPlanStatus | testPlanStatus | Show a list of test plan statuses.
|
CheckTestStepStatus
Check the status of the test step(s) in the selected test plan.

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 |
int32 | testPlanId | The ID of the test plan containing the test steps. | Mandatory |
int32 | testStepIds | The list of test step IDs. | Mandatory |
Response
Type | Name | Response |
---|---|---|
bool | status | true - When no error is detected |
AvionicsErrorData | error | Show error information if there is any error.
|
TestStepStatus | testStepStatus | Show a list of test step statuses.
|
GenerateReport
Generate the report for the executed Avionics test.

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 | reportDirectory | The directory where the report will be saved. | Mandatory |
ReportType | reportType | 0 - To save the report in PDF format 1 - To save the report in MS Word format |
Mandatory |
Response
Type | Name | Response |
---|---|---|
bool | status | true - When no error is detected |
AvionicsErrorData | error | Show error information if there is any error.
|