Author Topic: Datalogger2 not creating file or logging  (Read 767 times)

rms

  • Newbie
  • *
  • Posts: 21
    • View Profile
Datalogger2 not creating file or logging
« 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

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Datalogger2 not creating file or logging
« Reply #1 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?

jazzplayermark

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: Datalogger2 not creating file or logging
« Reply #2 on: January 21, 2019, 08:26:15 AM »
Set the property 'enable logging' to false.
« Last Edit: January 21, 2019, 08:42:31 AM by jazzplayermark »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Datalogger2 not creating file or logging
« Reply #3 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.