Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

SetStdioPort

LabWindows/CVI 8.5 Help
November 2007

NI Part Number:
370051K-01

»View Product Info

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.

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit