I am not having much luck with this stuff. Here are the things I have tried:
1) The folder in the Solis directory 'MatlabSIFReader' that came with my version of Solis (uses SDK version 2.92.32003.0)
2) The one pointed to by Phil from Andor above (SDK version 2.90.20000.2 - no idea why the version on the Andor site does not match the latest)
3) The really useful script put together here
4) The alteration to the script made by Uli Kleßinger above for the SCMOS, which is the camera I have.
5) The "Export As..." command to convert the .SIF file to an .AVI, which I could easily import into Matlab. When I try this, the Solis software crashes every time(!!).
This Andor camera is a nice piece of hardware, but the software is simply atrocious.
14 Jul 2011
TextInject
A mex file to send text to any other application.
Author: Phillip
Sure. The device I communicate with is a camera. Here is an example of the code I use to change the gain of the camera:
The : indicates the beginning of the signal and the \r indicates the end. I understand these are pretty common symbols with this type of device communication, so might apply to your device too.
The rest is device-specific for this (Pulnix) camera, indicating that we want to change Gain, set it Manually, and to a value of 255 (FF in hex format).
Hope this helps.
04 Apr 2011
TextInject
A mex file to send text to any other application.
Author: Phillip
Hi Jan,
That's a neat trick to rename the Matlab window, thanks!
Neither \n nor \r work unfortunately. However I know that the Matlab command line *can* recognize a newline because when you copy-paste code you can pick up the invisible newline and it will execute straight away when you paste it to the command line. But this internal Matlab character must not match the ANSI C standard (maybe to protect against malicious scripting attacks?).
The : indicates the beginning of the signal and the \r indicates the end. I understand these are pretty common symbols with this type of device communication, so might apply to your device too.
The rest is device-specific for this (Pulnix) camera, indicating that we want to change Gain, set it Manually, and to a value of 255 (FF in hex format).
Hope this helps.
10 Jul 2011
TextInject
A mex file to send text to any other application.
Author: Phillip
Great Program
I also have a device that I can only communicate with by establising a telenet connection within a windows command window or HyperTerminal. Could you give some hints about how you make your interactive script.
04 Apr 2011
TextInject
A mex file to send text to any other application.
Author: Phillip
That's a neat trick to rename the Matlab window, thanks!
Neither \n nor \r work unfortunately. However I know that the Matlab command line *can* recognize a newline because when you copy-paste code you can pick up the invisible newline and it will execute straight away when you paste it to the command line. But this internal Matlab character must not match the ANSI C standard (maybe to protect against malicious scripting attacks?).
04 Apr 2011
TextInject
A mex file to send text to any other application.
Author: Phillip
You can set the name of the Matlab window: m = com.mathworks.mde.desk.MLDesktop.getInstance.getMainFrame;
m.setTitle('Matlab instance 1');
Does CHAR(10) (\n) work instead of CHAR(13) (\r)?
27 Mar 2011
TextInject
A mex file to send text to any other application.
Author: Phillip
Rahman, I'm not sure I know how to do what you ask. When I open a new Matlab window it has the same name as the other one. Perhaps if you use two different versions of Matlab!
Even then, this function only inserts the text into the command line, it does not seem to execute it even if you put a carriage return character (\r) in.
A point of note if you want to find the Matlab window at all with this function - there are TWO spaces after "MATLAB" in the window name... eg my window name is:
"MATLAB 7.8.0 (R2009a)"
Sure. The device I communicate with is a camera. Here is an example of the code I use to change the gain of the camera:
textInject('Pulnix - HyperTerminal',100,100,sprintf(':GMFF\r'))
The : indicates the beginning of the signal and the \r indicates the end. I understand these are pretty common symbols with this type of device communication, so might apply to your device too.
The rest is device-specific for this (Pulnix) camera, indicating that we want to change Gain, set it Manually, and to a value of 255 (FF in hex format).
Hope this helps.
Comment only
10 Jul 2011
TextInject
A mex file to send text to any other application.
Great Program
I also have a device that I can only communicate with by establising a telenet connection within a windows command window or HyperTerminal. Could you give some hints about how you make your interactive script.
Comment only
04 Apr 2011
TextInject
A mex file to send text to any other application.
Hi Jan,
That's a neat trick to rename the Matlab window, thanks!
Neither \n nor \r work unfortunately. However I know that the Matlab command line *can* recognize a newline because when you copy-paste code you can pick up the invisible newline and it will execute straight away when you paste it to the command line. But this internal Matlab character must not match the ANSI C standard (maybe to protect against malicious scripting attacks?).
Comment only
04 Apr 2011
TextInject
A mex file to send text to any other application.
You can set the name of the Matlab window: m = com.mathworks.mde.desk.MLDesktop.getInstance.getMainFrame;
m.setTitle('Matlab instance 1');
Does CHAR(10) (\n) work instead of CHAR(13) (\r)?
Comment only
27 Mar 2011
TextInject
A mex file to send text to any other application.
Rahman, I'm not sure I know how to do what you ask. When I open a new Matlab window it has the same name as the other one. Perhaps if you use two different versions of Matlab!
Even then, this function only inserts the text into the command line, it does not seem to execute it even if you put a carriage return character (\r) in.
A point of note if you want to find the Matlab window at all with this function - there are TWO spaces after "MATLAB" in the window name... eg my window name is:
"MATLAB 7.8.0 (R2009a)"
Comment only