07-17-2013 04:44 PM - edited 07-17-2013 04:51 PM
Hello,
I have a test stand of which the GUI is designed in Labview; it takes pressure measurements and write to a word report. I currently encounter an issue regarding the behavior of VI when i run it. It's explained below:
All my front panel settings and controls which i feed in before running the vi reset to blank windows when I run the VI.
Also, I initially thought that, ok, even though the control values disappear, As long as they get written to the report, it's fine. But, It doesn't happen that easily. When i feed the front panel controls prior to running the VI and then run the VI, I have to stop the VI and run it again for them to be printed to the report.
The pattern is like this:
1. Feed Front Panel control values.
2. Run the VI ===> Front Panel control values vanish.
3. Conduct the test, stop the VI and Print the report ===> No control values get printed.
4. Restart the VI again without entering any control values.
5. Run the VI ==> Front Panel controls are blank(Obviously, because no values were entered).
6. Conduct the test, stop the VI and Print the report ===>Control values initially entered get printed.
So, essentially, the front control values not only disappear when the VI is run but it also takes two consective runs for the values to go into memory and get printed in the report.
The goal is to punch in control values -> Run the VI ->> Print report and the report is complete with all the control values in there.
Now a little about the VI:
The control values I am talking about are simple String controls like Company Name, Operator name et al.
The block diagram consisits of (LEFT TO RIGHT):
Producer & Consumer loops --> Type in Front panel controls --> Print report.
That is, the Producer/Consumer loops output the data to the report generation tool kit. But the Front panel contols to be fed lie in between the Producer/Consumer loops and the print report function.(No express Vis used)
So, How do i get rid of my Front Panel control values disappearing. I want them to display when the VI is running.
Please advice.
Thanks in advance,
RP.
Solved! Go to Solution.
07-17-2013 05:10 PM
Are they actually indicators and the VI properties are configured to clear indicators when called?
07-17-2013 05:44 PM
Hey Alten,
No, they aren't indicators and the VI is not configured to "Clear indicators when called".
They are Controls on the front panel which feed their inputs to the word report.
Regards,
RP.
07-17-2013 06:11 PM
Is there a re-init all to default method involked?
We can keep playing twenty questions or you can provide an example that demonstrates the behavior.
07-17-2013 06:14 PM
All I can think of are the "did you plug in the power cord" suggestions such as:
- Right-click on the control and search for locals, property nodes, etc.
- Instead of clicking Run, click Start Single Stepping on the block diagram. Put probes on the wires, turn on highlighting.
07-17-2013 07:40 PM - edited 07-17-2013 07:40 PM
Hello Jeff, Todd,
@ Jeff
I can email you the code that I've written, if that's fine by you.
@ Todd
I have tried these options but i can't get to the bottom of the issue. I have checked the execution settings/status too.
If there's anything intrinsic to the logic which is causing this, I am trying to figure that out.
Please share your thoughts on this.
Regards,
RP.
07-17-2013 08:02 PM
07-18-2013 12:50 PM
Hi Dennis,
I have the VIs in the Project form. Can i attach the whole project or should i attach only the top level VI ?
Thank you,
RP.
07-18-2013 12:59 PM
07-18-2013 01:33 PM
... or open the toplevel VI and "save for previous". Select the same version and save to a new folder. Then zip up the folder. This should include most dependencies.
(I suspect we don't really need any subVIs to see the problem, unless you are doing some advanced weird stuff with references and such. As a first step, simply attach the toplevel VI.)