11-10-2008 11:02 AM
I tried to run an example OpenG System Command Pipe test.vi
I've made a simple C console program:
#include <stdio.h>
int main() {
int C;
int f;
C = 0;
f = 0;
while(C != 115) {
C = getchar();
}
while(C != 115) {
f = getchar();
}
}
And every time VI crashes with error.
I need LabView OG PIPE read - to wait until user presses an input and show it Front Panel
What I might doing wrong?
11-10-2008 11:10 AM
11-10-2008 11:48 AM
> It works fine
Yes, I've checked. It works fine with getting output information from console, but what about User keyboard inputs?
Regards
11-10-2008 12:00 PM
And what is strange:
Compiling this simple program to an .exe
and running "OpenG Command Pipe test.v" for it - returns this "bla bla bla text..." to LabView successfully - but also
shows error: An input parameter is invalid
#include <stdio.h>
int main() {
printf("bla bla bla text...");
}
11-10-2008 12:12 PM
The only thing left - that I should every time restart my VI. The console opens only once. Then if I want to run it one more time - I need to close labview and then open VI again...
Have anyone deal with getting inputs from keyboard to OG Pipes ?
11-13-2008 04:10 AM
11-13-2008 06:09 AM - edited 11-13-2008 06:11 AM
Hi!
Which exactly Ping example? I found this one: http://forums.ni.com/attachments/ni/170/315317/1/ping.vi
It doesnt use any OpenG nodes.
I tried using OpenG Pipe example (by RolfK) , which is attached below. I get data from console window to LabView, but do not succeeded in writing data from LabView to the Console
And even this example uses only "stdout" and I need somehow get input from keyboard to LabView
11-13-2008 06:40 AM
11-13-2008 06:49 AM
Hi, ACiDuser,
Sorry for offtopic, but I follow this hard discussion with high interest... Its just interesting for me - what occurred first - you will get stuff running, or you will change the architecture a little bit for avoid such interconnection between LabVIEW and console... 🙂
Please don't hesitate to post here final solution when you will get it. Thanks.
Andrey.
11-13-2008 07:02 AM
> I couldn't open your zip (it says it's corrupted)... Probably something
> wrong on my side...
try renaming *.zip to *.rar - it should be able to open
Regards