04-08-2010 04:23 AM
04-08-2010 04:35 AM
04-08-2010 04:51 AM
HI! GerdW.
I mean that when you put "System Path Control" on front panel ....by clicking on file open icon it opens up window to select the path even when vi is not running.......So I have written a case structure which opens the specified file which is existing....now this case structure is controlled by boolean control on front panel and it only works when my vi is running....so I wanted to know if it is possible to convert that boolean control such that when my vi is not running, I press boolean control and my case structure excecutes........
04-08-2010 05:51 AM
Hi MSD,
when your VI is in edit mode then no case structure will be executed. Therefore you may use the run mode
The browse button of a path control is part of the control, so you can "work" with the control in edit mode - but no case structure will be executed... When you change the path in the control by editing also nothing is executed in the block diagram. And so changing the value of a boolean will also not force execution in edit mode!
04-08-2010 06:16 AM
04-08-2010 06:46 AM - edited 04-08-2010 06:47 AM
Hi MSD,
"its possible to make vi which can run in background and controlled from front panel"
Generally: YES, in Run Mode
Other option may be the famous XControl, available since LV8.0 (?). Such a control is designed by you, has a facade and a block diagram. And it's always in RunMode and so reacts on your front panel actions even when the VI is in edit mode... So RTFM
04-08-2010 07:59 AM
Can you give me a example VI....Thanks..
04-08-2010
08:26 AM
- last edited on
05-15-2025
05:21 PM
by
Content Cleaner
Hi MSD,
here's the link to the LabVIEW help... In the examples coming with LabVIEW you will surely find an example.
I never have made a XControl, so don't have own experience. Never needed a control that reacts in edit mode
You have to judge if the effort in learning to create XControls is justified by your programming needs! (I still don't agree with your requirement.)
04-08-2010 09:21 AM
I also don't understand what problem you are trying to solve. Why would you want to execute a case in edit mode? What are you trying to actually do?
altenbach had posted an example of using an XControl to perform a really silly operation (his words). As you can see from the example, it's a lot of code to accomplish something that doesn't need to be accomplished.
04-08-2010 11:26 PM