ActiveX: Get controller details

ActiveX: Get controller details

This sample of code is from a Visual Basic Program.  It reads system variables from the Motion Coordinator after the TrioPC Motion ActiveX/DLL connection is opened.

        Dim d_value As Double
        Dim l_value As Long

        Terminal.AppendText("TrioPC Vers: " & AxTrioPC1.ProductVersion() & vbCrLf)
        l_value = AxTrioPC1.GetConnectionType()
            Terminal.AppendText("Connection type " & CStr(l_value) & vbCrLf)
        AxTrioPC1.GetVariable("CONTROL", d_value)
            Terminal.AppendText("Controller " & CStr(d_value) & vbCrLf)
        AxTrioPC1.GetVariable("SERIAL_NUMBER", d_value)
            Terminal.AppendText("Serial Number " & CStr(d_value) & vbCrLf)
        AxTrioPC1.GetVariable("VERSION", d_value)
            Terminal.AppendText("System SW V" & CStr(d_value) & vbCrLf)

Example output to terminal in VB application:

TrioPC Vers: 4,0,2,338
Connection type 2
Controller 600
Serial Number 4085
System SW V2.0308006002