12-18-2016 02:04 PM
I have a simple question :
Is there any KEYBOARD Input device control for "MyRIO project" in LabView????
I can find it when I create from a blank project, but I can't find it for MyRIO project.
I need that to control my Robot (my robot use MyRIO-1900 device), to simplify the way to control my robot.
Please Help
Thank you
Solved! Go to Solution.
12-19-2016 07:18 AM
I am happy to defer to those with more knowledge than I on this, but it was my understanding that the myRIO was a Real-Time Platform, with a Real-Time OS. The design philosophy of such an OS is to have determinism, a response within a guaranteed (small) time window, so that data acquisition and control algorithms would be precise and accurate. Keyboard interactions, in general, don't fit well in this model, so it is not surprising that you can't find keyboard input control. Your keyboard interaction takes place on the host (as during development on the host), with communication with the RIO via a communication link, such as TCP/IP.
Bob Schor
12-19-2016 09:32 AM - edited 12-19-2016 09:34 AM
Just as Bob Schor basically said. Which keyboard would you want to control from a myRIO program? There isn't any keyboard on the myRIO I have, and I'm pretty sure yours isn't different.
And if you think about having the myRIO read the keyboard on your computer, how should it do that? There is no way for an external device to intercept your keyboard except with some troyan/root kit like device driver in your Windows system, which is most likely the last thing you would want to have on your computer. Besides the myRIO is happy to execute your program even without your host computer switched on, so your keyboard is not even functional in that case.
If you talk about connecting a keyboard to the USB connector of the myRIO that won't really fly well either, since the USB connection on the myRIO is a device connector and the Linux OS on it treats it as such. That means the myRIO is itself a device and the OS drivers do not provide host capabilities to connect another device like a keyboard to it. If you are very versed in Linux kernel hacking you could certainly change that, but that is another story and belongs on a different forum (Linux kernel device driver development and use).
12-19-2016 09:37 AM
@rolfk wrote:
If you talk about connecting a keyboard to the USB connector of the myRIO that won't really fly well either, since the USB connection on the myRIO is a device connector and the Linux OS on it treats it as such.
There is another jack for a standard USB right next to the device jack which could be used. But this still might require some installing of special drivers onto the Linux RT. And even then, I do not know of any device input for any RT system and Event Structures likely will not work either for the myRIO since it does not have a UI.
12-19-2016 09:44 AM
It definitely would require installation or at least enabling of a keyboard driver in the Linux RT OS and then you still don't have any VIs to access that. Someone would have to write the equivalent of the shared library necessary for the keyboard VIs specifically compiled for the Linux RT system (the myRIO uses an ARM CPU so the LabVIEW for desktop Linux shared library can in no way work, although even without the CPU difference it is unlikely that it would work without trouble).
Considereing that this is supposed to be used as a realtime system, I don't think this is going to be considered as a standard functionality that NI will develop and include in an upcoming release.
12-19-2016 10:06 AM
Oh, so thats why it hasn't the keyboard input device control for MyRio project.
Thanks for your information.
12-19-2016 12:47 PM
You might be able to use a joystick with the myRIO. Not all joysticks will work, this KB lists 3 that have been tested. If you have a joystick laying around, feel free giving it a try.