Is there a possibility to read two values with the DMM2 driver?
V : -9.757mV->.
56 20 3A 20 2D 39 2E 37 35 37 6D 56 2D 3E 0A
how I can extract the number using #askValuesReadFormat ?Help please.
If for a SCPI command I get this reply (ASCII and as hex in next line):Code: [Select]V : -9.757mV->.
how I can extract the number using #askValuesReadFormat ?
56 20 3A 20 2D 39 2E 37 35 37 6D 56 2D 3E 0A
I've tried multiple ways and I'm getting 0.0 or NaN.
How to clean up configuration?
Delete some file in the ..\Documents\TestController\Settings folder. You can delete all files if you want, they will automatic be recreated. TestController will return to a "just installed" state if you do that. You can also check the individual settings.... files and only delete some of them. Other files in that directory will be downloaded from my server when needed (Except autorun.txt if it exist).
All the settings.... files are ascii files, i.e. you can edit them with a editor. This is perfectly legal, but if you damage the format too much you might have to delete the file to get TestController working again.
You need to strip the other characters away, this is done in a #askModeMathFormat statement. Something like:
#askModeMathFormat substring(value,4,11)
might do in if the answer always is the same length https://lygte-info.dk/project/TestControllerFunctions%20UK.html#substring else a getMatch(value,"[-1234567890.m]+") can be used.
Then you use
#askValuesReadFormat s
This will handle the m.
a6 05 00 00 7b 22 43 48 31 22 3a 7b 22 4d 41 58
{ " C H 1 " : { " M A X
<trim here>
" ? , O F F " } }
22 09 3f 2c 4f 46 46 22 7d 7d
{"CH1":{"MAX":"35.00mV,OFF","MIN":"-50.00mV,OFF","PKPK":"85.00mV,OFF","VTOP":" ?,OFF","VBASe":" ?,OFF","VAMP":" ?,OFF","AVERage":"-6.740mV,ON","SQUAresum":"18.04mV,OFF","CYCRms":" ?,OFF","CURSorrms":"18.03mV,OFF","OVERShoot":" ?,OFF","PREShoot":" ?,OFF","PERiod":" ?,OFF","FREQuency":" ?,OFF","RTime":" ?,OFF","FTime":" ?,OFF","PWIDth":" ?,OFF","NWIDth":" ?,OFF","PDUTy":" ?,OFF","NDUTy":" ?,OFF","SCREenduty":" ?,OFF","FRR":" ?,OFF","FRF":" ?,OFF","FFR":" ?,OFF","FFF":" ?,OFF","LRR":" ?,OFF","LRF":" ?,OFF","LFR":" ?,OFF","LFF":" ?,OFF","RDELay":" ?,OFF","FDELay":" ?,OFF","RPHAse":" ?,OFF","PPULsenum":" ?,OFF","NPULsenum":" ?,OFF","RISEedgenum":" ?,OFF","FALLedgenum":" ?,OFF","AREA":" ?,OFF","CYCLearea":" ?,OFF"},"CH2":{"MAX":"25.00mA,OFF","MIN":"-60.00mA,OFF","PKPK":"85.00mA,OFF","VTOP":" ?,OFF","VBASe":" ?,OFF","VAMP":" ?,OFF","AVERage":"-15.94mA,ON","SQUAresum":"23.18mA,OFF","CYCRms":" ?,OFF","CURSorrms":"22.91mA,OFF","OVERShoot":" ?,OFF","PREShoot":" ?,OFF","PERiod":" ?,OFF","FREQuency":" ?,OFF","RTime":" ?,OFF","FTime":" ?,OFF","PWIDth":" ?,OFF","NWIDth":" ?,OFF","PDUTy":" ?,OFF","NDUTy":" ?,OFF","SCREenduty":" ?,OFF","FRR":" ?,OFF","FRF":" ?,OFF","FFR":" ?,OFF","FFF":" ?,OFF","LRR":" ?,OFF","LRF":" ?,OFF","LFR":" ?,OFF","LFF":" ?,OFF","RDELay":" ?,OFF","FDELay":" ?,OFF","RPHAse":" ?,OFF","PPULsenum":" ?,OFF","NPULsenum":" ?,OFF","RISEedgenum":" ?,OFF","FALLedgenum":" ?,OFF","AREA":" ?,OFF","CYCLearea":" ?,OFF"}}
But for a manual command "MEASUrement:ALL?\n" does respond in a specific way.
It returns single TCP packet with 1450 bytes payload, which consists of binary data header and then JSON data in ASCII
Here is beginning and end of the packet. HEX bytes and then ASCII shifted for readability.
It would be perfect if you gave me correct definition name - #askValuesMathFormat, instead of looking very similar, but wrong #askModeMathFormat
I've spent extra 1 hour before spot it during troubleshooting.
Can you send the data to me in a ascii hex format, then I can dump it in a Arduino to test with.
With ascii hex format I mean something like this: "a6 05 00 00 7b 22 43 48 31 22 3a 7b 22 4d 41 58" but including all the 1450 bytes. Using multiple lines is fine.
a60500007b22434831223a7b224d4158223a2233352e30306d562c4f4646222c224d494e223a222d35302e30306d562c4f4646222c22504b504b223a2238352e30306d562c4f4646222c2256544f50223a22093f2c4f4646222c225642415365223a22093f2c4f4646222c2256414d50223a22093f2c4f4646222c2241564552616765223a222d362e3734306d562c4f4e222c2253515541726573756d223a2231382e30346d562c4f4646222c22435943526d73223a22093f2c4f4646222c22435552536f72726d73223a2231382e30336d562c4f4646222c224f56455253686f6f74223a22093f2c4f4646222c2250524553686f6f74223a22093f2c4f4646222c22504552696f64223a2220203f2c4f4646222c224652455175656e6379223a22093f2c4f4646222c225254696d65223a22093f2c4f4646222c224654696d65223a22093f2c4f4646222c22505749447468223a22093f2c4f4646222c224e5749447468223a22093f2c4f4646222c225044555479223a22093f2c4f4646222c224e44555479223a22093f2c4f4646222c2253435245656e64757479223a22093f2c4f4646222c22465252223a22093f2c4f4646222c22465246223a22093f2c4f4646222c22464652223a22093f2c4f4646222c22464646223a22093f2c4f4646222c224c5252223a22093f2c4f4646222c224c5246223a22093f2c4f4646222c224c4652223a22093f2c4f4646222c224c4646223a22093f2c4f4646222c225244454c6179223a22093f2c4f4646222c224644454c6179223a22093f2c4f4646222c22525048417365223a22093f2c4f4646222c225050554c73656e756d223a22093f2c4f4646222c224e50554c73656e756d223a22093f2c4f4646222c2252495345656467656e756d223a22093f2c4f4646222c2246414c4c656467656e756d223a22093f2c4f4646222c2241524541223a22093f2c4f4646222c224359434c6561726561223a22093f2c4f4646227d2c22434832223a7b224d4158223a2232352e30306d412c4f4646222c224d494e223a222d36302e30306d412c4f4646222c22504b504b223a2238352e30306d412c4f4646222c2256544f50223a222020203f2c4f4646222c225642415365223a222020203f2c4f4646222c2256414d50223a222020203f2c4f4646222c2241564552616765223a222d31352e39346d412c4f4e222c2253515541726573756d223a2232332e31386d412c4f4646222c22435943526d73223a222020203f2c4f4646222c22435552536f72726d73223a2232322e39316d412c4f4646222c224f56455253686f6f74223a22093f2c4f4646222c2250524553686f6f74223a22093f2c4f4646222c22504552696f64223a22093f2c4f4646222c224652455175656e6379223a22093f2c4f4646222c225254696d65223a22093f2c4f4646222c224654696d65223a22093f2c4f4646222c22505749447468223a22093f2c4f4646222c224e5749447468223a22093f2c4f4646222c225044555479223a22093f2c4f4646222c224e44555479223a22093f2c4f4646222c2253435245656e64757479223a22093f2c4f4646222c22465252223a22093f2c4f4646222c22465246223a22093f2c4f4646222c22464652223a22093f2c4f4646222c22464646223a22093f2c4f4646222c224c5252223a22093f2c4f4646222c224c5246223a22093f2c4f4646222c224c4652223a22093f2c4f4646222c224c4646223a22093f2c4f4646222c225244454c6179223a22093f2c4f4646222c224644454c6179223a22093f2c4f4646222c22525048417365223a22093f2c4f4646222c225050554c73656e756d223a22093f2c4f4646222c224e50554c73656e756d223a22093f2c4f4646222c2252495345656467656e756d223a22093f2c4f4646222c2246414c4c656467656e756d223a22093f2c4f4646222c2241524541223a22093f2c4f4646222c224359434c6561726561223a22093f2c4f4646227d7d
Is there a way to add some text to the readout popup? In front or behind the shown value.
Example use cases:
- Several voltmeters at ones and would like to see the value on the screen but never remember what value comes from what meter.
This idea is good if there is nothing else on the screen already. The 'always on top' feature is so handy. I also move these things to different places sometimes, that would impose changing the wallpaper too.
Is there a way to add some text to the readout popup? In front or behind the shown value.
If this is not yet possible I would like to suggest it as an improvement.
I know the grid popup allows to identify the device on screen, but it is not as esthetic as the readout.
I want to test this software, but also I have a raspberry pi 3 wondering around and I'm thinking on running the software there, and leave the Raspberry for that task exclusively. Do you think it will work or maybe the RPI desktop environment is too slow?
But I want to ask for the help with adding to Test Controller support for Tenma 72-7715 dual channel thermometer.
First I want to know if it is even possible to add support for this thermometer.
I can use soldering iron with both hands and even legs, but have no idea about how communication protocols and similar stuff works.
So if anyone can help with this I would be very grateful.
But I want to ask for the help with adding to Test Controller support for Tenma 72-7715 dual channel thermometer.
First I want to know if it is even possible to add support for this thermometer.
I can use soldering iron with both hands and even legs, but have no idea about how communication protocols and similar stuff works.
So if anyone can help with this I would be very grateful.
TestController can work with serial and network connections. If the Tenma uses a virtual serial port it is possible to include it (But many newer devices use USB HID and TC do not support that).
Somebody has been working on a temperature measuring devices before, you can try searching this thread for it.
TC has Mastech MS6514
Somebody has been working on a temperature measuring devices before, you can try searching this thread for it.
Somebody has been working on a temperature measuring devices before, you can try searching this thread for it.That was me. It was for Tasi device, different one. Likely it's not compatible with this Tenma.