取消
显示结果 
搜索替代 
您的意思是: 

Using subpanels within an application

已解决!
转到解答

Hello,

 

I want to implement a modular test system where a master VI loads the front panel for a given test into a subpanel.  I've already tested that I can have an application (EXE) load the front panel of a target VI (provided the path).

 

However, I do not have a large number of VIs sitting around for operators to move/delete/edit, etc.  Does anyone have an example of inserting into subpanel from EXE, LLB, or another option?  

0 项奖励
1 条消息(共 7 条)
4,297 次查看

Not sure what you're asking for.

 

If you just want to practice the insertion / removal process, any old VI will do. But you said you've already done that.

 

What else do you need?

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 项奖励
2 条消息(共 7 条)
4,210 次查看

The concern, is that if I am simply loading the front panel of a *.vi file, then it will be available for operators to move/delete/edit. (hundreds of files if you count all the subvi spread across the 9 tests I will be running).

 

Instead, I would like to insert an EXE, or perhaps a vi which is contained within an LLB function.  My attempts at either have failed.  This will significantly help me with file management, version updates, etc.

0 项奖励
3 条消息(共 7 条)
4,199 次查看

Well, if you have operators who would edit a VI file, then i would suggest not loading LabVIEW onto the production machine(s).

I have a situation where I dynamically load VI files (not into a sub panel, but straight into execution).

1... I use an EXE for the main program, the LabVIEW DevSys is not even on the production machines.  Temptation removed.

2... The dynamic VIs are expected to be in a particular folder, relative to the EXE.  If they're not there, tough luck.

3... That folder is called "Private", with instructions not to enter there. (maybe make it hidden?)

4... At startup, I sync that folder to a folder on a central server, which has read-only access.  If somebody gorches the local copy, simply delete it and restart.

 

That ought to be enough to take care of accidents.  If you have malicious actors, there's not much you can do beyond that.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 项奖励
4 条消息(共 7 条)
4,195 次查看

You could also try a ZIP file with all your tests in it, and protected by a password.

Your program could unzip the one(s) you want and write the file out where it can be loaded for execution.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 项奖励
5 条消息(共 7 条)
4,189 次查看

That's an interesting approach, hadn't considered ZIP files before.

 

Password protecting files certainly prevents editing, but not accidental deletion.  I know it's a silly thing to worry about, but it happens. 

 

0 项奖励
6 条消息(共 7 条)
4,183 次查看
解答
接受人 proland1121

It's not silly- operators are indeed bored, curious, careless, and sometimes malicious.

 

Try a hidden folder as a container.

Have a folder called "New Tests".  Put your new tests into that.

On some trigger (startup?) move the files from there to the hidden folder.

Execute only from the hidden folder.

 

Or, try the same thing from a ZIP file.

On startup, copy from the NEW TESTS folder into the ZIP file.

 

Why not make the folder READ ONLY ?

 

Why not make the VI files READ ONLY?

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

7 条消息(共 7 条)
4,180 次查看