VILLASframework
Modular co-simulation framework
|
The first and simplest utility of the VILLASnode toolbox is a signal generator. Rarely used in a real simulation, this tool can be handy for testing and understanding other commands of VILLASnode.
The following command emits a stream of samples to the standard output of your terminal:
The samples have the following characteristics:
Option | Description |
---|---|
-l 10 | Limits the output to 10 samples |
-r 10 | Samples the signal with a rate of 10 Hz |
-F 3 | Sets the frequency of the generated signal to 3 Hz |
-v 1 | Sets the number of values which are generated |
Every sample is printed in a single line consisting of several columns:
The first column is a combination of timestamp and sequence number in the form of seconds.nanoseconds+offset(sequenceno)
. The timestamp is derived from Unix time (seconds after 01/01/1970 UTC). The remaining columns contain the values of the sample.
If you add the -n
(non real-time mode) switch the data will be printed immeadiately to the screen:
You can use shell redirection to write those samples to a file:
Go to [lab 2] =>(node-lab-2)