Page 1 of 1

VB macro

Posted: Wed 11. Jan 2012, 12:38
by PMJ
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

Re: VB macro

Posted: Wed 11. Jan 2012, 15:24
by M.Maidhof
Hi Piter,

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

best regards

Michael

Re: VB macro

Posted: Thu 12. Jan 2012, 09:32
by PMJ
I advised with trace but i don't how sent this information via CAN. If You can paste code I will very thankful.

Piter

Re: VB macro

Posted: Thu 12. Jan 2012, 12:36
by M.Maidhof
Sorry, but I don't understand your last post. Which information do you mean?

Michael

Re: VB macro

Posted: Thu 12. Jan 2012, 12:44
by PMJ
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.

Re: VB macro

Posted: Thu 12. Jan 2012, 13:37
by M.Maidhof
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

Re: VB macro

Posted: Tue 21. Oct 2014, 09:37
by PMJ
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

Re: VB macro

Posted: Tue 21. Oct 2014, 11:29
by M.Maidhof
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