AgilentLaser Combiner Property setting error

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

AgilentLaser Combiner Property setting error

Amit Cherian
Hi,

Device: AgilentLaserCombiner

Trying to set up an acquisition over varying laser power.
while doing so, I'm getting the following error.

bsh %  mmc.setProperty("LC-Shutter", "405nm mW", "9.9998");
// Error: // Uncaught Exception: Method Invocation mmc.setProperty : at
Line: 1 : in file: <unknown file> : mmc .setProperty ( "LC-Shutter" , "405nm
mW" , "9.9998" )

Target exception: java.lang.Exception: Cannot set property "405nm mW" to
"9.9998" [ Error in device "LC-Shutter": Invalid property name encountered:
405nm mW (2) ]

bsh % java.lang.Exception: Cannot set property "405nm mW" to "9.9998" [
Error in device "LC-Shutter": Invalid property name encountered: 405nm mW
(2) ]


The device and property are as listed in the device property browser. Not
sure what I'm missing.

*Full code is as follows*:

import ij.*;
import ij.process.*;
import ij.gui.*;
import java.awt.*;
import ij.plugin.*;
import ij.plugin.frame.*;
import ij.io.FileSaver;
import org.micromanager.utils.ImageUtils;
import ij.process.ImageProcessor;
import ij.ImagePlus;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import ij.io.DirectoryChooser;
gui.refreshGUI();
gui.refreshGUIFromCache();
gui.closeAllAcquisitions();
gui.clearMessageWindow();


DirectoryChooser dr = new DirectoryChooser("Choose the directory");
dr.setDefaultDirectory("D:\temp");
acqDir = dr.getDirectory();

print("image:"+ acqDir); //print acquisition directory

float LPList[] = new float{10.0000, 15.0000, 20.0000} ;
nF = LPList.length; // # of frames
nCh = 1; // # of cameras
nZ = nPos = 0; // # of Z and xy positions
z = pos = 0;

for( f = 0; f < nF; f++ ) // loop for varying Gain
{ deviceName = "LC-Shutter"; // camera name
                propertyName = "405nm mW"; // property to be changed
                newValue = String.valueOf(GainList[g]); // load list of gain
                mmc.setProperty(deviceName, propertyName, newValue);// Set
the above mentioned properties

                           
                acqName = gui.getUniqueAcquisitionName("Var"+ propertyName
); //set folder name

                gui.openAcquisition(acqName, acqDir, nF, nCh, nZ, true,
true);
                       
                         //set exposure from exposure list
      gui.refreshGUI();
                                mmc.snapImage();
                                for (int ch = 0; ch < nCh; ch++) // loop for
multicam image
                                {
    im = mmc.getTaggedImage(ch);
    gui.addImageToAcquisition(acqName, nF, ch, z, pos, im);
                                }
                        }
}


<http://micro-manager.3463995.n2.nabble.com/file/t396861/2018-04-20_20_57_27-Device_Property_Browser.png>








--
Sent from: http://micro-manager.3463995.n2.nabble.com/

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
micro-manager-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/micro-manager-general