Ok, I am waiting for you to investigate this more. Thanks a lot for your effort.
I am trying to make it by Excel using Visual Basic and I started by this code :
Sub mmult_test()
Dim a As McbPcm
Dim b As McbPcm
Dim mult As McbMult
Set mult = New McbMult
Set a = mult.GetAppObject("A")
Set b = mult.GetAppObject("B")
Dim bSucc As Boolean
'ReadVariable uses FreeMASTER variable object from current project. Use
'ReadUIntVariable to access the memory directly using a symbol name.
Set bSucc = a.ReadVariable("SPEED_CMD", vValue, tValue, bsRetMsg)
If bSucc Then
sht.Range("B1").Value = vValue
End If
If b.ReadVariable("TrqCtrlSwitch", "B3") Then
MsgBox ("Variable from instance B " + t2)
Else
MsgBox ("Error reading from instance B: " + m2)
End If
End Sub
That I saw in the question here:https://community.nxp.com/t5/FreeMASTER/Multiple-instances-using-ActiveX-in-VB/td-p/1340033
but I got a compiler error at this line: Set bSucc = a.ReadVariable("SPEED_CMD", vValue, tValue, bsRetMsg) the error says: "Object Required" and when I removed "Set" it gives me : "Object variable or with block variable not set" I think it can't see the object returned by GetAppObject also. If you have tested it before to control two FreeMaster instances using Excell please help me in this.
Regards,
Ahmed