Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Keep losing contact to my real time target(cRIO), what to do?

Hey I am having problems with my cRIO-9022, which has NI 9475 and NI 9205 modules.

 

I have attached a file showing the error.

 

The thing is, whenever I try using a timed loop or even a while loop to read in data I am getting an error.

 

I am reading in a .csv file that is on the pc, not the rio.

 

Also when I run other simple code on the cRIO, its works maybe 1 out of 3 times, with the other 2/3 times giving the same error.

 

If you could suggest any action to take, that would be greatley appreciated.

 

Regards

Alim Guy

 

 

0 Kudos
Message 1 of 13
(5,298 Views)

I also get a communication error

0 Kudos
Message 2 of 13
(5,297 Views)

Problem may be in your installed software

once try to format your controller and reinstall sofware

AB
Kudos are Accepted
0 Kudos
Message 3 of 13
(5,293 Views)

Usually when communication is lost, it means your cRIO is using too much processor time to run your code.  It needs a bit of processor time to take care of network communication.  When you run your simple code, try putting something like a blinking light inside a 500ms timed loop.  Does this code cause your target to disconnect?  If so, does the light continue to blink once it's disconnected?

0 Kudos
Message 4 of 13
(5,269 Views)

Thanks Vara Prasad, I may have to try that at some stage. 😃

0 Kudos
Message 5 of 13
(5,257 Views)

Hey Kyle,

 

Thanks for the advice I shall try that when I get the time.

 

I am not running a timed loop at a quick rate (50ms), another error I am getting is when I run/try to run a .VI, a previously opened one opens up. I've attached a  really simple code which breaks up a 3 columned input .csv file into 3 outputs, which displays a row of the columns each time.

 

Thank you in advance for any further insight given.

 

Regards

Alim Guy

Download All
0 Kudos
Message 6 of 13
(5,256 Views)

Okay I think the problem is that I am trying to access and write to files that are on the pc and not the compactRIO, how do I get around this??

 

Regards

Alim Guy

0 Kudos
Message 7 of 13
(5,233 Views)

Hi Alim,

 

I think the best way around this is to access and write files on the cRIO, and then FTP those files over to your PC in your program.  This link shows a quick example of how to do the FTP transfer in LabVIEW.

0 Kudos
Message 8 of 13
(5,213 Views)

Hey,

 

Thanks, managed to get that working, however still having connection problems. I think its something to do with the memory, because when I try to run a .VI a previously opened one opens and is running. Also whenever I stop a .VI it says communication has been lost. 

0 Kudos
Message 9 of 13
(5,206 Views)

Does it lose connection whenever you try to stop any VI, or is it just a specific one that causes it to lose connection?

0 Kudos
Message 10 of 13
(5,185 Views)