I got the Uni-T UTE310 Power Meter and am looking to add support, what's the best/easiest way to go about this?
Maybe take an existing power meter TXT config file and modify it?
First you need to find what type of protocol it uses, it can be SCPI, but not everything uses that.
When you have found protocol type, you need to match it to a TC supported protocol:
https://lygte-info.dk/project/TestControllerConfigDevice%20UK.htmlhttps://lygte-info.dk/project/TestControllerConfigDevice2%20UK.htmlWhat is on the above two pages are the general protocols supported by TC, it has a list of more specialized protocols that I have not documented.
When you have the protocol you need to get a connection to the device, if TC already have something with the same type of protocol you can use that as a start.
For this part you start TC in debug mode, with only that device loaded.
The steps are:
1) Establish connection
2) Add data columns (#value)
3) Read values from device (#askValues and maybe #prepareSample, #initCmd , #finalCmd)
4) Add control of device (#cmdSetup, #cmdMode)
5) Add off settings if relevant: #outputOff
6) Optionally add #interface section, this is required for some TC functionality.
7) If there are multiple similar devices in a series look at #meta and #metadef
You will generally want to do you development and test of protocols in ..\documents\TestController\Devices it is the place for user defined devices.
For SCPI devices there is a shortcut for step 1: Select "Load devices" page, right click on "Search socket" and select "Create new SCPI definition"
Note that if UTE310 uses the UNI-T interface cable, it most likely uses a HID interface and TC do not support that.