01-08-2010 08:31 AM
I want to read finite samples from Analog Outputs (ai0...ai4). This should happen when the trigger-signal is rising. I think that the LabView sample Multi-Function-Ctr Pulse Train Generation for AI Sample Clock.vi do that for one channel, but I don´t find the right parameters for counter channel, clock source and trigger source. I need the trigger at RTSI0 (or other) for reading positions from Motion Control (This part is running, when I get a trigger).
Thank you for helping.
I have got:
01-11-2010 03:51 AM
I send you some helpful links for triggering:
"What Analog Channels Can I Trigger Off Of?": http://digital.ni.com/public.nsf/allkb/6F50064F936FA29186257537005B244A?OpenDocument
"Creating a Delayed, Retriggerable and Finite Pulse Generator": http://digital.ni.com/public.nsf/allkb/204538A044431C9B86257377004EB952?OpenDocument
"How Do I Use a Digital Trigger in LabVIEW to Start and Stop Acquiring Data?": http://digital.ni.com/public.nsf/allkb/BA775B0E445BFA79482571FE0032CCEB?OpenDocument
Which DAQmx Version do you use?
You can find different examples for triggering with a PCI-6220 Card when using the example finder in the getting started window of labview and choosing your hardare! See the attached screenshots! I also add you an example for pre-triggers. Please notice that you choose a "rate" at the factor 10 greater than the "samples to read" (look at the express VI "DAQ Assistant"). On the trigger tab you can choose which trigger you want to use (falling or rising edge)! With the express VI you can try if your data acquisition works!
In general you should better use DAQmx VIs than Express VIs. You can convert your express VI by right clicking it on the block diagramm and choose "create NI-DAQmx code" or you can use an example of the example finder.
I hope this helps you! If you have more questions write back.
01-11-2010 03:52 AM
01-11-2010 06:34 AM
thank you for the answer. I think it helps me. I wanted to work with the example from
but it is for LV 8.5
Can you convert it for LV 8.2.
01-11-2010 06:44 AM
I converted the VI to LabVIEW 8.2. I hope this helps.
01-14-2010 04:26 AM
Thank you for very fast converting and answering. I can generate the Triggersignals that I need. Also I can route it to RTSI. For Using ai I found the Document http://decibel.ni.com/content/docs/DOC-6801
but how could it be in a higher Version of LV than 8.2.
Can you convert it for me. I think that is what I wanted to. Thank you.
01-14-2010 07:29 AM
remake in german:
01-18-2010 03:47 AM
I added the VI in LabVIEW Version 2009 but you can simply open the VI in the newer LabVIEW Version then it's compiled automatically!
In additional you can select Tools -> Advanced -> Mass Compile to convert it in the newer version!
I hope this helps!
01-18-2010 03:49 AM