07-19-2011 09:00 PM
Hey, thanks in advance for any help given.
We are currently trying to open an executable file(such as minesweeper) which is on the computer through the cRIO, however we can't use the System Exec.vi to do this (maybe we are using it wrong and we can?) Is there another way to do this? We are trying to use our robot as a joystick to play games, and so need to send keystrokes to this .exe we are trying to open. I can get it to keystroke when running off the pc, but can't open the .exe when running through the cRIO.
Regards
Alim Guy
Solved! Go to Solution.
07-20-2011 10:15 AM
Hi there,
What I would do here is have two VIs, one on the robot and one on the computer. The robot one will send commands to the computer (host) through shared variables, tcp/ip, UDP, or network streams (basically any network communication method). The host vi will take those commands and start the game and actually input the "keystrokes."
Are you trying to do this without having any code running on the computer? If so that will be much more difficult.
07-20-2011 04:00 PM
Hey, thanks for the suggestion that definately seems do able.
Ideally both will be running off the cRIO. How would I go about doing this?
Regards
Alim Guy
07-21-2011 03:46 PM
Apart from actually having the robot use the keyboard and mouse, it may be tough to have the robot control the game without some extra software running on the computer. The thing to think about is how you would be sending commands to the computer, serial, tcp/ip, etc. You would need something to interpret those commands into something meaningful. A VI on the host computer is probably the easiest solution, but you can probably come up with some other creative ones.
07-23-2011 07:11 PM
Hey Scott, thanks again for answering my question.
How would I go about sharing a real time value(i.e from a .vi running on the cRIO), to a .vi that isn't runnning off the cRIO (i.e one that is running off the computer).
Regards
Alim Guy