NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Phil E
Posts: 7
0 Kudos
Accepted Solution

niSwitch_init very slow on new Windows 7 PC

I have 4 SCXI-1127 cards plugged into an SCXI-100 chassis with a USB interface.

 

I am using VBA in Excel.

 

On our old XP PC, the niSwitch_init command would execute in 1-2 seconds per card.

 

On the new windows 7 PC, this command takes about 8-10 seconds per card. Or, about 30-40 seconds for the 4 cards.

 

the exact commands I'm using are:

 

    status = niSwitch_init("SC1MOD1", VI_TRUE, VI_TRUE, card1)

    status = niSwitch_init("SC1MOD2", VI_TRUE, VI_TRUE, card2)

    status = niSwitch_init("SC1MOD3", VI_TRUE, VI_TRUE, card3)

    status = niSwitch_init("SC1MOD4", VI_TRUE, VI_TRUE, card4)

 

Has anything changed in the Windows 7 version of niSwitch?

 

What could be causing it?

 

Subsequent commands to the switch execute in the same time as before. It's onlt the niSwitch_init command that's slow.

 

Thank you,

Member
Ali M
Posts: 171
0 Kudos

Re: niSwitch_init very slow on new Windows 7 PC

Hello Phil,

 

Several factors can affect the run-time performance of your application; however, there's a similar issue addressed in the following KnowledgeBase, where NI-Switch applications have shown to run slower on Windows 7 machines. If this is the case, National Instruments recommends either upgrading to NI-Switch 4.2 or enabling the HPET on your Windows 7 system.

Best regards,

 

Ali M

Applications Engineer

National Instruments

www.ni.com/support

Member
Phil E
Posts: 7
0 Kudos

Re: niSwitch_init very slow on new Windows 7 PC

Hello Ali,

 

This appears to address my issue. But, it says the solution is to upgrade to niSwitch 4.2.

 

I can only find niSwitch 4.1 here: http://joule.ni.com/nidu/cds/view/p/id/2225/lang/en

 

Where can I get the 4.2 update?

 

Thank you,

Member
Ali M
Posts: 171
0 Kudos

Re: niSwitch_init very slow on new Windows 7 PC

Hello Phil,

 

Thank you for your response. The KB indicates NI-Switch 4.2 (and later) because the problem will be fixed with the release of these drivers. However, the official release date of NI-Switch 4.2 has not been announced yet. At this juncture, the best work around workaround would be to enable the HPET on your Windows 7 system.

 

Best regards,

 

Ali M

Applications Engineer

National Instruments

www.ni.com/support

Active Participant
Now_With_Underscores
Posts: 345
0 Kudos

Re: niSwitch_init very slow on new Windows 7 PC

Hello Phil,

 

The increased time is due to a low level change in Windows 7.  If the wait time is not tolerable and you are not able to enable HPET, I recommend using Windows XP for now.

-John S
National Instruments
Analog Engineer
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page