LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Obtaining Update signal as an output

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);
0 Kudos
Message 1 of 3
(3,088 Views)
Gunay,

It appears that you are programming this operation correctly. How are you attempting to monitor the Update signal? The pulse-width of the Update signal is only 50-75 ns. You may want to connect this signal to the Source of one of the device's counters and perform an Event Counting operation to verify that it is functioning correctly.

Spencer S.
0 Kudos
Message 2 of 3
(3,088 Views)
Thanks Spencer,

Although my oscilloscope says 2 GSa/s, it was in auto mode and was sampling at much lower frequency and I was not able to the pulses. They were there.
Gunay
0 Kudos
Message 3 of 3
(3,088 Views)