Trends & DataLoggers
Trends & DataLoggers
Hi, I'm having difficulty with the trends vs datalogging. I want to log some values and display the logged data. I can set them up in the datalogger but then I can't view the data in a trend object. I can set a trend to record history but then I can't label the values when they're exported to .csv. I also can't change the sampling interval for a trend like I can for a regular datalogger. Do I have to log the same tag to a datalogger and use the trend history?
Re: Trends & DataLoggers
Yes, that is correct. There is not a way to copy values from the "DataLogger" to a "Trend" object.I want to log some values and display the logged data. I can set them up in the datalogger but then I can't view the data in a trend object.
If this is going to be a blocker for your project moving forward, then there are ways using C# script to open a DataLogger table, read the data and then put it into a 3rd party TrendChart object. This would take some work.
I can set a trend to record history but then I can't label the values when they're exported to .csv.
With iX Developer you could write some C# script open the file after it's created and edit the labels, however I don't have an approach to do this otherwise.
Under the "General" tab for the Trend object is a "Sampling Interval" property that is used for that object.I also can't change the sampling interval for a trend like I can for a regular datalogger.
The Trend and DataLogger are separate objects/functions in iX Developer and do not share data.Do I have to log the same tag to a datalogger and use the trend history?
Best Regards,
Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer
Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer
Re: Trends & DataLoggers
On a related note, I've had some luck using a 3rd party trend chart control with iX Developer. I've attached an example project.
- Attachments
-
- MwTrendUserCtrl.zip
- (56.41 KiB) Downloaded 1020 times
Best Regards,
Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer
Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer
-
- Posts: 51
- Joined: Fri Apr 27, 2012 12:33 pm
Re: Trends & DataLoggers
Hi Mr Ron..
In scripting page which code we can use to datalogger once?
Thanks..
In scripting page which code we can use to datalogger once?
Thanks..
-
- Posts: 824
- Joined: Tue Mar 13, 2012 9:53 am
Re: Trends & DataLoggers
Not sure what you want. But here is a screenshot of where you can set the datalogger capture settings.
Best Regards,
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
-
- Posts: 51
- Joined: Fri Apr 27, 2012 12:33 pm
Re: Trends & DataLoggers
For example I want to logonce in scripting
Like this
Like this
Code: Select all
if ((Globals.Tags.DEGERALIMOTOBIT6.Value==1) & (Globals.Tags.DEGERALMATIMERBIT6.Value==1))
{
[color=#BF0000][b]Datalogger log once script[/b][/color] Globals.Tags.ORDEL6PSV.Value=Globals.Tags.ORDEL6PSV.Value+Globals.Tags.Test_6_INC_Value;
}
-
- Posts: 824
- Joined: Tue Mar 13, 2012 9:53 am
Re: Trends & DataLoggers
Then you put a tag in the "Log on Tag Event" section of the datalogger. When that tag changes, it will log once.
You can change a tag in script like this:
Globals.Tags.MyTag.Value++;
You can change a tag in script like this:
Globals.Tags.MyTag.Value++;
Best Regards,
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer