10-28-2014 08:59 AM
Hello,
I seem to have commands dropped whenever I use ethernet connections as opposed to GPIB or RS232. I do not know if it is due to timing but depending on the instrument the more frequent the dropped commands occur. If I highlight the execution, I see the data flow as expected and commands. I have tried placing timeouts before and after/delays in between commands, even *OPC, to make sure the operation is complete before moving on to the next command.
This question is very general for very specific pieces of instruments but I am convinced it is due to the ethernet connection and my understanding of the timing of commands.
Thanks,
Christian
10-28-2014 11:53 AM
Some instruments just need time to process commands before they can accept any more. The Ethernet tends to send data faster, but also has a higher latency. You could be running into this latency issue. In general, you should have waits between commands just for allowing the instrument to process it, regardless of the communication bus.
10-28-2014 04:34 PM
Thanks!
I checked for a latency spec on the instrument(Sorenson XG600-2.4 Dc Supply) and could not find one. A tech support at sorenson told me a typical for all instruments is 250ms between each command. Is there a wayI can make sure that the command is sent and completed before each command such as *OPC and *OPC? and do I need to put time delays and OPC commands inbetween every command?
10-28-2014 05:46 PM
I just put in the time delay and don't worry about it. When it comes to power supplies, I typically add a lot more time just to allow it to get to the right output (it takes time to charge up that capacitor bank).
The OPC? command is a hit or miss depending on the instrument.
10-29-2014 10:21 AM
Thanks, wierd that the command is a hit or miss w/ certain instruments. I'll give it a shot!