08-01-2019 01:17 AM - edited 08-01-2019 01:41 AM
Following example is based on
C:\Program Files (x86)\National Instruments\LabVIEW 2017\examples\instr\niSwitch\Switch - Scanning - Software Scanning (NI-SWITCH).vi
Environment Information
I have a question why "niSwitch Abort Scan.vi" takes a lot of time under scanning.
When "Wait Between START and ABORT" was set to 0, the VI took about 16msec.
When I increased the parameter to 50msec, it took 1.6msec, error "-1074126842" returned.
I guess under scanning, the VI takes a lot of time. But it too long...
Is this based on my coding problem or hardware/driver?
Can I decrease the process time?
At above settings, the scan should finish within 1-5msec I believe. When I set "Wait Between START and ABORT" to 0, the VI took 16msec but when I set the parameter 15msec, the situation wasn't changed. From this result, the scanning was not finished, it took over 15msec.
Does scanning require so many overhead?
FYI: Error "-1074126842"
"The switch module is currently in scanning mode, and the operation cannot be performed at this time."
<<Under Scanning, no error but takes ~16msec>>
<<Scanning stopped, fast but error returned>>
Solved! Go to Solution.
08-01-2019 01:23 AM
08-29-2019 07:58 PM