02-05-2009 11:40 PM
Hi,
I am trying to utilize the DIAdem - Matlab Active X interface to open files for analysis in Matlab. In order to do that, I need to pass a string from DIAdem to Matlab. This does not work with the PutChannel function, since that only seems to work with doubles. I noticed that ScriptLibrary.ocx contains many functions that are not described anywhere, such as 'PutCharArray'. Any chance that we could have this list posted with the other info on this page:
http://digital.ni.com/public.nsf/allkb/1706BA4C65A8533686256C630062DD03
?
 
02-06-2009 03:30 PM
Hi Matt,
This ScriptLibrary.ocx is not longer a supported approach for interfacing with MatLab. The preferred method now is to directly use the functions exposed by MatLab's ActiveX server, along with the "ChnToVariant()" and "VariantToChn()" commands in DIAdem. You can get an idea of this approach by reviewing the following example that ships with DIAdem:
"Communicating with MATLAB"
Unfortunately, this example does not show how to pass string values back and forth (though it would likely work to pass a string channel). Whether this is possible will depend on the functions MatLab makes available in its ActiveX server to send or receive string scalars or vectors.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
02-06-2009 03:47 PM
I see that makes sense. I am using DIAdem on a site license, so I do not have access to any manuals that may have been packaged with the box. Would you direct me to a website or other place where I can find the ActiveX commands and syntax descriptions?
Thanks,
Matt
02-09-2009 09:36 PM
Hi Matt,
You're not missing much not having the manual. Th real trove of infomation is in the Online Help, though it can be a real treasure hu at times finding what you want. Search for "OLE Interface" in the "Index" section of the Help, there is a full description of both the ToCommand and ToDataSheet ActiveX servers that DIAdem provides.
Brad Turpin
DIAdem Product Support Eengineer
National Instruments