09-17-2015 07:19 AM
Under the Myrio project if I place the attached xbox VI under the computer it works when I run it but if I put it under the Myrio it does not work. Can someone please explain what I am doing wrong. I am pretty new at this. Thanks
09-17-2015 03:12 PM
I get error (-363031) which I understand is the Myrio not recognizing the device.
09-21-2015 07:38 AM
Hi ils4580,
It is hard to say what might be causing this error. Does the error occur during the deployment process or when the code is running?
Have you verified that you can properly see your myRIO target in NI MAX?
Is everything wired correctly?
Does this happen with other devices?
Have you tried running the Joystick Monitoring Project provided with the myRIO toolkit?
Can you provide a screen shot of the error occurring?
09-22-2015 07:34 PM
Yes the Myrio shows up in NI Max. I have attached some photos of the project with the way it works and the way it doesn't.
09-28-2015 01:02 PM
This error is occurring because the myRIO can't recognize the Xbox controller. In this instance, it is because the controller is connected to the computer and not the myRIO. Even though the VI is deployed on the myRIO, it can't access the Xbox controller without a direct connection to the controller. If you would like to read the controller commands on a computer and then access those commands on the myRIO, you can use shared variables to send that data to the myRIO.
Here is a white paper on how to implement shared variables:
http://www.ni.com/white-paper/4679/en/
Here is the manual for shared variables:
http://zone.ni.com/reference/en-XX/help/371361G-01/lvconcepts/usingdynvarapi/
10-26-2015 05:34 PM - edited 10-26-2015 05:39 PM
I'm having the same problem but I have my Xbox controller plugged directly into the myRIO. Based on what I have read the myRIO does not have the needed drivers to talk to the controller. How do I go about fixing this? I tried to run the Joystick Monitoring Project and it gave me an error; I attached it.
Thank you!
10-26-2015 06:04 PM
I am using the controller connected to the PC. To do this I had to run two seperate VI's and use shared variables to communicate between the two.
10-27-2015 05:58 PM
Hi Avanina,
I am not sure why you are having that issue or what driver you are missing. To add software to your myRIO go to NI MAX, find myRIO in remote systems. Expand the myRIO and right-click software then Add/Remove Software. From there you can add any drivers on your system.
Do you know what driver you are missing?
Do you have the NI-RIO driver installed? What version?
What version of LabVIEW do you have installed?
10-28-2015 03:52 PM
JD B,
I looked into that earlier in the week and was not sure what I should be installing to get an XBox Controller working. I do not know what driver I need for this task so I'm not really sure where to go. I believe I have the NI-RIO driver installed (I assume you mean on my laptop) as I can see the RIO from my laptop and communicate with it. I am running LabVIEW myRIO 2015. As I mentioned I think the fix to my problem is driver related and therefore in NI-MAX. Thank you.
11-05-2015 08:56 AM
I too tried to get this working a while ago but it's not easy. I got stuck because my knowledge of compiling/cross-compiling for Linux RT is pretty limited.
Here are some of my posts discussing the issue:
https://decibel.ni.com/content/thread/21018?tstart=120
If you managed to get it working, please let me know. I don't have any 'requirement' to get it working any more but it's something that I think the myRIO should support and it would satisfy my curiosity if there was a solution.