I have a custom device driver for the KTA-290 stepper controller with a few selectable device modes, depending on the purpose the stepper motor is performing. The device mode mainly overwrites GUI parameters with hardcoded values to configure the device in a simple fashion. It does this overwriting in the initialize() phase. This all works fine.
When I load a setting with this driver, sweepme debug-prints:
Missing required drivers for this setting: Time-delay, Sample Height
But these are merely 2 out of the 3 selectable device modes, the other being ‘GUI’.
Why are these being called ‘drivers’ and is this error message important?
This is in 1.5.6.30.
The debug message you receive is printed when a driver cannot be loaded during the loading of a setting. It seems that “Time-delay” and “Sample Height” are detected as missing driver instances. Do I understand you correctly that these are 2 GUI parameters of the KTA-290 instead? As far as I can see from the original Switch-OceanControls_KTx-290 driver, there are no GUI parameters named “Time delay” or “Sample Height”. Did you make any changes to the set and get GUI parameter functions?
Do you receive the warning window that is usually displayed if a required driver is missing to load a setting? Or is there additional output in the debug widget (F2) that denotes why the driver fails to load?
We have updated SweepMe! to a new major version 1.5.7. Can you try updating your version and rerunning your setting?
If you can provide a minimum working example of your setting.set file I can have a look into it.
Best,
Franz
Hi Franz,
Yes I’ve changed the driver extensively, and have a ‘Device Mode’ GUI parameter. Whichever ‘device mode’ is selected in the setting will be displayed in the debug, not in a pop-up window, as being a missing driver. So the behavior is not what is typically seen for a truly missing device driver.
I had trouble updating to 1.5.7, it seemed like the licensing for our add-on modules was not easy to understand and I gave up. It seemed as if maybe we did not have the ability to use 1.5.7 with our add-on license.
The license you have purchased is also valid for SweepMe! 1.5.7 Add-on modules. And actually it should just continue to work with the new version (which requires to update to the latest module versions in the Version Manager, though).
Could you open the Version Manager and check if your license is shown under the menu “License” → “Overview”, perhaps after a click on “Refresh”?
Regarding the Missing required drivers for this setting message: This is likely because the internal check for used drivers is not specific enough and doesn’t indicate a real issue. (Background: In the setting, drivers are saved under the “Device” key, and the check mistakenly interprets “Device mode” also as a driver)