title: Sending message with CAPL and dbc signal values
body: <p>I am using CAPL to simulate a test envirmonet for some small tests and i am having problems sending messages or more specific setting up the values.</p>
  
  <p>I am able to read Signal Values with $SignalName, also i am able to set signal values like that.</p>
  
  <p>If i am using this code to send a message the message data is always 0:</p>
  
  <pre><code>on key 't'
  {
    message MessageName msg;
    setSignal(SignalName,i);
    write("Value: %d",i);
    outport(msg);
  }
  </code></pre>
  
  <p>Witch makes kinda sence becouse i think the message objects are intended to be used to send bytes witch you can access through msg.byte()</p>
  
  <p>I know that i can set signals in messages by msg.SignalName, but again this seems not the right way. I think there should be a way to send a message and all the signals contained in the message are set to the values set by SetSignal() function. Otherwise the SetSignal Funktion is a bit useless</p>
  
  <p>Maybe somebody has an idea.
  Thank you</p>