10-25-2011 10:10 AM
Hi,
I have two PXI controllers running a realtime operating system that sit on the same tcp network. I have inhereted some code which uses a few single process shared variables. The issue I have is that I think (though I have no evidence of this) that the two PXI controllers are talking to each other! As far as I am aware single process shared variables do not publish their data to the network. I have checked for datasocket, tcp code, and network shared variables. I have also editted the alias file that gets deployed onto the controllers to remove the IP address of the others.
The reason I uspect that the two controllers are talking to each other is that when one crashes, the other crashes in sympathy (within 2 seconds)! Unfortunately disconnecting the controllers from the network is not an option as I do not want to have to crawl into my oily rig every time I want to add a config file to the HDD. Its LV2009 SP2 with RT I'm using.
Any comments, suggestions would be aoppreciated!
Al
10-25-2011 10:24 AM
There is asetting for the RT target that will let it crash if it lloses the network.
Ben
10-26-2011 10:47 AM
Hey Weevil
Are both PXI's running the same code? If so are they measuring similar things? this could be a consinsidental crash if this is the case.
also would it be possible to look at the code you have inherited as I might be able to spot the problem from that.
Thanks
Matt
10-26-2011 10:57 AM
Matt,
Yes both PXI's are running the same code measuring and outputting to the same channels, but they are in different test rigs. The only link between the two controllers is the ethernet network. If there was a general bug in the code I would expect it to crash when doing the same test, but yesterday when they crashed the two rigs were in a different part of the test sequence.
It might be coincidence, but the operators have told me that this has been happening at other times in the past.
10-26-2011 11:15 AM
There is a setting for the RT target that will let it crash if it looses the network.
Ben
10-27-2011 02:28 AM
Ben,
Thanks for that, I'll check the project properties to see if its set - I have a Doh! feeling coming on 😉
10-28-2011 07:28 AM
Hey Weevil
Just out of interest did Bens suggestion solve it?
Matt