11-22-2020 12:47 PM
Hi,
I tried implementing this solution, but LV crashed immediately. I'm wondering if there is something in LV 2020 that prevents this type of implementation in which the events are registered outside the helper loop with an empty task. Any ideas?
11-23-2020 09:36 AM
Hi speclabAI,
I have the same crash using daqmx event in a helper loop for reading data. Try the piece of code below to fix the crash. It works fine in my use case. The inconvenience is that you need to have a Daqmx device, if not it crashes even you are not starting the acquisition.
I think it's a Daqmx, not related to the LV version. I'm in LV2019.
I never took the time to report it back to NI...
Hope this helps.
Olivier
11-23-2020 06:09 PM
Thank you Olivier. Your fix worked! Very much appreciated.
11-24-2020 03:37 AM
@speclabAI a écrit :
Thank you Olivier. Your fix worked! Very much appreciated.
👍
02-16-2022 04:40 AM
Hi, I know this is an old thread, but Olivier just pointed me to it from another and I though I'd post another option in case anybody finds it useful, plus in case I forget 🙂 as I found for myself a nice repeatable way to do this after quite a bit of pain.
I have been using this a while and works OK for me.
The highlighted Vi below creates and configures a AI Voltage DAQmx task, I make this VI first.
The from that Vi's DAQmx Task output I create a simple drop on a Create Event
Then I click on the Event registration refnum wire and create a constant
I can then use this constant for my registration.
I then NEED TO REMEMBER (because I sometimes forget) that the tunnel into the Helper Loop needs to become a shift register and that every case needs to have the Event registration wire pass through.
08-31-2022 04:11 AM