Hey Nico,

  Thanks for the tip. The mmc.setProperty did the trick. mmc.setState didn't seem to work when I tried
mmc.setState("LPT1","15");  where my parallel port was named "LPT1". But since the first way worked, I'm happy. Sorry, for the slow reply. I was away from my microscope over the holidays and wanted to get this a whirl before responding.

Cheers,
Damon



Nico Stuurman wrote:
Hi Damon,

  
   One last question hopefully for a while. I am using the scripting
window from the micromanager gui to set-up my acquisition. At the  
start
of the acquisition, I would send a TTL pulse from the parallel port to
trigger another computer to start an electrical stimulation  
protocol. I
saw the wiki page for the Parallel port Inpout.dll, so I assume that
this is possible. What I need is the code that will allow me to change
the parellel port state (i.e. from 00000000 to 01000000) from the
scripting window.
    

mmc.setProperty("PPort", "State", "0");
mmc.setProperty("PPort", "State", "64");

Where "PPort" should be changed to the name you assigned to the  
Parallel Port in your configuration file.

You can also use:
mmc.setState("PPort", "64");

Also see the api (http://micro-manager.org/content/doc/mmcore_api/html/class_c_m_m_core.html 
).


Best,

Nico


  
Thanks,
Damon

------------------------------------------------------------------------------
_______________________________________________
micro-manager-general mailing list
micro-manager-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/micro-manager-general
    


------------------------------------------------------------------------------
_______________________________________________
micro-manager-general mailing list
micro-manager-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/micro-manager-general