SetStdioPort

int SetStdioPort (int stdioPort);

Purpose

Sets the current destination for data written to the Standard Output and the source of data read from Standard Input.

You can specify either the LabWindows/CVI Standard Input/Output window or a console window.

Linux The LabWindows/CVI Standard I/O window works with the functions in the Formatting and I/O Library but does not work with the input/output functions in the C system library.

Parameters

Input
Name Type Description
stdioPort integer The current destination of data written to the standard output and the source of data read from standard input.

CVI_STDIO_WINDOW (0) = LabWindows/CVI Standard Input/Output window
HOST_SYSTEM_STDIO (1) = A system console window

The default value for stdioPort is CVI_STDIO_WINDOW for a nonconsole application and HOST_SYSTEM_STDIO for a console application.

Return Value

Name Type Description
status integer Indicates whether the function succeeded.

Code Description
0 Success.
-1 Destination was not a valid range.