LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read a trigger from my daq card?

Hi all,

 

I have a program A which uses my daq card for triggering and data acquisition. Now, I am creating an another program B which should be executed at the same time with A. The program B needs to read a trigger which A creates from the daq card. It would be kind of a stimulus for program B that it knows when to start executing its own code.

 

My question is, how to do this? I am using a flat sequence structure in B and after observing rising edge of a trigger in the first subdiagram I want move to second subdiagram where my main code is.

 

I've planned to use daqmx vis for this but which one? Maybe one vi is enough?

 

Best regards,

Jick

0 Kudos
Message 1 of 5
(2,783 Views)

Jick,

 

do the programs need to be seperate? Or are they different parts of the same application?

Depending on the device, you will propably not be able to access it from two different applications. So you need to create somekind of "server" or "demon" in order to suppy both applications with "their" data.

 

hope this helps,

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 5
(2,770 Views)

They (A and B) don't necessary have to be separate programs but for testing purposes it would be nice to be able to use them separately.

 

I am wondering if I can somehow "see" with B when a trigger is sent by A and then execute my program B?

 

I have a BNC-2110 card.

 

B R,

Jick

 

0 Kudos
Message 3 of 5
(2,766 Views)

Jick,

 

if A and B can be part of the same LabVIEW application, things are getting a lot easier.

Next question:

What is the maximum delay between A and B and the actual trigger event? If timing isn't that neccessary, you should take a look into queues and notifiers.

 

hope this helps,

Norbert

 

EDIT: The BNC 2110 is a terminal block for connections to the transducers. It is no device with an analog-digital-converter (ADC). The sampling device is the device mounted in your PC/PXI where the BNC 2110 is connected to. You can alternativly look into MAX (Measurement and Automation Explorer) for information about your sampling device. 

Message Edited by Norbert B on 06-03-2009 06:58 AM
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 4 of 5
(2,763 Views)

The thing is that guy who made the prog A is not present and I can't ask advices. But as you mentioned it might be the best solution to try to include B to A. I just thought that there is some easy way to see when triggering happens in A. Maybe I can wire a trigger output to acquiring input 2 but in that case there might be some card reserving problems because A uses input 1 at the same time.

 

Thank you anyway!

 

B R,

Jick

0 Kudos
Message 5 of 5
(2,758 Views)