Hello,
I'm currently using PCAN Explorer 5 and I'm writing a macro file (.pem).
I didn't manage to send a frame only one time.
For the moment, if I modify values of the frame, this frame is periodically sent (100ms for example).
I would like to modify the values of the frame then send this frame only one time : so send the frame then stop it.
Is there a dedicated command in macro file (.pem) ?
Thanks in advance for your answer,
FL
CAN frame one-shot sending
- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: CAN frame one-shot sending
In PE5 VBS Macros you could send CAN Frames by changing Signal Values which you defined as Send/Bidirectional , or you could send RAW CAN ID.
When using Signal based work, you could set for every Signal a Auto Transmit Flag. This is usefull if you have in one CAN-ID more than one signal and like to transmit the RAW CAN Message only once when ALL signals of this CAN ID have been changed. This could be done by setting AutoTransmit property of the Signal to false.
For Example in one CAN-ID are three signals (Value-A,Value-B,Value-C). You like to change all of them but only when you change the last one (Value-C) the CAN-ID should be send:
If you set all Signals to AutoTransmit = false, they will not be send until you:
- Set the AutoTransmit of one Signal back to true and change the value
- You Send the signal manualy in you VBS
If I misunderstood your problem, the best way is to send your macro and a small description what you exact like to do (what should be send when/how [raw CAN or Signal based] ) to support[at]peak-system.com and we will answer you fast as possible. We could place later on the answer here in the Forum.
When using Signal based work, you could set for every Signal a Auto Transmit Flag. This is usefull if you have in one CAN-ID more than one signal and like to transmit the RAW CAN Message only once when ALL signals of this CAN ID have been changed. This could be done by setting AutoTransmit property of the Signal to false.
For Example in one CAN-ID are three signals (Value-A,Value-B,Value-C). You like to change all of them but only when you change the last one (Value-C) the CAN-ID should be send:
Code: Select all
Signals("Value-A").Source.AutoTransmit = false
Signals("Value-B").Source.AutoTransmit = false
' so when this signal is changed the CAN ID will be transmit!
Signals("Value-C").Source.AutoTransmit = true
- Set the AutoTransmit of one Signal back to true and change the value
- You Send the signal manualy in you VBS
If I misunderstood your problem, the best way is to send your macro and a small description what you exact like to do (what should be send when/how [raw CAN or Signal based] ) to support[at]peak-system.com and we will answer you fast as possible. We could place later on the answer here in the Forum.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------