NI PXI-5421 PFI Port Output Usage

The NI-5421 Specs Manual (http://www.ni.com/pdf/manuals/371477d.pdf) says that the PFI ports can be used to send a trigger externally.  I haven't been able to find a way to do this.  I want to test the potential of external triggering with my device, but for the sake of convenience I would prefer to be able to use one of the PFI ports to send a trigger to the other PFI port, for simplicity of testing (no need for additional pulse generation).
Any advice is appreciated.
Thanks,
Billy Maier

You can use the niFgen Export Signal VI to route triggers on your device to the PFI line.
http://zone.ni.com/reference/en-XX/help/370524P-01/nifgenlv/nifgen_export_signal/
Regards,
Jason L.
Product Support Engineer
National Instruments

Similar Messages

  • PXI-5421, C++, Creating output signal, DAQmxWriteAnalogF64 fails

    I want to create a simple sine wave output on a PXI-5421 card. I have looked at the sample projects for DAQmx, and based an application on them.
    The application falls over at the call to DAQmxWriteAnalogF64 using the following parameters:
    lReturn = DAQmxWriteAnalogF64(
    m_hTask,
    1000,
    0,
    10.0,
    DAQmx_Val_GroupByChannel,
    data,
    &lWritten,
    NULL
    What am I doing wrong?
    Below is the output of the application, and the code.
    ***** START OF OUTPUT *****
    DAQmxResetDevice -> SUCCESS
    DAQmxCreateTask -> SUCCESS
    DAQmxCreateAOVoltageChan -> SUCCESS
    DAQmxCfgSampClkTiming -> SUCCESS
    Samples per channel written: 0
    Source terminal to be routed could not be found on the device.
    Make sure the terminal name is valid for the specified device. Refer to Measurement & Automation Explorer for valid terminal names.
    Device: PXI1Slot3
    Property: DAQmx_SampClk_Src
    Source Terminal:
    Task Name: _unnamedTask<0>
    Status Code: -200040
    DAQmxWriteAnalogF64 -> -200040
    ***** END OF OUTPUT *****
    ***** START OF APPLICATION *****
    void Startup( void )
    // get amplitude
    double dblAmplitude = 5; // 5 volts
    // generate wave data
    float64 data[1000];
    for( int i=0; i<1000; i++ )
    data[i] = dblAmplitude * sin( (double)i * 2.0 * PI/1000.0 );
    // device, channel and terminal names
    char szDeviceName[128];
    strcpy(szDeviceName,"PXI1Slot3"); // PXI1Slot3
    char szChannel[128];
    sprintf(szChannel,"%s/ao0",szChannelName); // PXI1Slot3/ao0
    char szTerminal[128];
    strcpy(szTerminal,"Onboard Clock"); // Onboard Clock
    // reset device
    long lReturn = DAQmxResetDevice(szDeviceName);
    _AddToLog("DAQmxResetDevice",lReturn);
    // create task
    lReturn = DAQmxCreateTask("",&m_hTask);
    _AddToLog("DAQmxCreateTask",lReturn);
    // if that worked...
    if(lReturn==0)
    // create output voltage channel
    lReturn = DAQmxCreateAOVoltageChan(
    m_hTask,
    szChannel,
    -1 * dblAmplitude,
    dblAmplitude,
    DAQmx_Val_Volts,
    NULL
    _AddToLog("DAQmxCreateAOVoltageChan",lReturn);
    // if that worked...
    if(lReturn==0)
    // define sampling
    lReturn = DAQmxCfgSampClkTiming(
    m_hTask,
    szTerminal,
    10*1000,
    DAQmx_Val_Rising,
    DAQmx_Val_ContSamps,
    1000
    _AddToLog("DAQmxCfgSampClkTiming",lReturn);
    // if that worked...
    if(lReturn==0)
    // write to buffer
    long lWritten = 0;
    lReturn = DAQmxWriteAnalogF64(
    m_hTask,
    1000,
    0,
    10.0,
    DAQmx_Val_GroupByChannel,
    data,
    &lWritten,
    NULL
    CString strLine;
    strLine.Format("Samples per channel written: %d",lWritten);
    _AddToLog(strLine);
    _AddToLog("DAQmxWriteAnalogF64",lReturn);
    // if that worked...
    if(lReturn==0)
    // start task
    lReturn = DAQmxStartTask(m_hTask);
    _AddToLog("DAQmxStartTask",lReturn);
    else
    // clean up
    _CleanUp();
    void _CleanUp( void )
    // stop task
    long lReturn = DAQmxStopTask(m_hTask);
    _AddToLog("DAQmxStopTask",lReturn);
    // clear task
    lReturn = DAQmxClearTask(m_hTask);
    _AddToLog("DAQmxClearTask",lReturn);
    ***** END OF APPLICATION *****

    Broccoli wrote:
    I want to create a simple sine wave output on a PXI-5421 card. I have looked at the sample projects for DAQmx, and based an application on them.
    The application falls over at the call to DAQmxWriteAnalogF64 using the following parameters:
    lReturn = DAQmxWriteAnalogF64(
    m_hTask,
    1000,
    0,
    10.0,
    DAQmx_Val_GroupByChannel,
    data,
    &lWritten,
    NULL
    What am I doing wrong?
    Below is the output of the application, and the code.
    ***** START OF OUTPUT *****
    DAQmxResetDevice -> SUCCESS
    DAQmxCreateTask -> SUCCESS
    DAQmxCreateAOVoltageChan -> SUCCESS
    DAQmxCfgSampClkTiming -> SUCCESS
    Samples per channel written: 0
    Source terminal to be routed could not be found on the device.
    Make sure the terminal name is valid for the specified device. Refer to Measurement & Automation Explorer for valid terminal names.
    Device: PXI1Slot3
    Property: DAQmx_SampClk_Src
    Source Terminal:
    Task Name: _unnamedTask<0>
    Status Code: -200040
    DAQmxWriteAnalogF64 -> -200040
    ***** END OF OUTPUT *****
    ***** START OF APPLICATION *****
    void Startup( void )
    // get amplitude
    double dblAmplitude = 5; // 5 volts
    // generate wave data
    float64 data[1000];
    for( int i=0; i<1000; i++ )
    data[i] = dblAmplitude * sin( (double)i * 2.0 * PI/1000.0 );
    // device, channel and terminal names
    char szDeviceName[128];
    strcpy(szDeviceName,"PXI1Slot3"); // PXI1Slot3
    char szChannel[128];
    sprintf(szChannel,"%s/ao0",szChannelName); // PXI1Slot3/ao0
    char szTerminal[128];
    strcpy(szTerminal,"Onboard Clock"); // Onboard Clock
    // reset device
    long lReturn = DAQmxResetDevice(szDeviceName);
    _AddToLog("DAQmxResetDevice",lReturn);
    // create task
    lReturn = DAQmxCreateTask("",&m_hTask);
    _AddToLog("DAQmxCreateTask",lReturn);
    // if that worked...
    if(lReturn==0)
    // create output voltage channel
    lReturn = DAQmxCreateAOVoltageChan(
    m_hTask,
    szChannel,
    -1 * dblAmplitude,
    dblAmplitude,
    DAQmx_Val_Volts,
    NULL
    _AddToLog("DAQmxCreateAOVoltageChan",lReturn);
    // if that worked...
    if(lReturn==0)
    // define sampling
    lReturn = DAQmxCfgSampClkTiming(
    m_hTask,
    szTerminal,
    10*1000,
    DAQmx_Val_Rising,
    DAQmx_Val_ContSamps,
    1000
    _AddToLog("DAQmxCfgSampClkTiming",lReturn);
    // if that worked...
    if(lReturn==0)
    // write to buffer
    long lWritten = 0;
    lReturn = DAQmxWriteAnalogF64(
    m_hTask,
    1000,
    0,
    10.0,
    DAQmx_Val_GroupByChannel,
    data,
    &lWritten,
    NULL
    CString strLine;
    strLine.Format("Samples per channel written: %d",lWritten);
    _AddToLog(strLine);
    _AddToLog("DAQmxWriteAnalogF64",lReturn);
    // if that worked...
    if(lReturn==0)
    // start task
    lReturn = DAQmxStartTask(m_hTask);
    _AddToLog("DAQmxStartTask",lReturn);
    else
    // clean up
    _CleanUp();
    void _CleanUp( void )
    // stop task
    long lReturn = DAQmxStopTask(m_hTask);
    _AddToLog("DAQmxStopTask",lReturn);
    // clear task
    lReturn = DAQmxClearTask(m_hTask);
    _AddToLog("DAQmxClearTask",lReturn);
    ***** END OF APPLICATION *****
    Hello Broccoli,
    NI-DAQmx is not a supported API for the NI-5421 AWG. For all NI Signal Generators, please use the NI-FGEN API, which shipped with your instrument. You may also download NI-FGEN (2.2.1 as of today) from
    http://digital.ni.com/softlib.nsf/954feaeea92d90918625674b00658b83/8b1f32b4b8f7148586256efd006075a9?OpenDocument
    You should find helpful C examples bundled with NI-FGEN that will make using the NI-5421's full capabilities very easy.
    Marcos Kirsch
    Signal Generators Software Engineer
    Marcos Kirsch
    Principal Software Engineer
    Core Modular Instruments Software
    National Instruments

  • Im using a pci-6221 daq-card.I want to know the difference(use)of a line output and a port output.

    Im using a pci-6221 daq-card.I want to know the difference(use)of a line output and a port output.

    Hello Hellraiser24,
    This question has actually been discussed in another thread here:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=95895&requireLogin=False
    I hope this helps,
    E.Lee
    Eric
    DE For Life!

  • SIngle reference for PXI 6509 Input and Output

    Hi ,
    I am using 96 channel PXI 6509 as a DIO, In this 96 channels i need to assign 1st port for input, 2nd port for output  and 4th and 5th for input so on. its is not a big deal using labview but labview creates seperate reference( Task in) for input and ouput.
    I need to have a single reference for both input and output ( like we have in NI DCpower for SMU)
    Can any one suggest me how i can achive this?
    Thanks and best regards,

    I would accomplish this with an Action Engine that handles all of your tasks.  Alternatively, make a class that handles all of the tasks.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • 6120 Fixed Port License Usage

    I was looking around in the 6120 via cmd line and noticed that the "show license usage" output shows that there is an 8 port license but than none are in use. If that is the case do what does licensing the remaining 12 ports do? What happens if you use two of those for northbound Ethernet uplinks?
    show license usage
    Feature                      Ins  Lic   Status Expiry Date Comments
                                     Count
    FM_SERVER_PKG                 No    -   Unused             -
    ENTERPRISE_PKG                No    -   Unused             -
    FC_FEATURES_PKG               No    -   Unused             -
    ETH_PORT_ACTIVATION_PKG       No    8   Unused Never       -
    ETH_MODULE_ACTIVATION_PKG     No    0   Unused             -

    Hi..  I have a similar output in my lab setup. In my lab setup, i did not purchase any license and i can use port 19 and 20, in fact all of the ports. It looks like the license is base on trust and not really enforced.  Rgds Eng Wee

  • How to change audio port output to input port on mac os x 10.9.2 to connect electric guitar on macbook pro for garageband

    How to change audio port from output to input port so that i can connect my electric guitar to play along with garageband. I couldn't the option to change it in my system preferences of sound as my mac os x is 10.9.2. So please help me!!!!!!!!!!!! I want to play electric guitar with my garageband so badly!!! :O
    Mac os x 10.9.2. ; Garageband 10.0.2

    There is no audio line input on your Mac, get a USB interface, get one that is specified for guitars.

  • Minidisplay port output logging

    Is there a way to monitor output activity of a minidisplay port? Some sort of a logger? thanks.

    Thanks for your swift reply .
    The make/model of television is Grundig GU19WDVDT. I have tried the displays in system preferences and it shows a list of resolutions including 1080i, 720i and others but when selecting these it does not display any image on the TV screen. The only option that displays an image is 640 x 480 but this does not look good as it is not very clear at all unlike in bootcamp where it can display 1080i perfectly. The overscan option does not help with supporting other resolutions.
    The only thing I can think of is the output is wrong for my tv when using OSX but surely it should be similar to Windows 7 on the same hardware.

  • My PXI-4132 has stopped outputting voltage

    I have an NI PXIe-1073 chassis with an NI PXI-4132 card installed.
    I had the system turned off over the weekend & started it up to do some linearity measurements on an ADC  yesterday. As usual, I was going to do a quick check of my setup by using the NI DC-power soft front panel to output some dc voltages & check that the data converter was giving ball park correct codes before I started a vi to sweep the input voltage & collect real data.
    I started MAX(measurement & automation explorer) & it told me that my card passed self test. Then I ran the test panel & tried to force 4V at the DUT, but my scope showed 75mV.
    I removed all the cabling & measured again at the front connector. All the lights on the front were green & the scope was set to 1MΩ input termination, but again I got no voltage on any pin of the 4132. I was expecting it to come out on “HI”.  Then I checked “Sense HI” & then all of the pins, but no voltage. The scope ground is connected through a banana lead to the chassis ground on the front of the card. I measured my HP 1.8V power supply & got 1.8V on the scope.
    I rebooted the chassis & the pc 3 times each , with the same result. What  might I be doing wrong? Is there a vi I could run to reset everyting? I have reset the card with MAX.
    I have had this unit for 3 years & I don't think it has ever done this before.

    Hello Bob,
    You can try to self-calibrate your device (In MAX, right click the device and select Self-Calibrate). If there is something wrong with the hardware then the calibration is going to fail. Please document the result if there is any error. Please remember to disconnect all the cabling previous to the calibration.
    What is the value read in the front panel for voltage and current after you enable the output? Are you working with the Local or Sense measurement mode? Please connect your oscilloscope to terminals C and F (refer to picture 7 on the link below) and configure the test panel to Local Sense, what is the value read on your oscilloscope?
    http://www.ni.com/pdf/manuals/375128b.pdf
    Regards,
    MCOTO

  • Parallel Port Output

    ...doing a school project where i connect the parallel port to a bread bord which connencts to motors etc...
    i understand u use javax.comm.*; classes to access the parallel port.
    rite now i have like this...
    import javax.comm.*;
    import java.io.*;
    public class carPort {
      ParallelPort port;
      byte[] outputByte = new byte[8];
      public carPort() {
        port.setOutputBufferSize(8);
      public OutputStream getOutputStream() {
        try {
          return port.getOutputStream();
        } catch(Exception e) {
          return null;
      public void outputBit(byte bit, byte position) {
        try {
          outputByte[position] = bit;
          port.getOutputStream().write(outputByte);
        } catch(Exception e) { }
    }lets say outputByte has these value inside the array
    outputByte[0] = 1
    outputByte[1] = 0
    outputByte[2] = 1
    outputByte[3] = 0
    outputByte[4] = 1
    outputByte[5] = 0
    outputByte[6] = 1
    outputByte[7] = 0
    and i call the outputBit method...
    and this executes
    port.getOutputStream().write(outputByte);
    will the result be.
    PIN 1 = ON
    PIN 2 = OFF
    PIN 3 = ON
    PIN 4 = OFF
    PIN 5 = ON
    PIN 6 = OFF
    PIN 7 = ON
    PIN 8 = OFF
    (ps. i have an thread class that provides constant output)
    i know i know i know...i should be using c++....
    if the above isnt the output wut can i do to make that?
    just i case u dont understand wut im trying to do lolz. im trying to output indiviudal raw bits through the parallel ports 8 pins.
    thx =)

    wut i want to do is to turn leds/motors on and off through the parallel port. to do that, pin 1 would like be the right motor. and pin 2 the left motor, and like pin 3 for an led...etc...if pin 1 is on than the right motor will go if its 0 then the motor wont go....
    in other words i want the program to output raw bits not bytes to the individual pins of the parallel port.

  • PXI-6723 PFI Question

    Is there any way the 10 PFIs on the PXI-6723 can be used as general-purpose DIO lines in LV 8.2? 

    No. There's to my knowledge no possibility to use the triggerlines as input in you're LV application. Whether or not something is possible in a LV version depends on the driver that the device uses and whether or not the driver is supported in a LV version. All can be derived from documentation.
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

  • PXI 4130 Power SMU Output

    Hi, I am trying to get my head around how the PXI 4130 works. I have a solenoid valve that I am trying to actuate with the utility channel of the 4130. It says that the utility channel can source 6V and 1A. The solenoid valve requires 6V, but the coil in the valve says it is a 12 Watt rated coil. Since amps = watt/voltage, the solenoid valve should draw 2A (12/6). But does that mean that the 4130 will not let out 2A and will only let out 1A? If I am supplying 6V will it not automatically just output 2A by the law V = IR??

    Your understanding is correct.  The 6V Utility Channel (Channel 0) can only output 1A maximum on the PXI-4130 SMU.
    If your load tries to draw more than the current limit (user programmable up to 1A on Channel 0), then the SMU output will go into "current compliance" which forces the SMU into constant current mode instead of constant voltage mode - as a result, your voltage will drop accordingly until V=IR.  This behavior is often used to protect the device under test connected to the SMU.  ...I might start by testing out the solenoid and seeing if it will actuate at only 1A, but the best solution would be to use an output capable of 2A like Channel 1 on the PXI-4130. 
    Also, please take note that heavily inductive loads can occasionally cause issues with the control loops on power supplies on SMUs:
    http://zone.ni.com/reference/en-XX/help/370736F-01/ni_dc_power_supplies_help/4130_source_stability/
    NI has recently developed some cool technology on newer SMUs that helps manage control loops under reactive loads:
    http://www.ni.com/white-paper/13093/en/
    For both points above, I might recommend to monitor what happens to the 4130 output as you actuate the solenoid the first time - either using the on-board voltage and current measurements of the 4130 (can read at up to 3kHz) or with an external scope on the voltage.

  • DVI out port output @ 1920x1080?

    I have a 15" macbook pro (2nd gen i believe, it has the full aluminum casing and touchpad supports gestures). I was wondering if the DVI Out supports up to 1920x1080 resolution (without any scaling, ect.)? I was looking to buy a 1920x1080 native LCD monitor and want to make sure the output can handle that.
    Thanks!

    My old MBP 17" from 2006 output via DVI to 1920x1200 - specifically a DELL 2408WFP - without incident or difficulty. Looks beautiful too. Much less eyestrain when using at a desk.

  • Which USB port output power provides Satellite M70-159

    Hi!
    I have a Satellite M70-159 and I'm looking to buy an external HDD 2.5".
    I would like to know if the power provided from my notebook's USB port is 500mA or 1000mA because the external HDD I want to buy needs 1000mA to work.
    Eitherwise what can I do to provide to the external HDD the power needed to work?
    Thank you

    Hi
    In my knowledge the notebooks USB ports provides the standard power of 500mA.
    Generally if a external USB HDD needs more as 500mA then either the special, external power supply cable is delivered together with the 2.5 HDD or the HDD is delivered together with an double USB cable.
    By double USB cable I mean the cable which supports 2 USB jacks. In such case you can connect the HDD to two USB ports.
    Check this pic:
    [Double USB cable|http://www.n-c.fr/webshopncrevendeurs/catalog/images/Double_Cable_USB.jpg]
    Best regards

  • How to turn the headphone port output into input(MBA)

    ....

    use a HEADSET jack for mic input.
    however professional microphone use should be going thru USB, not the headset jack.

  • How Do I Configure the PFI Lines as input in PXI 6713 module

    Hi,
    I have PXI 6713 module in my PXI 1044 chassis. I have configured PXI 6713 module to geneate certain analogue signals to my board.
    Board inturn process this analogue signal and responds back the status signals through a status register on the board. In my application,the status bits in status register of  the board are mapped to the PFI 0:3 bits on PXI 6713 module ( pins 11,10 , 42 and 43).
    My query is how do i configue the PFI lines as input in PXI 6713 module to read these status bits ??
    May be below explanation could give you little bit more information w.r.to my query.
    When i use NI USB - 6008    module to read the same bits , since this device has 12 digital I/O lines, i could able to read the status bits in to the last 4 digital lines by configuring the those digital lines as input.
    In PXI 6713  module i have only 8 digital lines. These 8 digital lines i have used to send the digital signals to the board. I am left with no digital I/O lines. Hence i couldn't use these digital lines. I am left with only one option to use. Theya re PFI lines. Moreover the status bits in the pin out of board are mapped such that the bits can be read through the PFI lines.
    I am wondering do we have any example code to use  inorder to read these status bits on the board using the PFI lines.
    Please let me know if you need additional information to help me out.
    Thanks.
    Solved!
    Go to Solution.

    Hello There,
    When using the PFI pin as an input, you can individually configure each PFI for edge or level detection and for polarity selection.  This PFI information can be referenced in the DAQ Analog Output Series Manual on page 6-1 (http://www.ni.com/pdf/manuals/370735e.pdf).  Unfortunately, the PXI-6713 PFI lines are only capable of timing input and output signal for AI, AO, or counter/timer functions.  The option of creating static DI from the PFI lines is not available for the PXI-6713. However, some cards have this capability.  Newer National Instruments products with PFI lines have the option of setting PFI lines as:
    Static Digital Input 
    Static Digital Output
    Timing Input Signal for AI, AO, DI, DO, or counter/timer functions 
    Timing Output Signal from AI, AO, DI, DO, or counter/timer functions
    (http://digital.ni.com/public.nsf/allkb/14F20D79C649F8CD86256FBE005C2BC4)
    When set as static DIO, the PFI lines are assigned to a different port (eg. PFI0-7 is Port1).  More details about this can be referenced at:
    http://digital.ni.com/public.nsf/allkb/DA2D3CD0B8E8EE2A8625752F007596E1
    http://digital.ni.com/public.nsf/allkb/862567530005F09E8625677800577C27
    Regards,
    Roman Sandoval | National Instruments | RF Systems Engineer

Maybe you are looking for

  • Retina MBP Camera Issue?

    I purchased a 13" Macbook Pro with Retina Display around Christmas time in 2012, and right when I opened it up I noticed the camera was pretty bad. I searched online and found that others were having similar issues or it could've just been the lighti

  • Mouse pointer is not working correctly

    I have a MacBook Pro and the pointer is not working correctly.  It does not work smoothly and it is hard to get it to go where I need it to go.

  • Can't download Adobe Download Assistant

    I can't download the adobe download assistant on my windows PC.  I keep getting the error message " "application could not be installed because the installer file is damaged." I have tried using a differrent browser to no avail.

  • Employment Customer Specific & Employment Status Issue!!!

    Dear Experts,               More than 30 Employee's Customer Specific & Employment Status in Infotype 0000 is Wrongly Displaying as Customer Specific = M,  Employment Status = I . Instead of Customer Specific = Blank, Employment Status = Active, plea

  • Why do i need to keep entering my icloud password

    I moved from Mobile Me to iCloud and my wife is frustrated that she keeps getting messages to enter her iCloud password on her iphone. Any ideas how to change the settings so she stays logged in?