PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

"niSwitch Abort Scan.vi" takes a lot of time in scanning mode

Solved!
Go to solution

Following example is based on

C:\Program Files (x86)\National Instruments\LabVIEW 2017\examples\instr\niSwitch\Switch - Scanning - Software Scanning (NI-SWITCH).viniSwitch.png

 

Environment Information

  • LabVIEW 2017
  • niSwitch 17.0
  • PXIe-8821 + PXIe-1078
  • PXIe-8821 + PXIe-1082
  • PXI-2567
  • ScanList: ch0->com0

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>>

0m.png

 

<<Scanning stopped, fast but error returned>>

50m.png

 

Certified LabVIEW Developer
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

GCentral
0 Kudos
Message 1 of 3
(2,444 Views)

On "Wait Between START and ABORT", 15msec is threshold...?15m.png

 

15mNoError.png

 

Certified LabVIEW Developer
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

GCentral
0 Kudos
Message 2 of 3
(2,436 Views)
Solution
Accepted by topic author Tepig

We concluded that NI Switch driver doesn't work fast.

It seems that it internally does some module/system check to guarantee the module health.

 

There is no way to make it fast.

Certified LabVIEW Developer
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

GCentral
0 Kudos
Message 3 of 3
(2,278 Views)