fanywx,
Thanks for posting to the NI Forums. Hopefully I can give you some pointers to figure out how to accomplish this sort of aquisition. I was able to locate an example that uses a start and stop trigger to acquire between two edges. The example is written in C but I would imagine it will be a similar approach in The MathWorks Matlab API. The example is located at:
http://forums.ni.com/ni/board/message?board.id=250&message.id=23687Let me know if you have any questions about the example. On a related note, I thought I would just point out that the new LabVIEW 8.20 released this week has the ability to run most .m files natively within LabVIEW. If you used the PCI-MIO-16E-4 from within LabVIEW you would be able to use the NI-DAQmx API with a much more intuitive interface. Most likely you will be able to take your .m scripts and run them directly in LabVIEW and interface with the additional LabVIEW code that does the data acquisition.
You can take a look at it at:
https://sine.ni.com/apps/utf8/nigb.confirm?p_gb_prof_id=10342&p_lang=US&p_dl_url=&p_dwnld=N&p_code=G...
Let me know if you have any questions and good luck with your application.
Regards,
Neil S.
Applications Engineer
National Instruments