meindert.norg Posted March 1, 2011 Share Posted March 1, 2011 LS, I was able to read Gathered data into Matlab using the ActiveX COM interface (supplied through the "Pcomm Server Pro 2 Library", as suggested by Charles in http://forums.deltatau.com/showthread.php?tid=354). The simplest code showing how to get data into Matlab is: hPcommServer = actxserver('PcommServer.PMacDevice'); hPmacDevice = hPcommServer.invoke('IPmacDevice'); results1 = hPmacDevice.Open(0); DataString = hPmacDevice.GetResponseEx(0,'list gather',1); The attached Matlab code includes error checking and data conversion that is required to generate the original values. regards, Meindert NorgDT_GatherData_v2_1.zip Link to comment Share on other sites More sharing options...
Recommended Posts