04-27-2024 08:03 AM
Hi all !
I am using MyRIO 1900. I connected the MyRIO with USB cable to PC. The MyRIO keeps disconnecting from my PC exactly after every 20 minutes even though I didn't run any code (Only established connection to project ).
I have tried connecting to different ports and turning off the power saving settings but the issue persists.
Kindly reply me if there is any solution or kindly ask if you require any additional information regarding the issue.
Thanks in advance.
04-27-2024 04:03 PM
Please provide a few more details of how you are using the PC and myRIO. Start with telling us which version of LabVIEW you are using (and is it 32-bit LabVIEW?), and which version of the myRIO Toolkit you are using.
When this "disconnect" occurs, are you doing LabVIEW development using the myRIO connected to your PC via the USB cable?
Have you downloaded and run code on the myRIO? Does your code ask the myRIO to restart itself? [It sounds like this is what is happening -- when the myRIO restarts, it momentarily "turns off", restarts, then can re-establish connections with the Host PC.]
ob S
Are you developing a LabVIEW Project with this myRIO? Can you attach your myRIO Project so we can see what you are doing? [If the Project files all live in a single folder, right-click the Folder, "Send to:", "Compressed (zipped) folder".]
I assume you are using LabVIEW 2021, LabVIEW 2019, or a earlier version of LabVIEW.
Bob Schor
04-30-2024 02:12 PM
Hi Bob_Schor.
Thanks for the reply!
Here are the details,
I have connected my PC and MyRIO using 3 meter usb cable that usually comes with the MyRIO package. My PC has windows 10 pro version. I using LabVIEW f2 2019 32 bit and 2019 MyRIO toolkit version. This disconnect happens while I was developing but even if I didn't develop also it disconnects. This disconnect happens in ideal state itself ( not running any code in MyRIO ), Hence I think it is not because of the code.
When this disconnect happens, if unplug my usb cable from PC and if I plug again, the MyRIO restarts and connects.
Similarly if I disable my usb and enables it in change adapter settings( I have attached image for reference), it restarts and connects again.
I have also noticed that if configugre MyRIO in wireless and connected MyRIO with wifi in my PC, the MyRIO stays connected and it is not disconnecting even if I run my code for more than 4 hours
04-30-2024 03:09 PM - edited 04-30-2024 03:09 PM
I'd double check all the power settings in Windows just to be sure.
-AK2DM
04-30-2024 04:52 PM
Specifically you may want to disable "USB selective suspend".
NI article on it:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P7POSA0&l=en-US
It mentions a ton of USB DAQs but not specifically a RIO, but likely still applies.
05-10-2024 07:57 AM
Hi all,
I have been following your suggestions from the beginning because the same issue has been addressed in my case too.
I tried disabling the "USB selective suspend" option as suggested by Kyle, but it keeps disconnecting after 20 minutes.
However, when I tried connecting the same myRIO with LabVIEW SP1 f5 2019 32-bit version, it worked fine.
Does the LabVIEW f2 2019 32-bit have any connectivity issues with myRIO 1900?
Does anyone know, any other solutions to solve this issue? Please share your comments.
05-10-2024 08:43 AM
I have a myRIO with LabVIEW 2019 software in it at home. I'll try it out and let you know what I find. I'll need to check if it has any start-up code running -- I have a vague recollection of the myRIO rebooting itself after 15-20 minutes, I think because I told it to do so (this particular application runs off batteries and I didn't want the myRIO to drain the battery if it wasn't actually doing anything useful).
Bob Schor
05-10-2024 10:38 AM
Hi Prathap and Navin,
A suggestion:
I experienced a similar issue with an sbRIO-9638, solution for that was using a powered usb-hub. Although I did not ever experience this with myRIO boards, you can try using an externally powered usb hub to see if it helps in your case.
P.S. newer systems specially laptops that are not industry grade are not delivering enough current for at least the sbRIO-9638 to have a stable connection over USB, LAN works fine. I wonder if that is the case with you.
Good luck!
05-13-2024 08:56 AM
Hi Xonmyth,
Thanks for the reply. I will try with externally powered usb hub and update in the reply chain. Can you suggest any externally powered usb hub that you have used?
Thanks,
Navinkmr.
05-13-2024 09:09 AM
Hi Navin,
Nothing specific as such, just something that had its own power supply. I had picked something that had decent review and matched my budget.
Docking stations, only if you already have one, works too. Otherwise they are expensive.
At that point, there was an Amazon basic powered usb hub but I cannot find it anymore.
-X