Jump to content
OMRON Forums

Reading Gathered data into Matlab using ActiveX COM interface


meindert.norg
 Share

Recommended Posts

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 Norg

DT_GatherData_v2_1.zip

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...