ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

external trigger analog

Hi,

 

I use  the card PCI 6251 with the connecting box BNC-2110 and Labview 8.5.1

I want to acquire an analogical signal each time that the card recieve an external trigger analog.

 

1) Can you confirm that I must connect the  external trigger analog on  " AO ext REF " on the box BNC-2110 ?

 

2) My program does one start trigger and that's it, after I have continuous acquisition but it's not triggered. I precise that I don't want use a counter (internal) to do the trigger. 

 

I understand that it is a basic question and I'm sorry for that and for my english.

 

Thank you for your help

0 Kudos
Message 1 of 7
(4,323 Views)

Cf attached files.
If english isn't your native language, please post on your community !;-)




Hope it helps you.
Best regards,
Vincent

Message Edité par ramses64 le 01-15-2009 04:37 AM
V-F
0 Kudos
Message 2 of 7
(4,312 Views)

Thanh you for your help Vincent, but it doesn't work again.

I don't unterstand. 

Are you sure that we can put in a loop while a start and stop task ? Isn't it too long ?

0 Kudos
Message 3 of 7
(4,289 Views)

steph54 wrote:

Hi,

 

I use  the card PCI 6251 with the connecting box BNC-2110 and Labview 8.5.1

I want to acquire an analogical signal each time that the card recieve an external trigger analog.

 

1) Can you confirm that I must connect the  external trigger analog on  " AO ext REF " on the box BNC-2110 ?

 

2) My program does one start trigger and that's it, after I have continuous acquisition but it's not triggered. I precise that I don't want use a counter (internal) to do the trigger. 

 

I understand that it is a basic question and I'm sorry for that and for my english.

 

Thank you for your help


1. No most likely not, I would use something lik AI PFI1 (if available), I think that is the first digital input (TTL).

The way your VI is setup (from the first post) is good!

 

Ton

 

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 7
(4,286 Views)

Thank you for your help Ton.

Please, I need some precision.

It's right that with the VI of the first post it works when external analog trigger is plugged on  " AO ext REF " on the box BNC-2110 and in continuous mode.

1 ) Why it does'nt work in finite mode ?

2 ) I think that trigger works only one time ( to start acquisition ) but  I would like  that analog trigger work all the time, I mean that each time the level of the analog trigger is "ok" , I have an acquisition of X samples.

I hope that I was clear.

 

Stéphane. 

 

0 Kudos
Message 5 of 7
(4,274 Views)

Infinite mode let's you get a set number of samples. What happens in a loop:

  1. You read sample 0-0.5 seconds (timewise)
  2. You process data (takes .1 second)
  3. You read data (0.6-1.1 second)

You have a gap.

Continous mode:

  1. You read sample 0-0.5 seconds (timewise)
  2. You process data (takes .1 second)
  3. You read data (0.5-1 seconds) because DAQmx has buffered the data

Just make sure you process the data quick enough to prevent a buffer overflow.

 

Multiple (external) triggers is something I haven't tried, but there are examples in the examples list, I think they use a counter somehow.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 6 of 7
(4,264 Views)

Well, I'm lost.

 

For multiple trigger in the examples list, the counter need to be link to a digital trigger ( that's logic ) and the problem for me is that my trigger is analogical.

 

thanks a lot.

 

stéphane 

0 Kudos
Message 7 of 7
(4,243 Views)