RS TrendX as an active X control

JohnW

Member
Join Date
Mar 2004
Location
Cornwall
Posts
487
I am trying to use RS TrendX as an active X control in a Delphi SCADA project, I can't get the data into the control. can anyone help?

Here is the code I'm using;

procedure TTrendForm.Timer1Timer(Sender: TObject);

Var
VacRaw,VacScaled : integer;
DemRaw, DemScaled : integer;
Variable: variant;
DataVac: array [0..1] of variant;
Begin

Begin
//get data from PLC
VacRaw := N7[10]; //(N7 is a global variable array)

//scale data from PID to engineering units (mBar)
VacScaled := (VacRaw * 1000)div 16383;
DataVac[0]:= VacScaled;

//send value to RS TrendX control
RSTRendX1.NewData (now,Timer1.Interval,DataVac);


end;



end;
 

Similar Topics

I am using RSView 32 version 6.30.16 Works on my laptop to modify a Runtime project on a desktop PC which is the same version. I have moved some...
Replies
2
Views
4,468
Factory Talk used to use a trending product called TrendX. GE uses a product with the same for displaying archived data in their Proficy View HMI...
Replies
0
Views
1,496
Hello, I have one computer where the trends fail to create a history log. The first time you open a trend ( on project load ) it says "failed to...
Replies
1
Views
1,941
Hello everybody. Please help solve the problem. In Factory Talk part of the tag has been moved from one log file to another. Now I need to make...
Replies
0
Views
1,273
Hello All, I need RSTrendX .ocx File. I've been searching the Net for over an hour and no luck. Can you please help me if you know where to get...
Replies
9
Views
4,800
Back
Top Bottom