06-20-2009 06:17 PM - edited 06-20-2009 06:19 PM
Hi, first of all I apalogize if this is a trival question, but I am relatively new to LabView programming and I can't seem to figure it out.
I am trying to set up a VI that records data when triggered. My data acquisition setup is a BNC 2090 connected to a PCI MIO 16E-4. As far as I can tell I am able to set up my tasks in DAQmx to read data when triggered, but I can't seem to get the labview VI to record this data with the correct timing.
What I would like is a loop that run whenever it sees the analog edge of the trigger, I'm sure labview is capable of this. Can someone help? Thanks in advance!
Solved! Go to Solution.
06-20-2009 11:50 PM
06-22-2009 01:52 PM
06-22-2009 04:30 PM
jschwartz wrote:Hi keony31,
I just want to get a little better understanding of your application. Could you tell me what you want your DAQ card to do and what kind of signal you are reading and what signal you are going to be triggering on?
Thanks for the reply. My DAQ card is setup correctly. I have a task set up to record data when triggered by the rising edge of an analog trigger signal. What I want is for my labview VI to record the data on each trigger. After some additional testing I discovered that the loop to read the signal takes ~6ms which is about 6 times longer than the time between signals.
So I would like to somehow speed up the read signal process.
06-23-2009 05:51 PM
06-24-2009 08:18 AM
Take a look at the Queue Basic.VI included as an example with LabVIEW.
This is a good way to perform buffering when you are collecting data faster than you can process it.
It is also a good way to get some experience using the queue functionality in LabVIEW (if you don't have any experience in this functionality, it may seem confusing at first.)
I have attached the LabVIEW Example VI for quick reference.
06-25-2009 02:05 PM