Author Topic: new features  (Read 2912 times)

MrPike

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
new features
« on: December 01, 2014, 08:00:15 PM »
Hey Archie, building on my last post I see a couple other new features added.  can you explain how to use basic data logger and the basic trend chart.  Especially the trend chart; what is the the data fields "value" and "points" for?.  Thank you. 

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: new features
« Reply #1 on: December 02, 2014, 07:29:18 AM »
The BasicTrendChart is simply a histogram for a single integer. It will subscribe to the value in PLCAddressValue and each time a value is returned it is put into the Value property. This in turn adds it to the Points collection. When the Points collection reaches the MaxPoints, it will delete the oldest value.

The BasicDataLogger saves values, specified by PLCAddressValue, in a text file, as specified by FileFolder and FileName, with a time stamp.  You can specify whether to log by time interval or change of value using the LogTriggerType and LogInterval properties.

fohdeesha

  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: new features
« Reply #2 on: December 04, 2014, 05:47:14 AM »
How do you find the patience to keep adding this stuff? You're like a wizard

doggo

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: new features
« Reply #3 on: December 07, 2014, 01:09:58 AM »
This is great! Keep it up Archie!

doggo

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: new features
« Reply #4 on: December 07, 2014, 01:19:56 AM »
In the Basictrendchart, is there a way to adjust the sampling rate since there does not seem to be a way to set timespan on the x axis? Im using SimulatorCom1 to create a tag to trend, but it scrolls off the left side of the trend in just a few seconds.

Would be great to have the trend only log a point when the value changes.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: new features
« Reply #5 on: December 07, 2014, 07:01:30 AM »
In the Basictrendchart, is there a way to adjust the sampling rate since there does not seem to be a way to set timespan on the x axis? Im using SimulatorCom1 to create a tag to trend, but it scrolls off the left side of the trend in just a few seconds.
You can control the sample rate, but this does not work with the simulator driver.

- Add a driver instance that will be dedicated to the chart
- Set the PollRateOverride to the sample rate (in milliseconds)
- Add the BasicTrendChart
- Set the PLCAddressValue property
- Set the ComComponent property of the chart to the driver you added in the first step