adc200_set_trigger Probs

Post general discussions on using our drivers to write your own software here
Post Reply
300478

adc200_set_trigger Probs

Post by 300478 »

Please Help,

I am writing a program to trigger at 5volts as shown below, everything works fine, except it will only wait 10seconds and then automatically trigger. I need it to wait longer (indefinately)

Shane





adc200_set_frequency (0); //sig gen off
adc200_set_channels (A200_CHANNEL_A); //chan a only
adc200_set_trigger (TRUE, 0, 0, 0, 1024);
//set trigger at around 5V as 2048 would be 10V

max_mv = adc200_set_range (0, 10000); /set range to 10V
adc200_set_oversample (5); //set over sample 5
adc200_set_dc (0, 1); //channel a to dc
adc200_set_timebase (&ns, &is_slow, 2);

//set timebase to 2 (20*2(2)*5) = 1 sample per 1us

300478

Update - Still got a Prob

Post by 300478 »

This problem occurs on windows xp, 2k and 98. Im using microsoft visual studio 6 to compile it.



Any ideas?

Cheers

Shane

300478

dont worry i fixed it.

Post by 300478 »

its fixed

MSaran

Same problem!!

Post by MSaran »

What did you do to solve the problem?
I need to wait for a trigger and the unit don't wait for it correctly.
But the unit gets the data without waiting for the trigger.

Thank you

Cheers

Marco Saran

Post Reply