Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - jamesj

Pages: [1]
1
Open Discussion / Logging question.
« on: July 30, 2019, 10:44:29 AM »
Let me start by stating that this is my first exposure to VS and AdvancedHMI. Thanks to the brilliant design of the AdvancedHMI product, I have been able to create a simple working application that logs a string upon a passing weight condition. Thank you for the great product design!!

Using BasicDataLogger1, I'm creating a text file that contains only one line "Pass,123456" when I get a pass signal. Currently, if no text file exists, it creates a new file and logs a new line of text. If the file exists already, it just keeps adding new lines. Is there an easy way to have the pass signal do the same if no file exists and if it does exist just replace the current text file with the new?

I can only have one line of text in the file. Our production reporting software will see the new file created, read the contents and then delete the text file. However, anything unexpected in the file will confuse the software and cause an error.

Pages: [1]