Hi all,
I am trying to make some matlab code which will allow me to stream directly into my workspace however I am having a few issues with establishing a connection with the device.
When I call the enumeration to find the serials of the devices attached I see that the PT104 responds with USB:AT313/069 so I try to run the connect function with 'AT313/069' and tried with prefixing the 'USB:' but it always returns no device.
Here is a copy of the offending code.
Not sure of the matlab syntax, but you need to pass the serial number without the USB: prefix, so in your case, you would just pass a null terminated AT313/069 string.
Hi
I am very primitive programmer. Could you please help to get interfacing of Pt-104 Pico Tech under matlab environment ?
Some examples to access this device via Matlab would be great. In the past I have done some interfacing with SCPI via matlab. I hope it saves time for many.
Select PicoLog Data Loggers -> Pt-104 -> Software then select the option for the USB PT-104 Software Development Kit.
If you are using a 32-bit version of MATLAB (use the computer function to detect the version) then use the following files from the SDK:
usbpt104.dll
/MATLAB/usbpt104/usbPT104MFILE.m
If you are using a 64-bit version of MATLAB you will need the following files:
/x64/usbpt104.dll
/MATLAB/usbpt104/x64/usbPT104MFILE.m
You will also need to configure a C compiler in MATLAB using the mex -setup command. If you are using a 64-bit version of MATLAB please refer to the following article:
Please note the section about the Visual Studio 2010 Redistributable as if it is already installed it will need to be uninstalled and reinstalled after Windows SDK 7.1 and it's patch has been applied.
You will need to refer to the Programmer's Guide in the SDK and can use the above snippet of code as a starting point.