ni-6120 w/CVI, If I config hardware analog trigger from analog channel 0(Gain is set as 1),
iStatus = Configure_HW_Analog_Trigger(iDevice[0], ND_ON, lLowValue,lHighValue, ND_ABOVE_HIGH_LEVEL, 0);
/*...*/
iStatus = Select_Signal(iDevice[0], ND_IN_STOP_TRIGGER, ND_PFI_0,ND_LOW_TO_HIGH);
It works fine for me. When I want to config analog trigger from PFI0, I changed the parameters for Configure_HW_Analog_Trigger as following:
iStatus = Configure_HW_Analog_Trigger(iDevice[0], ND_ON, lLowValue,lHighValue, ND_ABOVE_HIGH_LEVEL, ND_PFI_0);
It does not trigger(the analog signal on channel 0 before is connected to PFI0).
What's the problem here? A bug?
I am also having problems in configuring the range for 6120 boa
rd. The manual listed that I could choose input from 200mv to 42volts with proper gain and range combinations. I tried set range with 10Volts and with different gains, I can get all range below 10V working, but when comes to input above 10volts, how can I set up the range? I used
//AI_Configure (deviceNumber, chan, inputMode, inputRange, polarity, driveAIS)
iStatus=AI_Configure (iDevice[i], j, 0, 20,0, 0);
but after this the range is still on 10volts. I also tried with inputRange=50, not working either.
Thanks for your help. i