Hello Engineer 2450,
There are many options for types of acquisition with a DAQ board. You can acquire continuously, in a finite manner or sample by sample. You can also correlate those samples in time to either the onboard clock at a specified rate or to an external, user-supplied clock.
It sounds like you are using one function generator as an external clock to sample the signals on two separate signal generators. Is this correct? Do you intend to replace this clock with an ion sensor? so that data is only acquired when a high level is sensed? You then mention that you continuously want to acquire data, which is a slight contradiction.
If this is the case, I would set up the data to acquire continuously at a set rate using the onboard clock. You can analyze the signal being acquired to determine if you want to log the data or not. This way the data rate does not change, no errors should be thrown and the graph will continously update. You can use a case structure for both the logging and graph to control when you want to work with the data.
It is also okay if you want to have an external clock of varying rates, however you need to adjust your timeout and rate. You will want to have the rate set higher than your fastest expected external clock rate and lenghthen the timeout in case the signals come very slowly. You can set the number of samples to read to -1 (all available) so that the application will run even if no samples are acquired.
Please post back if I have misinterpreted your questions or if you have further questions to get your application running as you desire.
Regards,
Jennifer O.
Applications Engineer
National Instruments