Open rmadsen-ks opened 1 year ago
Make a new new project and verify that it works.
Prerequisites: Have Keysight Test Automation and Python v3.11 (from python.org) installed.
tap python new-project --project-name MyProject --directory %USERPROFILE%\Desktop\PythonTest
%USERPROFILE%\Desktop\PythonTest
<!-- <OpenTapPackageReference Include="Editor"/> -->
Modify the code:
class TestStepExample (TestStep): Number = property(Int32, 1000) Instrument = property(TestInstrument, None) def __init__(self): super(TestStepExample, self).__init__() def Run(self): self.log.Debug("Number: {0}", Int32(self.Number)) self.log.Debug("Measurement: {0}", self.Instrument.DoMeasurement())
09:56:25.531 TestStep Measurement: -0.842833355909102
Make a new new project and verify that it works.
Prerequisites: Have Keysight Test Automation and Python v3.11 (from python.org) installed.
tap python new-project --project-name MyProject --directory %USERPROFILE%\Desktop\PythonTest
%USERPROFILE%\Desktop\PythonTest
<!-- <OpenTapPackageReference Include="Editor"/> -->
from MyProject.Api/MyProject.Api.csprojModify the code:
09:56:25.531 TestStep Measurement: -0.842833355909102