12-02-2020 04:37 AM
Hello, I am making a VI for the signal handling of a PXI-1033 device using a tab control, but placing the DAQ writes signals in the tabs does not work when running the VI. It should be noted that when I remove the event structure from VI the signals work properly.
Thank you.
Solved! Go to Solution.
12-02-2020 06:26 AM
This is a pretty basic *dataflow* issue. Your loop can't iterate until *all* code inside the loop finishes executing.
One of those things is an event structure without a finite timeout value, so it will wait as long as forever to finish if you don't interact with one of the GUI buttons it's waiting for.
This will not be the only problem in your code that you need to solve. I recommend you spend some time with training materials on dataflow, event structures, and parallelism vs. sequencing.
-Kevin P
12-02-2020 06:45 AM
Thanks for your advice Kevin, on the other hand, do you think that a tab control is not the best solution to separate the DAQ signals into tabs?
12-02-2020 07:41 AM
The Tab control only affects your GUI layout. Where you place your controls and indicator on your front panel has NO BEARING WHATSOEVER on the values they contain, and your block diagram code depends only on those values.
In other words, the problems with your code execution have NOTHING to do with whether your DAQmx controls are arranged on a Tab control or not. Code problems are in the code, which is found in the block diagram not the front panel.
Caps meant to convey emphasis, not anger. 😁
-Kevin P
12-02-2020 09:00 AM
😊 Thanks Kevin for the clarification, I still don't have much experience programming with Labview, your advice is very valuable. I will review the documentation you recommended to improve my code. Have a nice day.