LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I know the daq card is collecting data i.e. has been triggered trigger

I want to alert the user that the daq card is collecting data after he pushes the trigger switch.  I wish to update a message text box when it has been triggered.  Thanks,  PCI-6221 37 pin

 

0 Kudos
Message 1 of 6
(2,500 Views)

You could place a property node for the text box inside a flat sequence block right after your collection task begins.  Would this work for you?

 

Regards,

 

Shane C

0 Kudos
Message 2 of 6
(2,463 Views)

Thanks,

Do you mean a property node on the data&error lines from the DAQmx AD VI?

 

Jeff

 

0 Kudos
Message 3 of 6
(2,448 Views)

You could use something like this, to ensure that at some specific point in your code a string indicator on the front panel is updated.  After placing the string indicator, right click on it go to Create>>Proprety Node>>Text>>Text.  The string indicator will update to the input of this property node when this sequence structure is reached.  Does that help?

 

Regards,

 

Shane C

Update String Indicator.PNG

0 Kudos
Message 4 of 6
(2,441 Views)

Thanks,

I see what you mean. Problem seems to be that if the sequence panel is before the AD In.VI it will update while it is waiting for the trigger.  If I put it after the .vi it updates after the data has been collected.  So, the message stays on "Waiting for trigger.." before and during the data collection then changes to "Collecting Data" just before the graphs are updated.

 

I need a property node that signals that the collection process is underway or has been triggered.

 

Regards,

 

Jeff

 

0 Kudos
Message 5 of 6
(2,434 Views)

It looks like your card has support for the change detection.  I have not tested this code, but it looks like it should work out for you.  Let me know if it gives you issues.

 

http://zone.ni.com/devzone/cda/epd/p/id/317

 

Regards,

 

Shane C

0 Kudos
Message 6 of 6
(2,410 Views)