From: Michael Purdy on
Hello,
I am currently trying to use a piece of hardware through MatLab. The hardware came with it's own software including the NTPORT DLL. I am wondering if there is any way that I can control the device through MatLab rather than opening the software seperately. I thought that if I could do this, it might be important to be able to access the DLL through MatLab. However, I don't have a header file for this library, and I'm wondering if anyone knows how I could access it to be used by the hardware.
Thanks ahead of time.

Michael
From: James Tursa on
"Michael Purdy" <misterman90(a)hotmail.com> wrote in message <hvggnh$rad$1(a)fred.mathworks.com>...
> Hello,
> I am currently trying to use a piece of hardware through MatLab. The hardware came with it's own software including the NTPORT DLL. I am wondering if there is any way that I can control the device through MatLab rather than opening the software seperately. I thought that if I could do this, it might be important to be able to access the DLL through MatLab. However, I don't have a header file for this library, and I'm wondering if anyone knows how I could access it to be used by the hardware.
> Thanks ahead of time.
>
> Michael

You need either a header file or some detailed description of the function interfaces so you can build your own header file.

James Tursa
From: Michael Purdy on
"You need either a header file or some detailed description of the function interfaces so you can build your own header file."


Do you think that this will allow me to run the hardware program through MatLab, or will it simply allow me to access the NTPORT dll?

Michael
From: James Tursa on
"Michael Purdy" <misterman90(a)hotmail.com> wrote in message <hvgkos$ebi$1(a)fred.mathworks.com>...
> "You need either a header file or some detailed description of the function interfaces so you can build your own header file."
>
>
> Do you think that this will allow me to run the hardware program through MatLab, or will it simply allow me to access the NTPORT dll?
>
> Michael

If the DLL controls the h/w via function calls you make to the DLL, I don't see any reason why you can't make those calls from MATLAB.

James Tursa
From: Michael Purdy on
Great. Thanks James. Is there some way I can download the header file for a dll that was included in the CD with the hardware or should I try contacting the manufacturers?

Thanks again for your help.