LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to make control like "system path" control....

I have observed that "system path" control can also work when vi is not running.....Is this possible to apply same attribute to any boolean control...such that the control works even when vi is stop....
0 Kudos
Message 1 of 11
(3,596 Views)

Hi MSD,

 

you can change any control when the VI is in edit mode...

 

So what is it that you really want?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 11
(3,590 Views)

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........

0 Kudos
Message 3 of 11
(3,581 Views)

Hi MSD,

 

when your VI is in edit mode then no case structure will be executed. Therefore you may use the run mode Smiley Wink

 

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 11
(3,569 Views)
ya, you are right...but I was wondering whether its possible to make vi which can run in background and controlled from front panel......
0 Kudos
Message 5 of 11
(3,561 Views)

Hi MSD,

 

"its possible to make vi which can run in background and controlled from front panel"

 

Generally: YES, in Run Mode Smiley Wink

 

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 Smiley Wink

Message Edited by GerdW on 04-08-2010 01:47 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 11
(3,551 Views)

Can you give me a example VI....Thanks..

0 Kudos
Message 7 of 11
(3,539 Views)

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 Smiley Wink

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.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 11
(3,532 Views)

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. 

0 Kudos
Message 9 of 11
(3,521 Views)
Let me clarify my need.....My application acquire data and store it in excel file and I have put a control which opens that excel file....but as it requires vi to be running ...I was wondering that to make such that file should open even if user have stopped the vi.....Is it clear this time?
0 Kudos
Message 10 of 11
(3,507 Views)