09-03-2015 08:59 AM
I am building a VI that has several subVIs in it. One of the subVIs is resposible for generating a sine/triangular/squar/sawtooth waves. This wave generator VI can be triggered manually or wait for a trigger signal to trigger the preselcted wave. My problem is with the triggering mechanism. when ever I set my VI to autotrigger, which means it will wait for a TTL triggering pulse to out put the wave, the main VI will not respond until it reseves a trigger pulse. Is there a way to make it wait for lets say couple of milliseconds or seconds and if it didnt receive a trigger pulse to passor override the case structure and continue excuting the VI?
Thanks
09-03-2015 09:16 AM
Well, you did set your Wait For Task To Complete to wait forever (-1). Why not set that to something more manageable. You might also want to lower your DAQmx Read timeout.
Another option is to make this task run in a parallel loop and you command it to start with a Notifier or Queue.
09-03-2015 09:18 AM
Are you referring to the Wait Until Done VIs you have in the VI you attached? You have a value of -1 wired to the timeout input, so they will never timeout.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
09-03-2015 09:23 AM
I set it up to wait for unlimited time because when a user turn on the auto trigger he/she has to set up other parameters and make sure that the hard ware is placed right. the main point is that the user should do couple of other things before making it to auto trigger. So the time will ends before this person finishes. I just want to override the triggering wait time. In other words I want the main VI to respond to any other inputs even though the auto trigger is on with out giving an error and stoppin the main VI.
09-03-2015
09:29 AM
- last edited on
05-12-2025
03:51 PM
by
Content Cleaner
FaisalF wrote: In other words I want the main VI to respond to any other inputs even though the auto trigger is on with out giving an error and stoppin the main VI.
Then you really want to use a second loop. Take a look at the Producer/Consumer to get some ideas.