Search found 4 matches

by Misch
Tue 25. Aug 2015, 14:04
Forum: PCAN-Explorer 5 & Add-ins
Topic: zaehler-Variable in Bytes aufteilen
Replies: 2
Views: 4042

Re: zaehler-Variable in Bytes aufteilen

Lösung

Sub Messung()
Dim zaehler
For zaehler = 0 To 5000 Step 50
Dim msg, highbyte, lowbyte
lowbyte = zaehler Mod 256
highbyte = zaehler\256
Set msg = Connections.TransmitMessages.Add
With msg
.BeginUpdate
Set .Connection = Connections(1)
.ID = &H248
.DLC = 2
.Data(0) = lowbyte
.Data(1 ...
by Misch
Tue 25. Aug 2015, 11:28
Forum: PCAN-Explorer 5 & Add-ins
Topic: zaehler-Variable in Bytes aufteilen
Replies: 2
Views: 4042

zaehler-Variable in Bytes aufteilen

Hallo,

ich möchte CAN-Messages senden, in der alle 1000ms eine Variable in den Bytes 0 und 1 hochgezählt wird. Folgender Code:
Sub Messung()
Dim zaehler
For zaehler = 0 To 5000 Step 50
Dim msg
Set msg = Connections.TransmitMessages.Add
With msg
.BeginUpdate
Set .Connection = Connections(1 ...
by Misch
Mon 27. Jul 2015, 07:05
Forum: PCAN-Explorer 5 & Add-ins
Topic: Pop-Up Objekt nach empfangener Nachricht
Replies: 2
Views: 4318

Re: Pop-Up Objekt nach empfangener Nachricht

Super, danke für die Antwort!

MfG Misch
by Misch
Thu 23. Jul 2015, 08:20
Forum: PCAN-Explorer 5 & Add-ins
Topic: Pop-Up Objekt nach empfangener Nachricht
Replies: 2
Views: 4318

Pop-Up Objekt nach empfangener Nachricht

Hallo,

ich komme seit einiger Zeit trotz Foren lesen, Googeln etc. bei folgendem Problem nicht weiter:

Ich bekomme eine best. Can-Nachricht. Habe diese auch als Symbol definiert. Diese Nachricht wird genau einmal gesendet. Wenn sie eingetroffen ist, soll nach Möglichkeit eine Objekt-LED im Panel ...