05-17-2020 03:09 AM
Hello,
I am trying to create a VI that generate a finite waveform when the START button is pressed.
To do this I modified the example "Voltage Finite Output" to my need, and has successfully made the VI: when I press the START button, the signal is generated.
But when I created notifier with event structure to trigger the generator, I need to press the START button twice to trigger the generator.
So my questions are:
Attached are the snippet of the VI, without notifier (V Finite Output.png) and with notifier ( (V Finite Output (Notifier).png))
Thank you very much
-Jane
Solved! Go to Solution.
05-17-2020 07:10 AM
Did you try to debug your VI using the Highlight Execution? The "Wave" input should be placed inside case structure so its value it's read after pressing the Start button. Your consumer loop will not run continuously, it will iterate once for every notification received. If you send multiple notifications while your consumer loop is processing, they will be lost. Wait on Notification will return once only the last notification. A queue would work better in this case.
05-18-2020 03:22 AM
Hi CLA,
Thank you for your suggestion. Yes I think it happened because the notification got lost. If I wait for longer time (while observing the highlighted execution), it works fine.
-Jane