06-23-2023 03:55 PM
I did not say to open it in read only, but to allow other applications read only access, of course. Read it again!
06-23-2023 05:24 PM
@Happy96 wrote:
I have been working to add the "Close File VI", but not getting success. This is the logic I applied on my last try. Not able to determine why it is not working. All I know is that the VI is not entering the 3rd Case.
Here are the snips and the attached VI
You attached the same VI as before (only two cases). However, you don't need that extra case.
You need to close the file in two locations:
Also:
06-23-2023 06:24 PM
I was literally laughing while reading all your feedback thinking there is so much more I need to understand to make my code more efficient. Thank you for all the knowledge you share.
I absorbed all your pointers and I think I understood it (yet to be implemented).
The only thing I am unable to do is to find a way of "closing a file before making a new one" in my "New File Creation" case.
Close File VI needs refnum as input and when I loop back the refnum through the shift register in the "New File Creation" case it gives me an error.
06-24-2023 11:19 AM
Here's how you handle "automatic file updating":
Bob Schor
06-24-2023 11:55 AM - edited 06-26-2023 07:41 PM
@Bob_Schor wrote:
- This method always "closes the old" before "opening the new", and uses only a single (reusable) File Reference. Should work (Famous Last Words) ...
The order should not really matter as long as both happen inside the same case and the new reference is output to the shift register.