02-12-2007 06:42 PM
02-13-2007 09:42 AM
You can identify the time bottleneck by placing timers around each VI in the diagram (1 Tick Count VI prior and 1 after a VI and subtract the difference). A visual inspection would probably suffice...simply highlight execution and look at the diagram to see where the code is taking the most time to execute. A third option is to run NISpy, which will log all calls to the communications bus and also indicate the timing of the calls.
My guess is that most of the time is spent returning data from the instrument. Your best bet to speed this up is to use GPIB (a faster bus) rather than serial. On many scopes you could also reduce the number of samples being transferred, but I don't see that as an option here.
02-13-2007 09:49 AM
02-13-2007 10:11 AM
02-13-2007 03:28 PM
02-13-2007
03:32 PM
- last edited on
05-09-2026
07:22 PM
by
Content Cleaner
Hey Scott,
The best option is to use NI-Spy, as you will know exactly how much time did it take to execute all the commands, while communicating using GPIB. Also if your device is timing out, Check this article which shows how you can change the timeout of your GPIB bus?
Good luck with everything!
Regards
Nikhil A.
02-13-2007
04:08 PM
- last edited on
05-09-2026
07:23 PM
by
Content Cleaner
There is some great information on throughput and latency of the different buses at https://www.ni.com/en/shop/data-acquisition/what-makes-a-bus-high-performance.html.
02-14-2007 01:29 AM