Hi ..
I have written a small application to acquire samples between a start and stop triger and save it to a file continuosly until user hits the stop button.
Idea was to log 2 seconds of data every 100s. Hence I connected a periodic square signal which stays on for 2 sec on off for remaining 98 seconds. Application has to log data when the trigger signal is high.
Hence I set the total number of samples to 100000(since I acquiring data at 50kHz) and the number of pretrigger samples to 99998(I want to collect signals when the trigger is high).
I have set PFI0 to be both the start and stop signal and wired my trigger signal accordingly to PFI0.
I have noticed a funny behaviour though.
I am only able to collect the samples on the first trigger and my subsequents triggers are ignored. I know this this because I check the size of the file written and also opened up the lvm file to see what was written.
I have attached the vi which I had used to do this.
Am I missing anything?