Problem with SVTREND(GETTREND)

8 Posts
4 Users
0 Likes
24 Views
(@d.schmidt@pcvue.de)
Posts: 0
New Member Guest
 

Hello,

I'm having a little trouble with the SCADA Basic function SVTREND(GETTREND).

For some reason I cannot figure out, I don't get any results although there are historical data for the respective period of time. For example 08/07/14, 09:00:00 to 08/07/14, 12:00:00.
The return code is 1, but when I write the buffer to a file, the file is empty.

I attached my test project. Would be great if somebody has an idea.

Another issue I have is, that the first two requests always return the code 1. Starting with the third request I get the return code -15.
Which I also do not understand. Why does the variable not exist all of the sudden?

Thanks.

BR,
Daniel

 
Posted : 08/07/2014 6:01 pm
LM
 LM
(@l-micaudarcinfo-com)
Posts: 383
Member Admin
 

Hello Daniel,

Did you try with sv_hmidemo project of version 10.
I did test with success 1 hour ago.

I wonder if decimal separator defined in Windows is important or not. Take care of it and try semicolon if it is not your default configuration.

 
Posted : 08/07/2014 7:24 pm
(@d.schmidt@pcvue.de)
Posts: 0
New Member Guest
 

Hi Ludo,

Thanks for your reply.

I didn't try with the HMI demo of Version 10, but with the demo project from KB411.
And it also worked fine. So the separators shouldn't be an issue.

And according to the code of the demo project, I basically did everything that's necessary.

 
Posted : 08/07/2014 7:50 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

Hi Daniel,

In your program we can see your date are "08/07/17" !!!

 
Posted : 09/07/2014 6:57 am
(@d.schmidt@pcvue.de)
Posts: 0
New Member Guest
 

HI Nico,

thanks for the notification. But unfortunately with the correct period the result is the same.

The console always returns:
281609008
TEST: 0: 1
ParamBuff: 130343560
281609008
TEST: 1: 1
ParamBuff: 130343560
281609008
TEST: 2: -15
ParamBuff: 130343560
281609008
TEST: 3: -15
ParamBuff: 130343560
281609008

and the file is always empty.

 
Posted : 09/07/2014 12:27 pm
(@d.schmidt@pcvue.de)
Posts: 0
New Member Guest
 

Solution found!
Thanks everyone!!

 
Posted : 09/07/2014 5:33 pm
BO
 BO
(@b-olombelarcinfo-com)
Posts: 196
Reputable Member
 

Hello Daniel,

What was the problem ?

thanks

 
Posted : 09/07/2014 9:28 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

Applicative issue...

 
Posted : 10/07/2014 6:32 am