Trends & DataLoggers

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
bennanio
Posts: 14
Joined: Thu Mar 01, 2012 11:48 am

Trends & DataLoggers

Post 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?

User avatar
Ron L.
Posts: 214
Joined: Fri Jul 15, 2011 3:21 pm

Re: Trends & DataLoggers

Post 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 12947 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.
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer

User avatar
Ron L.
Posts: 214
Joined: Fri Jul 15, 2011 3:21 pm

Re: Trends & DataLoggers

Post 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.
Attachments
MwTrendUserCtrl.zip
(56.41 KiB) Downloaded 1020 times
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer

memethemyn
Posts: 51
Joined: Fri Apr 27, 2012 12:33 pm

Re: Trends & DataLoggers

Post by memethemyn »

Hi Mr Ron..

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

Thanks..

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Trends & DataLoggers

Post 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 12693 times
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

memethemyn
Posts: 51
Joined: Fri Apr 27, 2012 12:33 pm

Re: Trends & DataLoggers

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


mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Trends & DataLoggers

Post 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++;
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Post Reply