10-17-2016 01:43 PM
I searched a lot before posting this but I couldn't find any similar post. The problem I'm facing is that I have a sub panel that should load the last session data to a table control. To do so I put a "Read From Spreadsheet File.vi" that should read from the file saved in last session. The problem is that when the caller loads the sub panel I get the Error 7 message. While I was testing it I even tried to put a file constant and browsed to the file in order to make sure the path was correct but didn't work.
In order to identify the error source I've opened the sub panel vi and highlighted the execution then no error occurs. I can't figure out why with the sub panel VI opened it ran fine but when it loads from the invoke node the error happens. I hope someone can help.
10-17-2016 02:34 PM
Are you able to attach some VIs which reproduce this behavior? I tried this on my computer in LabVIEW 2016 but didn't get any different behavior whether or not it was run from an invoke method and put in a subpanel.
10-17-2016 03:52 PM
Could you please post the entire two VIs? Pictures of part of the VI are not very helpful -- we can't "poke" at the wires or diagrams, or easily try making changes to the code and doing our own experiments to help you.
Bob Schor
10-18-2016 05:01 AM
Ok. Here are the two related VIs. The application is a bit complex so I'm not sure if these two VIs would help. Feel free to comment on anything that could be better, suggestions of best practices are always welcome.
10-18-2016 11:10 AM
I have a couple of comments.
Bob Schor
10-25-2016 05:42 AM
Thank you very much for your help! The problem was a mistake with the relative path, although I applied your suggestion of using "Start Asynchronous Call" because it is much better not have a relative path.