|
running exe problems Cameron from New Zealand [2 posts] |
17 year
|
Hi,
I'm just starting to create a programme that identifies a co-ordinate and then sends this to an .exe file. I'm trying to run the executable and when it opens, the box is blank. Has anyone had this problem? or knows how to get around it?
Many thanks
Cameron
|
|
|
Anonymous |
17 year
|
By the "box" we assume you mean the black Command Console? The reason it is blank is cause all the stdout (i..e printed text) is being redirected towards RoboRealm in order for it to parse the incoming text.
You can either write this text to a file or see this text in the Ouput text box in the RR dialog. (The last text box in the interface shows the incoming text).
STeven.
|
|
|
Anonymous |
17 year
|
Thank you Steven. That helped a lot.
|
|
|
Cameron from New Zealand [2 posts] |
17 year
|
Hello Again
A few more questions. If the exe I am running is going to infinity loop, am I able to keep updating it? Or should I have it only run once, enter the values, then open it again and repeat the cycle? Presently for both, when I input a value from roborealm into the exe, roborealm tends to crash on me. Is there a correct way to do this?
If I want to output COG_X, and COG_Y, how should I write the syntax?
“COG_X”<cr>
“COG_Y”<cr> ?
Thank you for all your help.
Cameron
|
|
|
Anonymous |
17 year
|
Cameron,
If you download the Extensions.zip file from
http://www.roborealm.com/downloads/Extensions.zip
you will find a Console folder in there with an example program on how to write an Execute Program. Basically the program just grabs input from RoboRealm and writes it to a file.
The "Stdin Send" text would then be
[COG_X]<cr><lf>
[COG_Y]<cr><lf>
to cause that program to write it to disk. Note that the Program file would be something like
C:\RoboRealm\Extensions\Console\Debug\Console.exe
STeven.
|
|