VB macro

Comprehensive CAN monitor for Windows® and its add-ins: Plotter, CANdb Import, Instruments Panel, and J1939
Post Reply
PMJ
Posts: 13
Joined: Mon 9. Jan 2012, 12:44

VB macro

Post by PMJ » Wed 11. Jan 2012, 12:38

Hi.
It is possible to start trace and send this data "Send 1 310h 8 04h 00h 00h 00h 00h 00h 00h 00h" in VB macro???

Piter

M.Maidhof
Support
Support
Posts: 1751
Joined: Wed 22. Sep 2010, 14:00

Re: VB macro

Post by M.Maidhof » Wed 11. Jan 2012, 15:24

Hi Piter,

yes, this will be possible with a VB macro or even with a simple standard macro.

best regards

Michael

PMJ
Posts: 13
Joined: Mon 9. Jan 2012, 12:44

Re: VB macro

Post by PMJ » Thu 12. Jan 2012, 09:32

I advised with trace but i don't how sent this information via CAN. If You can paste code I will very thankful.

Piter

M.Maidhof
Support
Support
Posts: 1751
Joined: Wed 22. Sep 2010, 14:00

Re: VB macro

Post by M.Maidhof » Thu 12. Jan 2012, 12:36

Sorry, but I don't understand your last post. Which information do you mean?

Michael

PMJ
Posts: 13
Joined: Mon 9. Jan 2012, 12:44

Re: VB macro

Post by PMJ » Thu 12. Jan 2012, 12:44

I don't know how to use this code " Send 1 310h 8 04h 00h 00h 00h 00h 00h 00h 00h" in VB macro.
It's very simple in standard macro but under VB macro don't work.I try with "ExecuteCommand" but it's work only with "send" without any parameters.
I need send this message "310h 8 04h 00h 00h 00h 00h 00h 00h 00h" on bus 1 in the VB macro.

M.Maidhof
Support
Support
Posts: 1751
Joined: Wed 22. Sep 2010, 14:00

Re: VB macro

Post by M.Maidhof » Thu 12. Jan 2012, 13:37

Please see the NewClientSend() macro in the macro list, which is a demo VB macro, showing you how to send out a CAN frame with VBmacro.

regards

Michael

PMJ
Posts: 13
Joined: Mon 9. Jan 2012, 12:44

Re: VB macro

Post by PMJ » Tue 21. Oct 2014, 09:37

Hello Michael,

I'm back to this topic because I have problem with this example.
It's theoretical send message but in trace it's marked as RX message, not TX!!
When I'm sending for ex. ID100 manually from transmit/receive panel all is OK.

Do You have any suggestion?

Piter

I'm finded solution on Your forum
http://www.peak-system.com/forum/viewto ... rite#p1230

M.Maidhof
Support
Support
Posts: 1751
Joined: Wed 22. Sep 2010, 14:00

Re: VB macro

Post by M.Maidhof » Tue 21. Oct 2014, 11:29

Hi,

the VB macro creates a new client, this is like a new application besides PCAN-Explorer. That´s why PCAN-Explorer will receive that message as RX and not as TX.

regards

Michael

Post Reply