The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Active X Call from matlab with pointers
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Tom Sweetland

Posts: 4
Registered: 2/4/09
Active X Call from matlab with pointers
Posted: Feb 4, 2009 11:10 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I am trying to setup an activex server that emulates the C code below in matlab

Set SmApi = CreateObject("System Monitor API")
Dim szIdent As String
szIdent = "BiosAC "
Dim dValue As Double
Dim lErr As Long
lErr = SmApi.GetValueScalar(0, szIdent, dValue)

-where dValue is ultimately the value of interest I am getting from the activexserver.

Here is my non working Equivalent Matlab Code:

h=actxserver('System Monitor API');

I get the following prototype:
??? Error: Type mismatch, argument 3

I am having difficulty about what to do with the third argument. If I leave it off, I get an error about insufficient arguments, if I put anything else there I get the type mismatch problem.

I thought the solution was to specify the third argument as a libpointer, but I can't seem to get this to work either.

Any help would be greatly appreciated.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.