Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with DAQ occurrence returned by subVI: wait times out immediately

I have subVI which generates a DAQ occurrence, starts analog input on a NI6110E board with the board waiting for a digital trigger and returns the occurrence to the calling VI through an indicator. I want the calling VI to use this occurrrence with the "Wait for Occurrence" node after doing some other things, but it seems to time out immediately even though the wait time has not expired. Just to figure out what was going on, I moved the "Wait for Occurrence" inside the subVI and it actually waits, as it should, until an occurrence is set as a result of a digital trigger. Is there some technical problem with exporting DAQ occurrences from subVIs?

Thanks,
Neal.
0 Kudos
Message 1 of 3
(2,387 Views)
Neal,

No, you should be able to use occurrences with subVIs. I am not sure why it is timing out immediately. Maybe you could post your VI?

Spencer S.
0 Kudos
Message 2 of 3
(2,387 Views)
Thanks for the response. I eventually figured out what the problem was. I accidentally had my diagram wired so that the DAQ Occurence VI would clear the occurrence while the Wait For Occurrence node was waiting.

Thanks,
Neal.
0 Kudos
Message 3 of 3
(2,387 Views)