11-11-2010 07:01 AM
Hello All,
I have one main front-panel having many Boolean button for eg:
n1-dncc-01
n1-dncc-02
n1-dncc-03
-
-
- etc. And for each option i have event structure which calls other program of labview in Sub-Panel.
So now my problem is when i pressed n1-dncc-01 button its boolean values should be passed to the program which i am calling in Sub-Panel.
So it is possible???I tried with ref and property node but i didnt succeed. I guess i am not on correct path.
Thanks in advance
pals
Solved! Go to Solution.
11-11-2010 09:18 AM
I cant quite get your question. You have dragged a subpanel over the boolean buttons and you are just passing the values of the boolean buttons to the event cases. You can use the Event node(on the inner left of the structure) to access the new or previous value of the button. Otherwise if you want to pass the value to another block diagram than either use that VI as a subVI or use global variables.
11-11-2010 09:26 AM
Hi,
Thanks for the suggestion but i cant call sub vi here... I need to send the values of selected boolean to other program's block-diagram to fulfil the requirement. I guess now i am clear where i am facing the problem. This selected boolean will open the respective sheet in excel and then the rest program flows and i need to use Sub-panel also....
So if you can help me in this????
Thanks so much....
11-11-2010 09:29 AM
Hi Again,
Can i use those boolean as global and then use them i other programs?????But condition is that if i select any one among those boolean that true values should be passed to the other program....
Thanks so much...
Pals
11-11-2010
09:32 AM
- last edited on
05-20-2024
07:25 PM
by
Content Cleaner
Inserting subpanels uses the VI Server functions. Thus, to set the value of a front panel control on a subVI you need to use the VI Server functions. With the VI reference that you have you can use the Control Value:Set method.
Note: It is a BAD idea to hard-code paths in the block diagram. If I were a professor I'd fail your assignment for doing that. ![]()
11-11-2010 09:43 AM - edited 11-11-2010 09:47 AM
Hi,
Thanks if its a bad idea then is there any other method??? I need to call all other programs in sub panel, plus need to send or pass the value of boolean also to those programs. Everyevent should call diff labview program plus pass the value of boolean in those....
If any other idea, will like to know it...
Thanks so much...
Pals
11-11-2010
09:54 AM
- last edited on
05-20-2024
07:26 PM
by
Content Cleaner
You misunderstood what I said. I said it was a bad idea to hard-code paths in the block diagram. I didn't say anything about passing Boolean values. Instead of hard-coding paths either provide a front panel control to specify the directory (relative or absolute) where the plug-ins can be found, or specify as part of the program operation that all plug-ins must be located in a "plug-ins" folder in the same folder as your main application, and your LabVIEW code can figure out the path programmatically based on where the application is located. Be aware of determining paths based on whether you are running in the development environment or a built application. Why Does My Executable Not Work When Using the Current VI's Path Constant?
11-11-2010 10:01 AM
Hi,
Thanks got it... But my prof wants just one botton click and all the things should happen so i did that... Thanks so much for your valuable suggestion.
Thanks again...
pals
11-11-2010 10:21 AM
@ Smercurio,
I did what u suggested about cnt.val.set but i cant see its value in my other porgram which i am calling in sub-panel. I am not using Subvi. I guess i have again misunderstood it.
pals
11-11-2010 10:59 AM
I don't know what you mean by "not using subVI". Please upload your latest code, along with the plug-in that you're trying to load into the panel.