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

VI Scripting: Setting Dirty Dot

已解决!
转到解答

I have a VI scripting VI that generates a new VI, but does not save it to disc. I noticed that the newly VI created VI does not have dirty dot set. So if you close the new VI, the user does not get prompted about saving the VI. Is there a way to have the new VI made "dirty"/enable the save prompt? I had looked in the Modifications properties, but those are read only.

__________________________________
Bill Eisenhower
Certified LabVIEW & TestStand Developer
1 条消息(共 4 条)
2,963 次查看

What version of LabVIEW are you using?

Can you share your script?

 

If you type control-N in LabVIEW you get an Untitled VI.  That Untitled VI does not have the dirty dot.  This seems like the expected behavior because there is nothing to save.

 

You could also be creating a clone of an existing VI.  This would also not have the dirty dot.

 

You could also be opening a template (.vit) without making a new VI from the template.

Michael Munroe, CLD, CTD, MCP
Automate 1M+ VI Search, Sort and Edit operations with Property Inspector 5.1, now with a new Interactive Window Manager!
Now supports full project automation using one-click custom macros or CLI.
0 项奖励
2 条消息(共 4 条)
2,934 次查看
解答
接受人 CL_eisenwr

n.png

"If you weren't supposed to push it, it wouldn't be a button."
3 条消息(共 4 条)
2,916 次查看

Paul,
Thanks that did the trick.

 

Michael,
Not that I think it matters much now, but this is in LabVIEW 2019 that I had inherited from a former employee in LabVIEW 2017. (Both had this same issue.) It is creating a clone from an existing VI (not sure why not a .vit) and the modify the template to insert the specified VI into it.

__________________________________
Bill Eisenhower
Certified LabVIEW & TestStand Developer
0 项奖励
4 条消息(共 4 条)
2,905 次查看