Lab 7: Read samples from file and send them to node
Easy way (non real-time)
villas pipe lab3.conf udp_node1 < file_send.dat > file_recv.dat
Note: In this lab all samples of file.dat will be sent immediately to udp_node1.
Usually, this is not the desired behavior.
We will show later how to stream the samples in real-time to a destination node.
Better way (real-time)
node/etc/labs/lab7.conf
nodes = {
file_node1 = {
type = "file"
uri = "file_send.dat"
in = {
}
}
}
In order to stream the samples in real-time from a file, we will use the file node-type with the following configuration file (lab7.conf):
villas pipe lab7.conf file_node1 | villas pipe lab3.conf udp_node1 > file_recv.dat
Loading...