#value name unit format {selector}// The selector what is?
#value Voltage V F3
Voltage(name): Variable where the read value from the DVM1 will be stored?
V(unit): Volt units
F3(format): float number with 3 decimal points?
{selector}: what is/defines the selector?
the commands will be:
#value Voltage V F3 {selector???}
DVM1:RESUIt?=voltage or the below line is corrrect?
#askValues DVM1:RESUIt?: #askValues SCPI commands if I place here the SCPI command DVM1:RESUIt? how will be stored in voltage variable?
Because I use me logic in C language where I am familiar I believe I totally mess it up.
Could you correct me please?
A definition is not programming or script (TC can do that, but it is not needed here), it is a definition.
#askValues defines what SCPI commands TC must use to read actual values from the devices.
#value defines how to show a value in TC
Neither of these stores anything.
I.e.this will probably work:
#value Voltage V F3
#askValues DVM1:RESUIt?
When you select the "Current values" page, TC will issues the commands after #askValues repeatedly to update the tab with the actual value and also store the value for some statistic.
When you press "Log" on the "Commands" page, TC will will issues the commands after #askValues at the defined log interval and create a table with them (See Table tab) and when it has a table it can create a chart.
You first need to use the selector if same SCPI command can return different types values (Which it probably can on your scope), this makes the definition more complicated, because you need a #value for each type and a #askMode to read the actual type of value returned. You also need to define commands to select types of measurements (It is called modes in TC).
You can check other scope definition and DMM definition for examples on this.