ofir,
How fast are you sending commands to your instrument? The commands may be being sent to the instrument at the wrong times. I would throw some waits in the code to see if that changes the behavior at all (amongst the instrument commands).
If I understand correctly, the application works most of the time and only fails at random points in execution, right?
Just to clarify, the spectrum analyzer itself is what is locking up and not the GPIB-ENET, right?
Craig H.
NI Applications Engineering