Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
![]() | Version 1.9 Build 1367 |
|
There are several useful shortcuts and hints that can be taken advantage of when using the DCR tool. For example, the pg tool listed in the previous example is the plotter tool, which is open and available while using the dcr tool, and is accessed by the name pg. So one can pass commands to the tool at any time. For example, clear the plotter with:
- pg.clear()
Once a scan is selected, either via the GUI or by the command line, the data and functions both are available from the tool name. Data from the most recently accessed scan is available under a subrecord called currentscan, e.g.:
- md := dcr('pnt_lowgreg_23_DCR') - scan21 := md.getscan(21,T) - pg.ploty(md.currentscan.data[1,1,])
In this example of CLI use, md.currentscan has the same structure and values as the record returned by the getscan function, scan21. However, when a scan is selected in the GUI, the md.currentscan values are updated again to reflect the selection. In this way, scans can be selected from the GUI and their data subsequently manipulated in the CLI.
Also available is a pointer the the measurement set table, as a subrecord called maintable. So for example, one might browse the MS as follows:
- md := dcr('pnt_lowgreg_23_DCR') - md.maintable.browse()