I just built my first executable, but I configured my VI's for serial using COM4, and termchar "D" but when VI closes setting reset to com1. Is there a way to permanently set termchar and visa resource name without having to select everytime application exectues?
Solved! Go to Solution.
Sorry, I cannot look at VIs in LabVIEW 2021. Assuming these are controls, you just need to make the desired values the default. (e.g. enter desired values, select all desired controls...edit...make selected values default)
Before you save your VI:
I just completed my first application build, the VI runs fine with no problems. But when I run the executable, it doesn't communicate to hardware, check configuration of VI, and every is correct. Using windows 10, I attached the VI and the executable. I added both VI's auto and manual initialize but no response when using executable.
I made the changes to both VI's and created a new project but doesn't communicate when using executable but works with VI.
So that's a different problem and hints at missing drivers or resources that are already in use. I assume your exe has some error handling? What does it complain about?
Did the original exe work after you change the control values once it is running?
Both VI's run without a problem no errors, and when executable is ran no issues. Could it be that I'm using both VI on the same com port?