Ok, I've now set the VI up to run a lot smoother with error handelling and it looks a lot more like the suggestion from cstorey. I'm still getting the disconnection issues from the same magnet mand getting the error attached.
The truly confusing thing is...if I manually disconnect and reconnect the magnet while the program is running, I can stop and restart the VI and it will run normally. If it is left to dosconnect itself, I have to disconnect and reconnect the magnet and completely close labview and restart before it will work again.
Any tips on diagnostics? This is driving me crazy.
LV-2017