Page 1 of 1

Trends & DataLoggers

Posted: Thu Mar 01, 2012 2:01 pm
by bennanio
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

Posted: Fri Mar 02, 2012 11:22 am
by Ron L.
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.
Yes, that is correct. There is not a way to copy values from the "DataLogger" to 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.
I also can't change the sampling interval for a trend like I can for a regular datalogger.
Under the "General" tab for the Trend object is a "Sampling Interval" property that is used for that object.
Snap 2012-03-02 at 10.20.32.jpg
Snap 2012-03-02 at 10.20.32.jpg (14.98 KiB) Viewed 12979 times
Do I have to log the same tag to a datalogger and use the trend history?
The Trend and DataLogger are separate objects/functions in iX Developer and do not share data.

Re: Trends & DataLoggers

Posted: Fri Mar 02, 2012 12:06 pm
by Ron L.
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.

Re: Trends & DataLoggers

Posted: Tue Oct 16, 2012 11:12 am
by memethemyn
Hi Mr Ron..

In scripting page which code we can use to datalogger once?

Thanks..

Re: Trends & DataLoggers

Posted: Tue Oct 16, 2012 11:23 am
by mark.monroe
Not sure what you want. But here is a screenshot of where you can set the datalogger capture settings.
Snap 2012-10-16 at 11.22.42.png
Snap 2012-10-16 at 11.22.42.png (57.73 KiB) Viewed 12725 times

Re: Trends & DataLoggers

Posted: Tue Oct 16, 2012 11:38 am
by memethemyn
For example I want to logonce in scripting

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; 
			}


Re: Trends & DataLoggers

Posted: Tue Oct 16, 2012 11:43 am
by mark.monroe
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++;