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
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.
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.
Hi Daniel,
In your program we can see your date are "08/07/17" !!!
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.
Solution found!
Thanks everyone!!
Hello Daniel,
What was the problem ?
thanks
Applicative issue...


