04-04-2006 03:02 AM
04-04-2006 04:03 AM
LabVIEW is a GUI Windows application and those do normally not have any standard IO or should we rather say the standard IO for such an application is the window system. Windows has a specific distinction between command line programs with standard IO and GUI programs that use the windowing system. Making a GUI application have standard IO in the same way as a command line application is something you only can achieve by some specific low level programming in the application itself in its C source code. Since you don't have the C code of LabVIEW avialiable (and really don't want to deal on that level anyhow) I'm afraid you will either have to resort to batch files or maybe writing some small command line application yourself to do what you want.
@Dan M. wrote:
HelloI am trying to create standalone application that would write some text to the "standard output" upon execution. I am using WindowsXP and a rather old version of LabView (5.1), because this has the application builder. I tried executing a batch file with echo commands inside my application, but this opens a new DOS window and the application itself does not output anything (If I run "myapp.exe > out.txt", I don't get anything in the text file)Thanks for any reply!Dan
04-04-2006 04:21 AM
04-04-2006 04:31 AM
04-04-2006 04:44 AM - edited 04-04-2006 04:44 AM
What is the problem about writing to a file and use that as input to whatever you need? What do you want to do anyhow? Maybe other forms of interapplciation communication would be possible.
@Dan M. wrote:
I hoped there would be a simple code interface node for what I wanted. In my command line example I used the ">" operator just to check if my application writes something to the console output. Normally, the application would have been launched by another program with different arguments on the command line for different tasks. I already have the CIN for reading the arguments... Well, I wanted to use LabView because it is very easy for me to write a program, compared to other programming environments
Message Edited by rolfk on 04-04-2006 11:44 AM
04-04-2006 04:55 AM
The parent application wants my application to write to standard output, not a file. I have the source code, but is written in C (foreign language for me), and trying to modify it would complicate too much what I wanted initially to be a "quick and dirty" solution.
Thanks
Dan
04-04-2006 08:55 AM
04-04-2006 08:57 AM
You could try using the .net console namespace and write methods. I can provide more later.........
Paul
04-04-2006 08:58 AM
oops just occured to me that you said LV 5.1 no dotnet back then sorry ignore my last post.