I am having problems with this line:
>> loadlibrary('PS5000.dll','PS5000MFile')
I have downloaded the latest PS5000.dll by Martyn » Thu Jan 31, 2013.
It gives this message:
Error using loadlibrary (line 419)
There was an error loading the library
"C:\Users\Ion\Documents\MATLAB\mqair\PS5000.dll"
C:\Users\Ion\Documents\MATLAB\mqair\PS5000.dll is not a valid Win32
application.
This has been working before. It could be because I have changed from windows 7 to windows 8. Do you have an idea?
Thanks for the help I think, I am almost through, but I still get the same error message same line. I can see that the file size of the dll has changed since last time I downloaded them some years ago.
What is the mfilename good for? In the command prompt it is empty.
The prototype files extract information from the header allowing you to access enumerations and structures defined in the header as well as the functions:
Thanks for your answer. I have yet to read the link, but regarding the question; Yes, it is 64bit, on Win64 .
R2012b (8.0.0.783)
64 bit (win64)
I have one more nagging question: I plan to change from my good old PicoScope 5203, to 5244B. Will that affect the matlab program? If so, maybe it would be smart to buy the new picoscope first, and then get the matlab connection to work?
The new PicoScope 5000 series uses a new driver so it would involve a change in the driver and the API, notably the ability to set and change the resolution of the scope.
If you have access to the Instrument Control Toolbox, you can download a Beta version of the driver from the Mathworks File Exchange:
Th advantage of using the Instrument Driver is that it initialises various parameters including channels and block/streaming capture parameters and some of the paratmeters for function calls have been modified.
The streaming aspect requires an update to the underlying wrapper dll and some additional functions but should be available soon.
I've tested it on Windows 7 32-bit and Windows 8 64-bit using MATLAB 2012b.