User manual

Programming examples
68 © 2007-2010 Analytica GmbH
Console.Out.Write( ",Data=" )
For I As Integer = 0 To BufferLen - 1
Console.Out.Write( Bytes(I) )
Next
End Sub
Function Main(ByVal CmdArgs() As String) As Integer
'Opens the single CAN port of a AnaGate CAN
dim RC as Int32 = CANOpenDevice(Handle, 0, 1, 400, 0, "192.168.2.1", 1000)
If RC = 0 Then
CANSetCallback( Handle, AddressOf CANCallback )
end If
If RC = 0 Then
CANCloseDevice( Handle )
end if
end Function