Light Engine (Lumencor Spectra) Control In Plugin

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Light Engine (Lumencor Spectra) Control In Plugin

Jack 1024

Hi,

 

I’ve been trying to write a plugin to control the Lumencor Spectra, including different channels as represented by the colour names. It will also control filter wheels that bit I’ve got to work fine.

 

The Lumencor is proving to be more difficult I can connect to the device using the code below:

 

            core.unloadAllDevices();

        

            core.loadDevice("Serial Port 3", "SerialManager", "COM3");

           core.setProperty("Serial Port 3", "StopBits", "1");

            core.setProperty("Serial Port 3", "AnswerTimeout", "500");

            core.setProperty("Serial Port 3", "BaudRate", "9600");

            core.setProperty("Serial Port 3", "DataBits", "8");

            core.setProperty("Serial Port 3", "DelayBetweenCharsMs", "0.0000");

            core.setProperty("Serial Port 3", "Handshaking", "Off");

            core.setProperty("Serial Port 3", "Parity", "None");

            core.setProperty("Serial Port 3", "StopBits", "1");

            core.setProperty("Serial Port 3", "Verbose", "1");

 

            core.loadDevice("Spectra", "LumencorSpectra", "Spectra");

            core.setProperty("Spectra", "Port", "Serial Port 3");

            core.setProperty("Spectra", "SetLE_Type", "Spectra");

 

            core.initializeAllDevices();

 

This all seems to function fine and returns no errors (the serial parameters are copied straight from the config file).

 

Then to set the individual channels I’ve tried to use this:

 

                core.setProperty(“Spectra”, “Violet”, “1”);

 

This appears to work giving no errors however, if I then select live no light is provided as if the channel isn’t selected. The property is definitely set as I can confirm it with the core.getProperty(“Spectra”, “Violet”) command.  I wonder if maybe this device has to be addressed in a different way to a standard filter wheel as it’s regarded as a shutter device? Any help as to why this doesn’t seem to actually set the channel on the Lumencor would be appreciated.

 

Thanks,

 

Jack

 

 

 



_______________________________________________
micro-manager-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/micro-manager-general