LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying text stream from console

Hello there,
 

I’m passing in an address of a perl file to system exec.vi. The system exec.vi invokes the perl program in the console that outputs a text stream . I need to be able to display this text stream on the front panel. May be in a listbox or something and also store it on the machine. Any inputs on this is appreciated.

 

 

Thanks

 

Shaun Reevs

 

 

0 Kudos
Message 1 of 5
(3,206 Views)

Hello Shaun Reevs,

You can use the "standart output" output, which returns information about the programm you called!

I hope this helps.

Christian

0 Kudos
Message 2 of 5
(3,189 Views)
As a first step in achieving what i want, I began programing my application. But for some strange reason I'm not able to make the connections. I'm trying to make the array shell, string type. I'm placing a string on the block diagram and drag it into the shell make it string type. No effect. The shell doesn't trun pink.
Any inputs on fixing this problem is greatly appreciable.
 
Attachments: 1. The photoshop snapshot shows the circuit i'm trying to build
                       2. VI i have built with errors. 
 
Thanks
 
Shaun
Download All
0 Kudos
Message 3 of 5
(3,156 Views)
Hey Shaun,

There are a couple of things that I would suggest trying to get the data type associated.  The first would be to create an array shell on the front panel, place a string on the front panel, and then click and drag the string to the shell on the front panel.  Sometimes it can be easier to see the shell being highlighted when you have gotten the control in the correct place.  Once the two become one, you can go to the block diagram and right-click and select Change to Constant.  This will then get you a 1D array.  You will have to add a dimension to get a 2D array by right-clicking again.  The other way to create an array would be to simply resize the shell so that it is a lot larger, which can help to figure out where to place the string constant.  I went ahead and completed the VI for you, but creating arrays of different data types is very important to learn.

Hope this helps!
Andy F.
-----------------------------------------------------------------
National Instruments
0 Kudos
Message 4 of 5
(3,127 Views)

Andy,

I was able to figure it out the day i posted this message. But Thank you, I greatly appreciate your support. Please continue your good work in advicing Labview users.

Regards

Shaun

 

0 Kudos
Message 5 of 5
(3,115 Views)