We have a system where we need to integrate Labview and Matlab 6.5. Easy... well not quite.
Matlab 6.5 has been installed 'CLEAN' (ie no previous installations). We attempt to use either the 'script' or 'activeX' modules - and can correctly see matlab. Indeed it can be started. However before we can use 'invoke' 'methods' etc we get an error stating 'access is denied'.
This problem exists in ANY version (inc 7 express) of Labview - with or without any of the updated DLL's (from NI and Mathworks).
However if we have a previous installation of matlab (e.g. 6.1) and upgrade, it works.
Fine - so we upgrade... but we dont own a licence for the earlier versions - and dont want to have a 'cluttered' registry on our nice new machine. Besides, calling '
Clean Matlab 6.5' from anything else (VB, VC++, etc) works without any problems!
We raised the question with NI support two weeks ago - but it appears they dont have a 'clean' installation setup, and just say 'upgrade DLL's.
As a COM programmer, my gut feeling is that within the 'automation open' object, a IUNKNOWN pointer is requested (which causes matlab to open) but when asking for an IDISPATCH pointer, there is some problem resulting in the access error.
This bug has resulted in an extended project delay and is really annoying. Has anyone else come across this?
My solution is to basically write a CIN module to do the same - but this would only be temporary.
Thanks for any help!
Marc