comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Remote a CCD by a Matrox Frabe grabber
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Remote a CCD by a Matrox Frabe grabber [message #42690 is a reply to message #42630] Fri, 18 February 2005 00:51 Go to previous messageGo to previous message
fabrice.monti is currently offline  fabrice.monti
Messages: 4
Registered: February 2005
Junior Member
thanks to help me...
this is a part of my matlab code:

.....
mydcf= '6703c60.dcf'

loadlibrary('mil', 'mil.h');
M_default= '10000000';
M_default= 'hex2dec(M_default);

v= int32(1);
p_app= libpointer('int32ptr',v);
calllib('mil', 'MAppAlloc', M_default, p_app);

psys= libpointer('int32ptr',v);
calllib('mil', 'MsysAlloc', 'M_system_meteor_II',M_default,
M_default,psys);

.....

In this code i used a call to 'Mil.h'. I found this file on the net,
this file is write only for Matlab.. but I can't used it with IDL...
I have a library called 'Mil.dll' and i tried to 'translate' this part
to IDL:

...
mydcf= '6703c60.dcf'
path= 'c:\test\mil.dll'
res =call_external('mil', path)

m_default='10000000'x

v= float(1)
p_app= ptr_new(v)
return, call_external('mil', 'MAppAlloc', M_default, p_app)

psys= ptr_new(v)
return, call_external('mil', 'MsysAlloc',
'M_system_meteor_II',M_default, M_default,psys)
...

but it doesn't work...

the first error it's in the first call_external... The dll isn't
open...

if you have a idea....
thank
Rick Towler <rick.towler@nomail.noaa.gov> wrote in message news:<cv319h$v9a$1@news.nems.noaa.gov>...
> Fabrice Monti wrote:
>
>> I use IDL for a lot a applications, but now I have a Big problem.
>> I would like to capture an image from a CCD. I use a frame grabber
>> (matrox meteor2).
>>
>> For the moment, i use Matlab with a external call to the "Mil". It's a
>> library which remote the frame grabber. Whit matlab, i can see, save
>> and modify my image.
>> But i wrote a IDL to calculate a lot of think on this image.
>> I must save the image in a file with Matlab and read it with IDL...
>> Grrrr...
>>
>> Do you think is it possible to replace to call external of Matlab by
>> the same function in IDL... i tried to use "call_external" and
>> "socket" function whitout succes....
>> is it possible to call a external library like "Mil" whit IDL, and
>> how?
>
> It probably is possible with CALL_EXTERNAL. I doubt SOCKET would work
> unless your frame grabber is attached to the network and it serves up
> data via TCP/IP. You'd have to check your frame grabber docs.
>
> Why don't you post what you have tried with CALL_EXTERNAL. You should
> be able to glean relevant information from your MATLAB
> loadlibray/calllib functions to get you started in IDL.
>
> -Rick
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: calculating # of pixels of 3 colors in RGB image using a histogram
Next Topic: Re: Coal underwater would turn into a diamond

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 01:05:38 PDT 2025

Total time taken to generate the page: 0.48360 seconds