06-03-2009 02:03 AM
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
06-03-2009 04:52 AM
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
06-03-2009 06:15 AM
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
06-03-2009 06:55 AM - edited 06-03-2009 06:58 AM
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.
06-03-2009 07:35 AM
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