01-21-2020 03:27 PM
Hi Greg,
No, when running the .exe, I am getting an error "267" which pointed me to SystemExec, which is when I found the 1055 error being fed into it.
01-21-2020 03:44 PM - edited 01-21-2020 03:46 PM
When you see error 1055, are you running Main.vi or just Download BGM111.vi?
01-21-2020 03:51 PM - edited 01-21-2020 03:52 PM
It looks like error 267 can be related to an invalid "working directory" for system exec, and your python file paths change when running an executable. When you run your exe, it looks like your python files should be in this directory: "C:\Program Files (x86)\OEM Controls\BT-Tracker Downloader\Python"
Does that path exist on your machine?
01-21-2020 04:54 PM
If you run Download BGM111.vi by itself, you will get the error 1055 because the input reference is invalid. I see nothing in the hierarchy of the code that would result in that reference being invalid when run via the Main VI.
I suggest commenting out the Add Standard Listbox Message.vi calls within Download BGM111.vi, specify the 'Target' and 'Software File Paths' values in the Settings cluster that would normally be specified when running the Main VI, then run Download BGM111.vi by itself and debug from there. I think Gregory is on the right track with checking the validity of the paths to the python files.
01-21-2020 05:53 PM
Just the DownloadBGM111 or a Sub.vi therein.
01-21-2020 05:55 PM
Yes, that's what I thought, but that exact path is indeed on the machine.
01-21-2020 05:58 PM
OK Darren, I will try that & report back.
I thought that when you reply to a post here, the reply would appear under the post, so please excuse my last 2 posts which were replies to earlier replies.
Thanks again guys!
George
01-21-2020 06:22 PM - edited 01-21-2020 06:23 PM
@gsrokmix wrote:
Just the DownloadBGM111 or a Sub.vi therein.
That is why the listbox reference is invalid, it gets fed in from Main.vi. So, the original question is solved, but we still have to figure out why the System Exec is not working.
Similar to what Darren said, you can disable the listbox stuff, set reasonable values for "Settings in", and then test out the path that will be used when running the executable or when running the code in the development environment. You can try something like this in DownloadBGM111.vi:
01-21-2020 06:31 PM
Ok Greg, I will try that & let you know what I find.
Thanks so much!
George
01-22-2020 12:35 PM - edited 01-22-2020 12:39 PM
OK, so after making the changes above, re-building the .exe, and running on the production machine with the hardware it looks like the SW is now downloading to the MCU!
I will see if the rest of the test works and report back...........fingers crossed......................
Thanks
George