LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Are there any functions like printf for a text box in the UIR

Are there any functions like printf for a text box in the UIR.I know there is a function that will write a string to the text box. I am wanting the formating characteristics of the printf. Or possibly a way to redirect the printf function from the stdio to a specific text box.
0 Kudos
Message 1 of 4
(3,299 Views)
No, there isn't. All you need to do though is use sprintf to format variables into a string, then send that string to the textbox with SetCtrlVal.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 4
(3,299 Views)
Thank you for your help.
Suggestion for next version of CVI:
A printf function for text boxes maybe call it printAt
It would be a very useful function.
0 Kudos
Message 3 of 4
(3,299 Views)
Yes, Please consider a function like printf for the text boxes. Would be very useful for those that like to display verbose results to a text box in the UIR instead of using the standard I/O window....
0 Kudos
Message 4 of 4
(3,299 Views)