How to insert delay or wait to xmt file?

Windows® Compatible Software for Displaying CAN Messages
Post Reply
jaeo.park
Posts: 2
Joined: Thu 2. Sep 2021, 10:12

How to insert delay or wait to xmt file?

Post by jaeo.park » Thu 2. Sep 2021, 10:25

I am verifying can messages made by me.
These message work properly for single frame message, but multiple frame message doesn't work.
So, I would like to insert sleep or delay function between frame messages.

Is there a way to insert delay or wait function as below example?

[As -Is]
; D:\Door.xmt
; CAN messages saved by PCAN-View v4.3.4.615

43Fh 0 8 D 00h 40h 50h FFh 52h 00h 00h 00h
370h 0 8 D FFh 20h 00h 00h 00h 00h 00h 00h
440h 0 8 D FFh FFh 00h 00h FFh 00h 00h 00h
220h 0 8 D 04h 04h FFh 03h 04h 00h FFh 0Fh
1F1h 0 8 D 00h 00h 00h 00h 00h 00h 00h 00h
260h 0 8 D 00h 00h 00h 00h 00h 00h 00h 00h

[To-be]
; D:\Door.xmt
; CAN messages saved by PCAN-View v4.3.4.615

43Fh 0 8 D 00h 40h 50h FFh 52h 00h 00h 00h
370h 0 8 D FFh 20h 00h 00h 00h 00h 00h 00h
sleep 10 (wait 10ms)
440h 0 8 D FFh FFh 00h 00h FFh 00h 00h 00h
220h 0 8 D 04h 04h FFh 03h 04h 00h FFh 0Fh
1F1h 0 8 D 00h 00h 00h 00h 00h 00h 00h 00h
sleep 100 (wait 100ms)
260h 0 8 D 00h 00h 00h 00h 00h 00h 00h 00h

Thanks,
jaeo.

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: How to insert delay or wait to xmt file?

Post by M.Heidemann » Thu 2. Sep 2021, 10:39

Dear Jaeo,

There is no such thing in a transmit-list.
Transmit-lists only contain messages and their corresponding cycle time.

You could stagger the cycle times of a frame to get multiple possible variants of a message but you cannot introduce sleeps like this.

Also could you please give us more information on which software/API you are currently using?

Best Regards

Marvin
---
Marvin Heidemann
PEAK-Support Team

jaeo.park
Posts: 2
Joined: Thu 2. Sep 2021, 10:12

Re: How to insert delay or wait to xmt file?

Post by jaeo.park » Thu 2. Sep 2021, 10:46

Dear Marvin

Thanks for your quick response.
I understood that PCAN-View currently doesn't support delay feature. Is it correct?

Thanks,
jaeo.

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: How to insert delay or wait to xmt file?

Post by M.Heidemann » Thu 2. Sep 2021, 10:53

Dear Jaeo,

No it does not, PCAN-View is not right tool for automation such as this.

You could have a look at our PCANBasic API to write a small application that
does what you intend to do:

https://www.peak-system.com/PCAN-Basic.239.0.html?&L=1

It's available for free and contains an extensive docuemntation as well as examples, which you could use to base your own implementation on.

Best Regards

Marvin
---
Marvin Heidemann
PEAK-Support Team

Post Reply