V1.42 is up
This adds popups to the scripting language and a small improvement to the import function.
V1.42
Added: Support for popups in scripts
Changed: Image viewer now has a independent window
Added: More import matchers, this makes it possible to import data sets where reference columns is not a nice slope.
Changed: Import popup, clicking on column name will change include checkmark
Changed: Import popup, Import button first active when a valid import selection is present
Fixed: Displays NaN (Not a Number) as ? in all standard formatters.
The popups makes it possible to display stuff like:
![](http://lygte-info.dk/pic/Projects/TestController/ExampleTestingBatteryUSB/popup2.png)
From scripting.
Here is a article with the script for making the above menus and also for making the green charge curve I have posted earlier:
http://lygte-info.dk/project/TestControllerTestingBatteryUSB%20UK.htmlThe popup functions are in two groups, this first group is for building input forms (Like the examples above):
#POPUPINIT "popup_title"
#POPUPLABEL "prompt" varName "tip"
#POPUPTEXT "prompt" varName {characters {"tip"}}
#POPUPNUMBER "prompt" varName {min max {"tip"}}
#POPUPNUMBERLIST "prompt" varName {min max {"tip"}}
#POPUPNUMBERINT "prompt" varName {min max {"tip"}}
#POPUPNUMBERINTLIST "prompt" varName {min max {"tip"}}
#POPUPCOMBO "prompt" varName {list of values} {"tip"}
#POPUPRADIO "prompt" varName {list of values} {"tip"}
#POPUPCOLUMNS CHANNEL "prompt" varName {systemColumns{ filter {"tip"}}
#POPUPDEVICE "prompt" varName {deviceFilter {functionFilter {all} tip}}}
#POPUPVALUE "prompt" varName{ includeMath{ filter{ tip}}}
#POPUPCHECKBOX "prompt" varName {"tip"}
#POPUPFILENAME "prompt" varName {"tip"}
#POPUPFILE "prompt" varName{ path{ extension{ load {"tip"}}}}
#POPUPIMAGE "prompt" varName images {tip}
#POPUPBUTTON "button text" varName {"tip"}
#POPUPBUTTONS "ok button text" varName "cancel button text" {"tip"}
#POPUPSHOW {x y}
The second group are for messages and questions that can be answered with a button press:
#POPUPSHOWINFO "info message"{ icon}
#POPUPSHOWINFOASYNC "info message"{ icon{ timeout}
#POPUPSHOWQUESTION "prompt" varName{ button1Text{ button2Text{ button3Text}}}
I have also added another base for popups that makes them a separate window, for now I only uses this for image viewer, but I have some other addition in development, that will use it.