co_stream co_stream_create(const char *name, co_type type, int numelements); Header Fileco.h DescriptionThis 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. ArgumentsThe arguments for co_stream_create are as follows:
Return ValueA pointer to the created stream. This return value may subsequently be used as an argument to function co_process_create. NotesStream 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. |