I'm working on an ATE project with CVI 7.1. When I want to do "voltage peak-peak value "measurement the DPO(TDS3054B) is always in trigger "NORMAL" mode waiting for being triggered.But I don't like that I just need it in "Auto(Untriggered Roll " mode and then I can get the right data. Anybody can help me?
In fact,the problem is I can't find the function in the Driver(for TDS 3000 series DPO with LabWindows) to realize the setting.
The codes are as follows:
-------------------------------------
void ConnectToDPO(void)
{
ViSession DPOHandle;
ViReal64 Vpp;
ViUInt32 pHandle;
pHandle=(ViUInt32)malloc(sizeof(ViUInt32));
pHandle=GetActivePanel();
Vpp=0;
//(1) Initiate
//tkds30xx_init ("GPIB0::1::INSTR", VI_TRUE, VI_TRUE, &DPOHandle);
tkds30xx_InitWithOptions ("GPIB::1::INSTR", VI_TRUE, VI_TRUE,
"Simulate=0,RangeCheck=1,QueryInstrStatus=1,Cache=1",&DPOHandle);
//tkds30xx_ConfigureAcquisitionType (DPOHandle, TKDS30XX_VAL_NORMAL);
//Delay(2);
//(2) Config Channel
tkds30xx_ConfigureChannel (DPOHandle, TKDS30XX_VAL_CH_1, 100, 0,
TKDS30XX_VAL_AC, 1.0, VI_TRUE);
//tkds30xx_ConfigureTrigger (DPOHandle, TKDS30XX_VAL_EDGE_TRIGGER, 0.0);
//tkds30xx_ConfigureTriggerModifier (DPOHandle, TKDS30XX_VAL_NO_TRIGGER_MOD);
//(3) Init Acquisition
//Delay(2);
MessagePopup("Information"," Initiate finished!");
tkds30xx_AutoSetup (DPOHandle);
MessagePopup("Information"," AutoSetup finished!");
//goto CLOSE;
//Delay(2);
tkds30xx_InitiateAcquisition (DPOHandle);
//tkds30xx_ConfigureInitiateContinuous (DPOHandle, VI_TRUE);
//tkds30xx_ForceTrigger (DPOHandle);
//MessagePopup("Information"," ForceTrigger finished!");
//Delay(2);
//(4) Fetch WaveForm Measurement
MessagePopup("Information"," To Read Measurement...!");
tkds30xx_FetchWaveformMeasurement (DPOHandle, TKDS30XX_VAL_CH_1,
TKDS30XX_VAL_VOLTAGE_PEAK_TO_PEAK, &Vpp);
//(3),(4)
//MessagePopup("Information"," To Read Measurement...!");
//tkds30xx_ReadWaveformMeasurement (DPOHandle, TKDS30XX_VAL_CH_1,
// TKDS30XX_VAL_VOLTAGE_PEAK_TO_PEAK, 1000, &Vpp);
MessagePopup("Information"," Read Measurement finished!");
//(5) Display in numeric box
SetCtrlVal(pHandle,tabTk_numVpp,Vpp);
//MessagePopup("Information"," Connect Completely!");
CLOSE:
//(6) Close
tkds30xx_close (DPOHandle);
MessagePopup("Information"," Close DPO connect!");
}