AnsweredAssumed Answered

AG U2701A Single Trigger

Question asked by obid on Jan 7, 2011
Hello,

I tried to catch an signal on the U2701A with an single-trigger.

with the following code:

AgU2701A_SetAttributeViReal64(session, Channel, AGU2701A_ATTR_ACQUISITION_START_TIME, 0.0);
AgU2701A_SetAttributeViInt32(session, Channel, AGU2701A_ATTR_ACQUISITION_TYPE, AGU2701A_VAL_NORMAL);
AgU2701A_SetAttributeViReal64(session, Channel, AGU2701A_ATTR_HORZ_TIME_PER_RECORD, 0.002);
AgU2701A_SetAttributeViBoolean(session, Channel, AGU2701A_ATTR_CHANNEL_ENABLED, VI_TRUE);
AgU2701A_SetAttributeViInt32(session, Channel, AGU2701A_ATTR_VERTICAL_COUPLING, AGU2701A_VAL_DC);
AgU2701A_ConfigureChannel(session, Channel, 8.0, 0.0, AGU2701A_VAL_DC, 10, VI_TRUE);
AgU2701A_SetAttributeViInt32(session, Channel, AGU2701A_ATTR_TRIGGER_TYPE, AGU2701A_VAL_EDGE_TRIGGER);
AgU2701A_SetAttributeViReal64(session, Channel, AGU2701A_ATTR_TRIGGER_LEVEL, 1.0);

// AgU2701A_InitiateAcquisition (session);   // This I hae tried no chance
trigger_state = 0;

while (trigger_state ==0)
{
AgU2701A_GetAttributeViBoolean (session, "TRIGGER", AGU2701A_ATTR_TRIGGER_STATUS, &trigger_state);  
}

AgU2701A_FetchWaveform(session, Channel, WaveformSize, WaveformArray, &ActualPoints, &InitialX, &XIncrement);

trigger_state is always one.

How can I configure the "Single-shot-mode"??

Does anyone known why this scope can not programmed with SICL?
The IVI-driver is for me hard to handle!  

Outcomes