Thanks. I have tried Cont Acq&Graph ExtScanClk D-Trig.vi, but it doesn't work. What I did was to connect a 50HZ pulse to PFI0 (analog triggering, I changed the code from digital triggering to analog triggering), and a 100K pulse to PFI7 (startscan), and a analog signal to ACH0. But the code always says: timeout. If I use internal clock, it works fine. Could you please give me some help more? Thanks.