02-09-2006 11:05 AM
02-10-2006 01:26 PM
Hello Tek,
We need some more information about the problem in order to help. By record, do you mean that you are saving the data to file? If so, are you able to acquire pretrigger samples but not save them to file? Or, are you not able to acquire the pretrigger samples. Also, what hardware are you using? Do you get an errors when running the program?
If the problem is with the acquisition, try the LabVIEW examples Acq&Graph Voltage-Int Clk-Dig Ref.vi for NI-DAQmx.
Please let us know,
Laura
02-11-2006 11:14 AM
Yes, I am saving the data to a .txt file. It appears that I am not able to aquire or save pretriggered data, but I know that it is definitely not saving the 20 scans of pretriggered data to the .txt file. I don't know how to tell if I'm aquiring the pretriggered data, but I know that it is not showing up in the acceleration-time graph. I do not get errors while running the program, but the program does stop when the buffer is full. We are aquiring data at 100,000 samples/sec for about 2.5 seconds right now. I am using the NI DAQ card 6062E. When I get back to the lab I will try to run the example you recommended. Please let me know anything else you can think of.
Tek
02-13-2006 06:53 PM
02-14-2006 11:20 AM
02-15-2006 01:52 PM
02-20-2006 12:31 PM
02-21-2006 04:23 PM
Hi TEK,
There is an example that uses NI-DAQ with a finite acquisition and analog triggering in the NI Example Finder. It is called Acquire N Scans Analog Hardware Trig. It uses -1 on the AI Start, but specifies the number of scans to acquire in the AI Config VI. The number of scans to acquire should be the total data you are getting returned, pretrigger scans + post trigger scans.
Please take a look at this example and see if it answers your questions.
Regards,
Laura
02-23-2006 10:48 AM
02-24-2006 01:31 PM
Hi Tek,
What didn't work about the example? Have you seen any error messages when trying to run the different VIs?
I took the example that I recommended and ran it just fine with your settings. What channel are you specifying for the analog trigger? You can specify either a number, which corresponds to the analog input channel that you would like to receive your trigger from (this could be the same channel you are acquiring from) or PFI0 if you are using the AI Start Trig channel. I could use the example with either setting. You may need to increase your timeout above what the example has set to make sure that you have time to get the trigger and then acquire all 750,000 samples at 200,000 samples per second. Also, be sure to use an analog level you are sure that your trigger will pass while you are testing this VI.
Please take a look at these settings and let us know if you need help.
Regards,
Laura