Re: [micro-manager-general] LoadSLMSequence() and the Matlab API
Status: Beta
Brought to you by:
nicost
|
From: JB L. <jb....@gm...> - 2020-03-10 15:49:02
|
Alright I finally got this to work with the help of the Mightex support team.
The following works for me in Matlab, and similar code also works in
beanshell:
javamov = java.util.ArrayList;
for f = 1:100
frame = mov(:,:,f);
javamov.add(frame(:));
end
mmc.setProperty(mmc.getSLMDevice,"TriggerType",0)
mmc.loadSLMSequence(mmc.getSLMDevice,javamov)
mmc.startSLMSequence(mmc.getSLMDevice)
for f = 1:100
mmc.setProperty(mmc.getSLMDevice,"CommandTrigger",f)
pause(.1)
end
mmc.stopSLMSequence(mmc.getSLMDevice)
for some reason the displaySLMimage function never worked, but this
commandtrigger property does the trick. It actually doesnt matter if you
send the f value in the second loop or just 1 or whatever else all the time,
it always pops the next image in the sequence, when my understanding of how
commandtrigger should work is that sending a certain value (here f) should
display the frame that is in that position in the sequence (the f-th frame
of javamov in our example). But this works for my purposes.
--
Sent from: http://micro-manager.3463995.n2.nabble.com/
|