co_stream co_stream_create(const char *name, co_type type, int numelements);
This function creates a stream. Streams created using co_stream_create are subsequently used to connect processes. This function must be called from within the configuration function of your application.
The arguments for co_stream_create are as follows:
A pointer to the created stream. This return value may subsequently be used as an argument to function co_process_create.
Stream names, as specified in the first argument to co_stream_create, must be unique across the application when using the Application Monitor.
In simulation, this function prints an error message and terminates the application if it is called from outside the configuration function, or if the Application Monitor is being used and a name argument is not supplied (== NULL), or if a type wider than 64 bits is specified.