Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Read Finite Samples from Analog Input (retriggered) and route trigger-signal to RTSI

Hello,

 

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.

Andy

 

I have got:

LabView 8.2

PCI-6220

SCB-68

PCI-7340

UMI-7764

RTSI Cable

Best Regards,
Andy

_____________________
PCI-7356@UMI7764; PCIe-6320@SCB-68; LV2011; Motion Assistant 2.7; NI Motion 8.3; DAQmx 9.4; Win7
0 Kudos
Message 1 of 9
(3,184 Views)

Hi Andy,

 

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.

 

Best regards

Suse

______________________________
Certified LabVIEW Developer (CLD)
0 Kudos
Message 2 of 9
(3,156 Views)
... last attachment
______________________________
Certified LabVIEW Developer (CLD)
0 Kudos
Message 3 of 9
(3,155 Views)

Hi,

 

thank you for the answer. I think it helps me. I wanted to work with the example from

http://digital.ni.com/public.nsf/allkb/204538A044431C9B86257377004EB952?OpenDocument

but it is for LV 8.5

 

Can you convert it for LV 8.2.

 

Thank you.

 

Best regards

Andy

Best Regards,
Andy

_____________________
PCI-7356@UMI7764; PCIe-6320@SCB-68; LV2011; Motion Assistant 2.7; NI Motion 8.3; DAQmx 9.4; Win7
0 Kudos
Message 4 of 9
(3,147 Views)

Hi Andy,

 

I converted the VI to LabVIEW 8.2. I hope this helps.

 

Best regards

Suse

______________________________
Certified LabVIEW Developer (CLD)
0 Kudos
Message 5 of 9
(3,145 Views)

Hello,

 

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.

 

Best Regards

 

Andy

 

 

Best Regards,
Andy

_____________________
PCI-7356@UMI7764; PCIe-6320@SCB-68; LV2011; Motion Assistant 2.7; NI Motion 8.3; DAQmx 9.4; Win7
0 Kudos
Message 6 of 9
(3,103 Views)

remake in german:

 

Best Regards,
Andy

_____________________
PCI-7356@UMI7764; PCIe-6320@SCB-68; LV2011; Motion Assistant 2.7; NI Motion 8.3; DAQmx 9.4; Win7
0 Kudos
Message 7 of 9
(3,089 Views)

Hi Andy,

 

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!

 

Best regards

Suse

______________________________
Certified LabVIEW Developer (CLD)
0 Kudos
Message 8 of 9
(3,059 Views)
 
______________________________
Certified LabVIEW Developer (CLD)
0 Kudos
Message 9 of 9
(3,058 Views)