06-29-2011 11:37 PM
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
06-29-2011 11:47 PM
I also get a communication error
06-30-2011 05:59 AM - edited 06-30-2011 05:59 AM
Problem may be in your installed software
once try to format your controller and reinstall sofware
07-01-2011 11:30 AM
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?
07-02-2011 03:33 AM
Thanks Vara Prasad, I may have to try that at some stage. 😃
07-02-2011 03:43 AM
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
07-04-2011 11:47 PM
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
07-06-2011 09:11 AM
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.
07-06-2011 04:32 PM
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.
07-08-2011 01:51 PM
Does it lose connection whenever you try to stop any VI, or is it just a specific one that causes it to lose connection?