Controlling PXI-2501 Switches in C#

What is the best - prefered - way to control a PXI-2501/2503 Switch Matrix in C#.
I have only been able to find examples showing SCXI switching units. Is it done in the same way?
Code examples would be nice.
Thanks

I am assuming that the examples you are using are the DAQmx C# examples (Program Files\National Instruments\MeasurementStudio70\DotNET\Examples\DAQmx\Switches).
These examples work for all SCXI and PXI switches that are supported in DAQmx. NI-DAQ 7.1, the currently released version of NI-DAQ driver software, does not support PXI-2501/2503 under DAQmx. These modules will be supported in DAQmx in the next version of the driver.

Similar Messages

  • Problem Controlling PXI-2503 Switch through the IVI-C Switch API

    Hi,
    I'm writing an application to control a PXI-2503 switch in 1-wire mode using the IVI-C Switch API in order to route signals to a PXI-4060 DMM.
    According to the programming instructions, I should be able to create a path from the "ab0" channel to a channel like "ch10" by calling IviSwtch_Connect( "ab0", "com0" ) to connect "ab0" to "com0" and then calling IviSwtch( "com0", "ch10" ) to connect "com0" to "ch10". However, after the program makes those 2 functon calls, the DMM doesn't get the correct signal.
    When I use the NI Switch Soft Front Panel application to connect "ab0" to "com0" and then connect "com0" to "ch10", then the DMM gets the correct signal. Does anyone know what the Soft Front Panel tool does differently?
    Thanks in advance to anyone who can help.
    VRMan

    VRMan,
    Make sure that you have configured your 2503 to be in the 1-wire 48x1 topology...
    Other relays that need to be closed for ch10 to make it to ab0
    are  "bc01" and "1-wire".  Check out the hardware diagram for
    the 2503 which can be found by going to
    Start>>Programs>>National
    Instruments>>NI-Switch>>Documentation>>NI Switches
    Help, then browse to Devices>>2503>>PXI-2503 Hardware
    Diagram.
    When you use the SFP or program with LabVIEW, you have the option to
    initialize a switch with a certain topology.  For the 2503 1-wire
    48x1 mode, this automatically changes "bc01"," bc02", "bc03", and
    "1-wire" to the correct positions.  Check to make sure that the
    same is done when using the IVI-C driver you are working with.
    Let me know if this doesn't solve the problem, or if you have any more questions.  Best of luck on your application.
    Regards,
    Travis W

  • How to measure different signals with PXI-2501

    Hello everybody,
    i have a an understanding problem.
    I have a PXI-2501 switch and i want to measuere signals with the pxi-4071, so far so good.
    I did some voltage- measurements and everything worked fine. Then i disconnected the power source and measured the temperature with a PT1000 in four-wire-mode ... also worked fine.
    But i want to measure voltage and temperature, in the same VI, so i connected the voltage signal on CH0 and the PT1000 at CH5 (in four wire mode), and now i get problems. The temperature is fluctating. There are a few measurements that seems OK, and then i see some that are far away from the truth.
    The VI consists of a state machine, the measurements are done in different states, of course with the correct scan list for each measurement.
    Any suggestions? Am I doing something completely wrong?
    Thanks
    (and excuse for my english )

    Hi Roman,
    id I understand you right:
    The temperature measurement works fine, if the sensor is directly connected to the 4071, but if connected via the 2501 you see the big deviations?
    Have you measured the the resistance of the Switch-Matrix yet?
    kind regards 
    Heinz

  • How could I route 20 channals via a PXI-2501 to ch0 on a PXI-4472

    I would like to use a PXI-4472 card to scan 20 signals. For this purpose I have a PXI-2501 which can be used to multiplex the 20 signals to, say, ch0 on the PXI-4472. I would like to know how can I scan each channel with a sampling freq of 1000S/s? Is it possible to synchronize the sampling and the switching?

    Ali,
    It will not be possible to hardware time the two boards due to the oversampling of the 4472. There are no hardware passed signals present that would correctly align the switch with the individual sampling of the 4472. As a result, it would be necessary to do this in software...Switch, take readings from the 4472, Switch, etc.
    Regards,
    Chris D
    NI Applications Engineer

  • How to obtain 16 x 64 configurat​ion using PXI-2532 switch

    Hello,
          We have a PXI 1042 chasis with PXI-8106 microcontroller and PXI-2532 switch. With this switch and NI TB-2641 we are able to configure the system as 8 x 64 switch. We would like to configure switch as 16 x 64 matrix . After some research I found out that we might need to use two PXI-2532 switches to acheive this. My question is let us suppose we configure two switches as 8 x 32 matrices then how can one switch access the elements on the other switch (In order to make this 16 x 64)? Is this possible ?What are the available alternatives?
    Thanks,
    kartik

    Hi Kartik,
    We have a really great developer zone article on combining switches, I think you'll find most the information your looking for in there.
    Matrix Switch Expansion Guide
    I also found the following screen shot in the NI switches help.
    It looks like this would be easiest if you had the TB 2642, which would allow you to do column expansion with two 8x64 setups (to make a 16x64).
    Let us know if you have any further questions.
    Thanks
    Scott M.
    Applications Engineer
    National Instruments

  • PXI-2532 switch cannot be read in MAX

    Hey Guys, I have a PXI-1036DC Chassis with a PXI-2532 switch. I am sure I
    have setup the hardware correctly as the switch passes the self test. However
    when I try and create a new virtual device I am not able to pick the PXI-2532
    switch. Any idea why this would be the case? I have tried the 'configure NI
    switches' button and the switch does even appear here. Also tried adding new
    logical names and driver sessions but still have no luck.
    If someone could please help me with this problem it would be greatly
    appreciated.
    Nikini

    Hi Nikini,
    Please continue this thread here.
    Best,
    Adam
    Academic Product Manager
    National Intruments

  • NI Switch Executive error when attempting to add NI PXI-2566 switch to new virtual device.

    I just loaded Switch Executive and am wanted to explore its capabilities. I have a PXI system that I am setting up. Currently I have PXI-2566 cards in slots 8 and 9.
    I was following the NI Switch Executive help documentation "Creating a Virtual Device" and attempted to create a virtual device with the 2566 modules and I got this error;
    Error xBFFA000A occurred.
    Failure loading driver module.
    The driver for the DAQmx switch is not loaded.[DeviceXI1Slot9_ivi]
    Attachments:
    SwitchExecutiveError_01.bmp ‏229 KB
    SwitchExecutiveError_MAX.bmp ‏364 KB

    I had not loaded the "NI-DAQ 7" software that came with the 2566 switch card. I assumed that since MAX showed that I had version 7.2 of DAQmx that I was already up to date.
    I received a new PXI-2532 switch, and when I got a "driver not found" error in Switch Executive when I tried to add the 2532 to a new virtual device, I had second thoughts on running the setup/install from the new discs.
    After running the software install, I was able to add the 2566 switches to a virtual device in Switch Executive. However, the 2532 failed.
    Error xBFFA4B4A occurred.
    DAQmx Error -200181 occurred:
    Channel name specified is not valid for the switch device.
    Device: PXI1Slot10
    Channel Name: r4
    Attachments:
    SwitchExecutiveError_02.bmp ‏35 KB

  • PXI-2501 relay life

    Hi,
    I would like to know the relay life of PXI-2501.
    For PXI-2503 and others, I can find the relay life (electrical and mechanical) in its specification manual, under Dynamic Characteristics. However, I cannot find the relay life for PXI-2501 under its specification manual, under Dynamic Characteristics. Could anyone tell me the relay life of PXI-2501 (for both electrical and mechanical)??
    Thank you & Regards
    Lee

    Itok,
    This is probably the wrong forum for this thread. Please post it here.
    Have a nice day!!!
    LabVIEW | LabWindows/CVI | TestStand
    Certified LabVIEW Architect

  • Control PXI devices via PyVisa?

    Is it possible to control PXI devices via PyVisa in the same way as USB, and GPIB devices?
    Solved!
    Go to Solution.

    Hi k-rhyme,
    It should be possible to do. You can definitely control PXI devices using NI-VISA and since PyVISA is just a Python wrapper, it should be possible. It also depends on the version of VISA that PyVISA is using. I would recommend looking at the NI-VISA User Manual for more info PXI specific functions. 
    Using the NI-VISA Driver Wizard and NI-VISA to Develop a PXI(e)/PCI(e) Driver in Windows
    http://www.ni.com/tutorial/4713/en/
    NI-VISA User Manual
    http://www.ni.com/pdf/manuals/370423a.pdf
    Thanks,
    Frank
    Application Engineer
    National Instruments

  • How can I disable Control+PageUp/Control+PageDown Tab switch?

    How can I disable Control+PageUp/Control+PageDown Tab switch? I have found various addons to provide additional key combinations for this action, but no option to disable that (these key combinations are mapped on my X server to serve as Home/Pos1 and End, and I would like to have that functionality within firefox as well).

    Hi Guigs2, I already tried that (and a whole bunch of other key costumization/mapping plugins), and it does not help. It helps to add other shotcuts for the tab switching, but does not give an option to eliminate the existing key combination. Thank you anyways.

  • How could I control PXI-2567 from my C/C++ program?

    I need to control the PXI-2567 relay driver from inside my C/C++ programs.
    How could I do this, is there a dl, com, or something?
    Please tell me if there are any integration documents or user manuals for using whichever method if any.

    Hi BSA,
           You'll want to utilize the NI Switch Driver, which will install both example programs and the NI Switches Help.   There is a Function Reference Section in the NI Switches Help (which is installed with the NI Switch driver, and as well can be found on our website).  Example programs will be installed on your computer under Start»All Programs»National Instruments»NI-SWITCH»Examples»C .  You can also program your switch with2567 with DAQmx.  The differences between the two drivers can be found in this KB.  As well, additional resources for your switch are discussed here. 
    aNItaB
    Applications Engineer
    National Instruments
    Digital Multimeters

  • PXI-2800 Switch Block Register Level Programming

    I have a PXI-2800 with 2815A and B wand was wondering if there are RLP specs that I can drive with the Linux NIMHDDK?
    I have been successful with the Switch RPL, and was thinking this would be an extension.  That does not appear to be the case, this card is a bit different.
    Thanks

    I'm a few steps down the learning curve from plosio so bear with me here. I'm trying to control a pair of PCI 6259 multifunction cards which live in a mac (G5, OS X 10.4.4) using the NI-VISA package and xcode. I have run the driver wizard, and put the inf file it created where the inf file said it wanted to go, and modified the find-resource example code so that the PCI macros get defined. Still the viFindRsrc function can't find my cards. I know they are there because mac's system profiler can see them. one thing that makes me nervous is that inf file lists WindowsNT for the operating system. Another thing that makes me nervous is that i was under the impression that the wizard was also supposed to make new VISA readable drivers (.kext files if i am not mistaken) for each card, and I don't see any new kernel extensions when I search the hard drive. Thanks in advance for any help.

  • What is the best method for controlling a data switch of 20x20 ports, with local and remote requests?

    I'm using booleon control boxes for 'source' ports - to be connected to 'customers' ports. Am not sure of choosing between arrays, clusters, case, etc.

    Thanks, however, I simply meant my boolean 'ports' to mean a 'yes/no' control box of a 'data source', which, when selected, would signify a 'source' that could then be connected to a 'customer' port or 'receiving box'. Perhaps instead of port, I should have said input/output box.
    My main question is simply about a data switch matrix of 20 inputs and 20 outputs. Should I attempt to manage the switching of data lines via cases, for loops, sequence, or what! I believe I will need to set up arrays, but controlling the matrix is ???. Thanks.

  • PXI-2570 switch capacitance

    I am generating a 5V peak, 400 kHz signal from an ARB (NI 5401) and inputting it into an amplfier with a gain of about 2, current draw around 400mA and an input voltage of 13V. I am taking the output of that amplifier and going straight into the PXI-2570 relay switches. From NO-1 and NO-2 I run the cable directly to DUT and get a ~2.5V peak-peak signal in which i should be getting a 10V peak-peak signal. If I take the output of the amplifier and without putting it through the relays I run it directly to the DUT i get the 10V peak-peak.
    My Question is why when i generate the 5V peak, 400 kHz signal and run it through the PXI-2570 and attach to the DUT do I see the large decrease in peak to peak voltage? Is there some internal capacitance of the relays that would be causing such a drop? The spec for PXI-2570 seems to be able to handle a 400 kHz signal?

    Murphyky,
    There’s one more test I’d like you to do with your setup.  Connect the signal from your amplifier, through the switch (modeled as 1 Ohm resistors), and then to a large load (not connected to your DUT).  If the signal shows up without attenuation, then we can confirm that the switch itself is working correctly. 
    Switches have a resistance listed in the specifications manual.    It is small, but it should still be considered in your design.  You’ve basically built a voltage divider with your circuit.
    A colleague of mine simulated your DUT in our Multisim circuit design software to see if we could determine the exact source of the signal attenuation in your DUT.  What sort of load are the two transformers driving?  We found that we could get a wide range of voltages across the DUT just by altering the load attached to the transformers.  See the images I’ve attached for reference:
    With the transformers driving 2 Megaohm loads:
    With one load reduced to 100 Ohms:
    Do you know the specifications of the amplifier that you're using?  Is it possible that it can't source the power required to drive the DUT.
    Let me know how the test with the switch goes.  If it passes, there is some other limitation in the circuit that is causing the signal attenuation.
    Good luck with everything.
    Regards,
    Jared R.
    Precision DC Product Support Engineer
    National Instruments

  • Motion control: PXI 7350 controller and UMI 7774 to interface with third-party driver UDK5114NW2

    Dear community,
    This is about Motion control in Labview: I try to control a step motor by using a PXI 7350 controller and UMI 7774 to interface with  third-party driver UDK5114NW2. The problem is 5 Disable LEDS on UMI 7774 board always lit even when I check "enable" on "Motion I/O setting" in configuration of PXI 7350 motion controller. Furthermore, when I start to control step motor, it is not working and I found disable LED on UMI board still lit. I don't know how to solve this problem. Can someone help me to figure out? Thank you in advance!
    Hau Nguyen.

    Dear Community,
    I said wrong, 4 disable LEDS on UMI 7774 Board instead of 5 as my previous post. Why nobody help me to solve this problem. I can not turn off disable LEDs on UMI 7774 Board so I can not start the strp motor. Please help me!
    Hau Nguyen. 

Maybe you are looking for

  • Data required in file

    Hi ALL, I need to take the table data of a particular schema in a file . The file should have the column names and the data which is comma seperated. like below data.....but how do i get the column names as coma seperated. Please bear in mind that ea

  • DVI problems

    Hi, I have this DVI monitor which was able to work when using DVI interface However i do not know what happen. I had a power failure in my home, and the computer was shut off. When the power was back, I turn on my computer, there was an error message

  • JAVA OR/AND FLASH

    Hi, After having seen a number of Flash GUI applications in the market which are attractive and producing high-impact experiences to customers, some questions popup in my mind. For instance, 1. How is the ActionScript (scripting language used in HFla

  • Setting message properties

              I'm trying to set a message property for my message object.           The name of the property is "Content-Type".           When I try the setObjectProperty method I get an exception (MessageFormatException).           When I try the setStr

  • I bought a mac air yesterday and it came with lion. Do i have to purchase the mountain lion?, I bougth a mac air yesterday and it came with lion. Do i have to purchase the mountain lion?

    I bought a mac air yesterday and it came with lion. Do i have to purchase the mountain lion?, I bougth a mac air yesterday and it came with lion. Do i have to purchase the mountain lion?