04-26-2010 12:48 PM
05-03-2010 12:00 PM
Hi KavehV,
It is possible to dynamically change the payload lengthduring RunTime but not without starting and stopping the session. In fact, all changes to the payload length, when done dynamically, is done to the copy of the database in memory as opposed to the one on disk, so whenever your application stops running, the changes are discarded. If you need to change the payload length, you would need to essentially do so before you create a session by opening the database, and modifying the copy that's in memory.
05-03-2010 12:04 PM
06-28-2011 04:12 AM
I also have to change payload length with XNET package. How can I do this? I have tried to change to write Payload length field from Frame Property Node and assign to it the desired length in byte, but this does not appear to work correctly. Why?
regards,
Jessica
06-28-2011 01:15 PM
Can you explain your use case? The current NI-XNET scheme is attempting to maintain the system described by the database, specifically that a frame matches the configured payload length.
06-29-2011 05:05 AM
I have to send to an automotive device three types of CAN message (with three different ayload lengths) by using Frame Output Single-point mode.
Actually I have solved the problem using three different databases, but I believe a better solution exists.
Regards,
Jessica
06-29-2011 07:11 AM
So the device accepts 3 different messages using the same CAN ID and they are of different lengths. I presume the device would look at like the first byte of the payload to determine how to interpret the other bytes or does it just look at the length and based on the length it can determine which of the 3 messages are being sent?
06-29-2011 07:13 AM
No, the device is not able to do this.
06-29-2011 07:16 AM
So why do you need to send the device the same ID with 3 different payloads?
06-29-2011 07:23 AM
This is a particular CAN message that enable diagnostic services on the ECU