03-07-2011 07:45 PM
03-08-2011 08:40 PM
Hi,
I don't know if it is possible.
I am trying to seek the answer.
03-08-2011 10:43 PM
03-09-2011 01:31 AM
Hi,
as I understand the manuals a continuous acquisition is a post triggered acquisition waiting for a trigger that is never issued. One has to the collect pretrigger samples at infinitum.
Try to change in aiex2.cpp from
aiNumberOfSamples (board,
numberOfSamples, // posttrigger samples
0, // pretrigger samples
kFalse); // continuous?
to
aiNumberOfSamples (board,
0, // posttrigger samples
numberOfSamples, // pretrigger samples
kTrue); // continuous?
make the while loop reading the FIFO never ending.
I hope that this helps.
03-09-2011 02:06 AM
i change it like what you said,but it can not acquire the right data ,i really what i can do to solve this problem ,what regiser to control the infinite sample。please help me.i am very anxious. thanks a lot. if i can not solve the problem,i can not to do the next thing in project .
03-09-2011 07:16 PM
It's hard to do any guess without details. Could you sent necessary codes as attachement so that we can understand better?
03-09-2011 07:50 PM
I download your pages http://digital.ni.com/express.nsf/bycode/exyv4w?opendocument&lang=en&node=seminar_USabout M series of example aiex2.cpp under rtx ,it is to sampe finite points,I want to use it to sample infinite points,my question is how to change registers to sample infinite points. this example your company gave,why do you say i do not give your detail ?the examle is what your company gave. your company do not gave the regiser level pdf, so I want to kown how to change some registers to reach infinite samples in aiex2.cpp or use which example to change which register to reach infinite samples?
03-09-2011 07:57 PM
this is the example what your company give.I hope you can give me right anwer!
03-10-2011 01:01 AM
Hi,
you have to set the number of pretrigger samples correctly in your example as I wrote in my last post:
aiNumberOfSamples (board,
/*>>>>> your code is wrong here:
numberOfSamples, // posttrigger samples
0, // pretrigger samples
*/
/* This is correct:*/
0 // posttrigger samples
numberOfSamples, // pretrigger samples
continuous); // continuous?
03-10-2011 01:27 AM - edited 03-10-2011 01:35 AM
I have tried it like you asked before.Although it can sample infinite points,but the pionts are wrong when i test these points in maltlab. I hope you can think teal reason to tell me. who can really help me.i have waited for many days! thanks!