I'm using VB6 to make a program that captures a block of data at 50MS/s after a trigger event, with an ADC212/100 unit.
But the unit wasn't waiting for the trigger event to occur before capturing data.
How can I do it?
This is the code:
Trigger_Result = adc200_set_trigger(1, 0, ADC200_TrigDir, ADC200_TrigDelay, ADC200_Threshold)
Run_Result = adc200_run(ADC200_Samples)
Do While Not (Ready_Result)
Ready_Result = adc200_ready()
NumSamples = adc200_get_times_and_values(BufferT(0), BufferA(0), BufferB(0), ADC200_Samples)