AdvancedHMI Software

General Category => Support Questions => Topic started by: rms on January 20, 2019, 03:46:28 PM

Title: Datalogger2 not creating file or logging
Post by: rms on January 20, 2019, 03:46:28 PM
Hi
I'm a lite user of AdvancedHMI and wanted to start logging some value(s) (up to 10 per timestamp from a AB SLC 500 addresses N7:xx or F8:xx) to a local text file periodically.
I tried Datalogger2 - could not get it to create or  write to a file - tried manipulating a lots of the properties.. file name in quotes, not it quotes, etc
I did get Datalogger1 to write a singe value per timestamp to file with minimal set-up
Tried Datalogger2 with exact same property values, did not work
Any ideas what may be preventing Datalogger2 from working (ie creating/writing data to file)?
Are there any instructions or a set-up guide for datalogger 1 or 2
Datalogger 1 would be ok for me, but I can't  see how to log more than one value per timestamp.
Thanks
Title: Re: Datalogger2 not creating file or logging
Post by: Archie on January 20, 2019, 04:31:36 PM
- In Solution Explorer, expand down the AdvancedHMIControls project
- Expand down the Components folder
- Right Click DataLogger2.vb and click View Code
- Look for this:

Public Sub StoreValue()

In my version it is line 337

- Just below that look for:
If Not m_EnableLogging Then
- Click to the left of that line to add a breakpoint. You will see the red circle
- Run the application

If it stops at that breakpoint, click F10 to step through the code. Does it get to :
Using sw as New ......

If not, what stopped it?
Title: Re: Datalogger2 not creating file or logging
Post by: jazzplayermark on January 21, 2019, 08:26:15 AM
Set the property 'enable logging' to false.
Title: Re: Datalogger2 not creating file or logging
Post by: Archie on January 21, 2019, 01:31:44 PM
Set the property 'enable logging' to false.
Some how I never caught this. I fixed the code for the next update so EnableLogging will work normal.