NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

IVI Switch is slow

Hi,

 

I am using IVI switch exe in my sequence to switch (Multiplexer and Relays), but it is really slow. Is there any other APIs to switch multiplexers and relays.

 

Thanks for the help.

 

 

0 Kudos
Message 1 of 10
(4,041 Views)

Yes.

 

Use IVI Switch Step Type

Use Switch Executive with the Switching step property

Use LabVIEW VIs to call NI-SWITCH

CTA, CLA, MTFBWY
0 Kudos
Message 2 of 10
(4,032 Views)

Thanks for the response.

 

That's what I am using and it is very slow.

 

IVI teststep from NI is very slow. Is there any solution without using NI switching?

 

NI switching is not optimized and it is not suitable for all applications.

0 Kudos
Message 3 of 10
(4,022 Views)

@LV2010 wrote:
[..]NI switching is not optimized [..]

What makes you think that? Are there any references which do proof this (daring) claim?

 

What hardware are you using?

What performance are you looking for vs. what are you currently seeing?

What is the purpose of the application you are implementing?

 

Without further information about status quo and quo vadis, we cannot provide more help....

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 10
(4,019 Views)

Thanks for the reply.

 

I am using NI 2576 Multiplexer card and It takes 1 to 2 seconds to switch one connection.

 

Because of that it is increasing my test time from 3 mins to 4.5 mins.

 

I tested another mulitplexer with different verndor it takes less than 100 ms.

0 Kudos
Message 5 of 10
(4,016 Views)

1-2 seconds really seems unbelievable high. Never seen such high switching times with NI switches.

So there are several questions:

- How do you configure the IVI steps?

- Do you have tracing enabled? If so, how fast?

- When accessing the 2576 with the Switch Soft Frontpanel: How long does a switch process take there?

- How do you determine that it is the switching itself which takes that much time? Is it possible that you talk about the time consisting of Switching&Data Acquisition?

- Since the relays are electromechanic: Do you hear a single *click* or does the switching command result in multiple *clicks* you can hear?

 

Sidenote: The 2576 can get up to 146 cycles/s. This will not happen with software timed switching (IVI step type), but i would expect of several cycles per second.....

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 6 of 10
(4,013 Views)

Thanks for the reply. Here is the example sequence with test result. It took 4 seconds. Please let me know what I am doing wrong.

Download All
0 Kudos
Message 7 of 10
(4,009 Views)

I can see that you are using NI Switch Executive (NI SE) in order to configure and manage your switch device.

Please enable the reporting for those two steps because i can imagine that the issue is created by the second step.

Why is that?

It seems that you are using the switch just as a matrix device, but it is a multiplexer. So NI SE has to make sure that the switch is working correctly within the constraints, the mux has. Additionally, we dont see any settings regarding "Tracing" in your station options, which could also explain the 4s execution time.

 

If neither helps, please provide your NI SE configuration.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 8 of 10
(4,007 Views)

Here is my NI SE configuration.

0 Kudos
Message 9 of 10
(4,004 Views)

I was not able to import your setting on my laptop successful such that i could perform some tests with a simulated 2576 device.

I assume that one reason could be that you configured the switch to be 2576/2-Wire Dual 32x1 Mux. But you have 64 channels. This does not fit together. Probably it is a sanity check which has to be done because of this missmatch which takes the long time....

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 10 of 10
(3,999 Views)