wpurrer

Matlab and SDK

Discussion created by wpurrer on Dec 2, 2010
Latest reply on Apr 11, 2011 by Ahmad Fattahi

I tried to use the pisdk .net component with matlab (2010b) ... but i always get the following error messages:

 

Has anyone had more success (the Version with pioledb i find a little bit slow.. for my purpose)

 

%http://www.mathworks.com/help/techdoc/ref/net.addassembly.html
clc
import System.*


%asmInfo_sdk = NET.addAssembly('C:\Program Files (x86)\PIPC\PISDK\Osisoft.PISDK.dll');
%
%??? Error using ==> matlabpitest at 6
%Message: Could not load file or assembly 'file:///C:\Program Files (x86)\PIPC\PISDK\Osisoft.PISDK.dll' or one of its dependencies.
%An attempt was made to load a program with an incorrect format.
%Source: mscorlib
%HelpLink:


%asmInfo_sdk = NET.addAssembly('C:\Program Files\PIPC\PISDK\OSIsoft.PISDK.dll');
%??? Error using ==> matlabpitest at 15
%Message: Could not load file or assembly 'file:///C:\Program Files\PIPC\PISDK\OSIsoft.PISDK.dll' or one of its dependencies. The
%system cannot find the file specified.
%Source: mscorlib
%HelpLink:

Outcomes