I want to obtain the update signal out. It is said in PXI 6115 (my device) manual that I can output it from PFI5. I use LabWindows.
Select_Signal (iDeviceNumber, ND_PFI_5,ND_OUT_UPDATE,ND_HIGH_TO_LOW); does not work.
I am giving an external update from PFI3 which generates my simple waveform, but I cant not obtain update signal from PFI5. The reason to use use external update is just to see the update signal from PFI5 and compare it with the known update signal. In actual case I would like to set the rate with internal clock and obtain the update signal from PFI5.
Actually my PFI5 pin works, I can give external update from PFI5. Thanks.
My simple code is here:
#include
#include
#include
#include
#include "SingleWFM_OP.h"
double dVoltHorzArray[4] = {-2,0,2,0};
short uBinHorzArray[4] = {0};
int iDeviceNumber = 1;
int iChan = 0;
short uCount = 4;
double dGain = 1;
int iGroup = 1;
int iOpClear = 0;
int iStatus;
int iNumChans = 1;
short iChanVect[1] = {0};
short uIterations = 0;
double dRate = 0.0;
int main (int argc, char *argv[])
{
if (InitCVIRTE (0, argv, 0) == 0)
return -1; /* out of memory */
iStatus = Select_Signal (iDeviceNumber, ND_OUT_UPDATE, ND_PFI_3,ND_HIGH_TO_LOW);
// The only problematic line, why it does not work?
iStatus = Select_Signal (iDeviceNumber, ND_PFI_5,ND_OUT_UPDATE,ND_HIGH_TO_LOW);
iStatus = WFM_Scale (iDeviceNumber, iChan, uCount, dGain, dVoltHorzArray, uBinHorzArray);
iStatus = WFM_Op (iDeviceNumber, iNumChans, iChanVect, uBinHorzArray, uCount, uIterations, dRate);
printf("Press any key to terminate.....");
while( !KeyHit() ) ;
iStatus = WFM_Group_Control(iDeviceNumber, iGroup, iOpClear);
return 0;
}
also I tried the following, tried to make a trick but did not work.
iStatus = Select_Signal (iDeviceNumber, ND_OUT_UPDATE, ND_PFI_3,ND_HIGH_TO_LOW);
iStatus = Select_Signal (iDeviceNumber, ND_RTSI_0, ND_OUT_UPDATE,ND_HIGH_TO_LOW);
iStatus = Select_Signal (iDeviceNumber, ND_IN_CONVERT, ND_RTSI_0,ND_HIGH_TO_LOW);
iStatus = Select_Signal (iDeviceNumber, ND_PFI_2, ND_IN_CONVERT,ND_HIGH_TO_LOW);