setevparam
Purpose:
-
Set an event with additional structure message data. Use this if the event you want to set is complex and not something that can be set with setevint or setevstr. Know before-hand what the event structure looks like and create a file for it.
Enter:
-
setevparam <eventname> <specfile> <index1> <val1> [index2] [val2] …
Where:
-
eventname
Specify the event name to set.
specfile
Specify the file to read to obtain the data of the structure detail being emulated.
index[x]
Optional. Specify the index indicating the structure element.
val[x]
Optional. Specify the value to store at the index.
Example:
-
setevparam reply_event /specs/event.spec 010424
The above command sets the event ‘reply_event’ and puts into the first index, index[0], a value of ’10’ and the element at 4 in the struct, index[4], a value of ’24’.
Sample spec file: short short long char short int short float
Details: With the above example and sample spec file, we would send that whole structure with the first short at the top being a 10 and the fifth element being a 24.
A sample of how the data would look being sent:
short = 10 short = 0 long = 0 char = 0 short = 24 int = 0 short = 0 float = 0
Notes:
-
You do not need to fill out the structure, just the elements you need. Also if you specify an index you must have a value. Command line indexing starts at 0.