04-11-2019 08:01 PM
Hello!
I have a problem about interrupt.
I am using NI-USB 6008 and 6001 and LabVIEW.
I really want to know that can I use INTERRUPT for the programs at LabVIEW?
For example, if I press an external button while executing my LabVIEW program, so it will run another task in the same LabVIEW program that previously not running because of waiting for my inteerupt.
It is like in Arduino: AttachInterrupt.
I really need interrupt, because if I use "If condition" in my program, it takes time for the device to respond after I press the external button.
Thanks a lot!
04-12-2019 01:23 AM
Hi mifta,
I really need interrupt, because if I use "If condition" in my program, it takes time for the device to respond after I press the external button.
Both devices are USB-attached, so they will ALWAYS take time to execute any command (due to USB latencies)!
I don't think those cheap devices support any kind of interrupts (aka DAQmx events). Both USB6001/6008 only allow for static DIO so you need to read digital inputs in a "1 sample on demand" fashion. Usually those cheap USB devices can handle sample rates upto ~150Hz this way: so you get a (maximum) delay of ~6ms when handling DIO signals…
04-12-2019 10:15 AM
Thanks a lot GerdW!
Do you have a suggestion as an alternative that close to INTERRUPT?
Why the cheap Arduino UNO easily have AttachInterrupt while NI USB 6000 series is not?
Thanks again 🙂