Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

PXI-1102B ansi C programming

Hi,

We just bought a PXI system with a NI-PXI-1050 chassis. It contains 1 PXI-6704 AO, 1 PXI-6221 AI and an attched SCXI chassis containing 2 SCXI-1102B. Our linux system communicated with the PXI-1050 chassis via a MXI-4 module. We installed the NIDAQmx driver in our Linux computer and we were able to scan the PXI-6221 AI board using the example code in /usr/local/natinst/nidaqmx/examples/ansi_c/AnalogIn/MeasureVoltage/ConAcq-IntClk. However, our goal is to scan the signal through the SCXI-1102B via the PXI-6221 AI. But we were not able to find any example code about how to program the SCXI-1102B so that it will route its MUX output into the PXI-6221 input for data scanning. Could you send us an ansi C example on how to to the following:

    -  how to set the Gain and Filter options on the SCXI-1102B using ansi C programming

    -  how to route the output of the SCXI-1102B to the input of PXI-6221 using ansi C programming

    -  how to set the PXI-6221 to scan the signal from the SCXI-1102B

We are expecting to scan the these analog input at 1000Hz

We need a solution very urgent, because our customer is waiting for the answer to make the decision on continue using NI-PXI IO or not

 

 My new email address is michael.lam@horiba.com. I tried to update it in my profile, but it failed every time. Could you update it for me too. Thank you very much for your help.

 

Michael

0 Kudos
Message 1 of 2
(2,574 Views)
Hi Michael,

I assume you're using DAQmx 8.0. Have you set up your SCXI chassis by using nidaqmxconfig? If not, there's a great DevZone tutorial here which will help you get your SCXI chassis configured and set up in your system. This KB refers to the same process and may also be of assistance. When you setup the SCXI chassis in the nidaqmxconfig, it configures it so that the modules will route its MUX to the DAQ device you specify. At that point, you should be able to refer to the channels in your SCXI module from within your DAQ examples just like when you used the example with the 6221. Now with regards to setting the Gain options on the SCXI-1102B, the gain is automatically adjusted when you set the limits. This is descibed in the SCXI-1102 Manual on page 26 (3-1). For urgent support, I'd recommend calling into phone support at 1-866-ASK-MYNI. I hope this helps!
0 Kudos
Message 2 of 2
(2,553 Views)