10-11-2021 09:50 PM
After editing lv_new_vi.vi, I can no longer save the new VI....
Plus, the asterisk * that appears in the title bar of the edited VI does not show up.
How can I fix this?
If anyone knows, please let me know.
I attached the error message and the image of the contents of lv_new_vi.vi.
10-11-2021 10:39 PM
Looks like you're running a non-English OS version and hence the file path contains a Japanese Yen symbol instead of a slash.
Please use a proper path to save the file.
10-11-2021 11:30 PM
Thank you.
But when I rewrite the path constant from "C:¥" to "C:\", Labview will add "¥" on its own to become "C:¥\".
Is there a setting to change this?
10-12-2021 07:28 AM
Try turning on slash codes on your constants and front panel controls so that you have better control over what you are doing. Just remember the slash code for a "\" is "\\" Thus c:\ in slash code would be c:\\
10-12-2021 07:36 PM
It still doesn't work.
I cannot remove ¥ from the path, and I cannot create a new VI from a template with a path that has ¥ and \ mixed in.
If I enter a path with only ¥, I can save the new VI opened by running lv_new_vi, but I cannot save the new VI opened by Ctrl+N.
10-12-2021 09:06 PM - edited 10-12-2021 09:16 PM
Sorry. I realized that all the backslashes I thought I had typed were regular slashes.
It seems that only the ¥ symbol can be entered in the path in Japanese OS.
The half-width ¥ mark and the half-width backslash are the same character code, so I don't think that is the problem.
10-13-2021 01:12 AM
Now I can save it!
I needed to specify the application instance.
https://forums.ni.com/t5/LabVIEW/New-VI-default-window-size/m-p/4139689#M1193218
However, I still don't know how to display the asterisk to indicate that I have edited the file.
03-25-2022 01:01 AM
I ended up using this to change the VI to open with "Ctrl+N".
I don't know why, but the asterisks also show up correctly before saving.
quick create a new vi from template - *Uncertified* - LAVA (lavag.org)