07-10-2006 11:29 AM
07-13-2006 05:17 AM
07-13-2006 03:51 PM
Hi Gareth,
Alan from LeCroy Tech Support here...
There is a register you can poll to determine if the averaging is complete. It's the INR register. It's a "change" register, meaning that it tells you what's changes since you last read it with the INR? query... There are bits in this register for "Waveform Processing has terminated in Trace n" (n = A, B, C or D)
Which driver are you using? And are you using summed or continuous averaging?
For summed averaging on Trace A, you can put the scope into NORMAL trigger mode, and then send the query INR? and read the result... Parse the result to get the numeric value, and then AND it with 256 to determine if processing is complete on trace A. (Trace B would be 512, etc). Do this in a loop until you find that the AND is true.
To send the INR? query and to read the result, use the low-level Instrument Write and Instrument Read VI's that are in your driver. I also recommend using LeCroy's free application Scope Explorer to come up the learning curve... With this application, you can type INR? into a terminal window and immediately see the result. No programming required...
Feel free to give me a call at 800-553-2769 if you have any questions.
Best Regards,
Alan Blankman
07-13-2006 03:53 PM
I meant to add the following link, which is to the WaveRunner Remote Control manual. Check out page 147 (154 of the PDF file) for the definition of the INR? register.
http://www.lecroy.com/tm/library/manuals/WaveRunnerSeries/RemoteControlManual/WR2_RCM_RevB.pdf
--Alan