can't initialize Sutter shutters from java

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

can't initialize Sutter shutters from java

Shashank Sundareshan

Hi,

 

I’m a newbie coder trying to write a java program to run my Hamamatsu camera, Sutter shutters and flywheels, and Prior XYStage.

Using Windows Vista, eclipse IDE, and uManager 1.3.4 with nightly build update 20100224

So far I have been able to load the camera and shutters, but when I try to initialize them, it produces an error:

LOG(2010-04-20T11:06:27.719494, 1072, 005D6960:): Starting initialization sequence for 3 devices...
LOG(2010-04-20T11:06:27.720494, 1072, 005D6960:): Error occured. Device ShutterA. Shutter-A. Error code 17 (11 hex).
, file .\MMCore.cpp, line 758

 

However, when I initialize the camera by itself, it works fine.

 

Also, do I need to initialize them before I can get/set properties like State?

Before initializing:

StrVector properties = core.getDevicePropertyNames("ShutterB");
                for (int i=0; i<properties.size(); i++) {
                    String prop = properties.get(i);
                    String val = core.getProperty("ShutterB", prop);
                    System.out.println("Name: " + prop + ", value: " + val);


Gives me (no “State” property):
Name: Description, value: Sutter Lambda shutter adapter
Name: Name, value: Shutter-B
Name: Port, value: P1

 

Thanks!

 

Shashank

[hidden email]


------------------------------------------------------------------------------

_______________________________________________
micro-manager-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/micro-manager-general
Reply | Threaded
Open this post in threaded view
|

Re: can't initialize Sutter shutters from java

Arthur D. Edelstein
Hi Shashank,

> So far I have been able to load the camera and shutters, but when I try to
> initialize them, it produces an error:

Are you writing a separate Java program? Can you send your code? You
might want to consider writing a Beanshell script first (under the
Tools...Script Panel). That way you won't have to take care of
initialization code yourself.

> LOG(2010-04-20T11:06:27.719494, 1072, 005D6960:): Starting initialization
> sequence for 3 devices...
> LOG(2010-04-20T11:06:27.720494, 1072, 005D6960:): Error occured. Device
> ShutterA. Shutter-A. Error code 17 (11 hex).
> , file .\MMCore.cpp, line 758

> Also, do I need to initialize them before I can get/set properties like
> State?

Yes. Only a few pre-initialization properties should be set before
initialization.

Best regards,
Arthur

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