5/13/2014 10:05 AM | |
Posts: 1299 Rating: (136)
|
Hello, With WinCC Runtime Professional it should work the same way as in WinCC 7.2 Which target system do you use in WinCC TIA? K!ke |
5/14/2014 4:07 AM | |
Posts: 291 Rating: (69) |
Hi K!ke, Thanks a lot for your rapid reply! I'm using WinCC WinCC Advanced V12.0 SP1, not a Professional version. And will apply the system to TP1200 panel. I don't know whether it works in a Professional version or not. But it is supposed to be working fine in an Advanced version according to the following linkage: Document: WinCC Advanced V12.0 SP1 (07/2013, English) "GetRulerData": Returns the value of the called trend at the ruler position. Pity it doesn't work. By the way, Because there seems to be a limit of 0~999 regist for trend data in the Trend-View. We're trying to make it a zoom-in and zoom-out functions with our own calculated interpolation value for each trend in the Trend-View. Thanks again for your response! Best regards, Komi |
5/14/2014 7:54 AM | |
Posts: 1299 Rating: (136)
|
Hello, in the manual you linked on page "OnlineTrendControl" there is a table which Method is working in which version of TIA. The method "GetRulerData" is valid for Runtime Professional only. Why don't you use the implemented zoom function? K!ke |
5/14/2014 9:23 AM | |
Posts: 291 Rating: (69) |
Hi K!ke, Thanks again for your reply! We don't use the implemented zoom function because it doesn't meet our needs. The native "zoom" function of TrendView can display 1000(index:0~999) regists at a time, our source archived trend has 8192 regists (index: 0 ~8191 / DWord). If using native "zoom" function, it can zoom-out with a upper-limit to index:999. For example, you may have it zoom in displaying a rought curve while showing 0..499 or have it zoom out displaying a sharpen curve while showing 0..999 or so, but there's a limit of 1000 regists still. What we need is to let it display 0..8191 regists at the same time. So we need to do the index remapping from index 0..8191 in proportion to 0..499 to have the trend redrawn. & ***** We need to redraw the trend by giving interpolated values. If the GetRulerData function is valid, then it will be more convenient for us to get the x-index, then we don't have to create our faking "ruler" upon the TrendView. [e.x: for remapping the index] 0 0 : : 2047 254 : : 4095 499 : : 8191 999 P.S: It seems I misunderstood the classify of Siemens MDM. Thanks & best regards, Komi |
5/14/2014 11:34 AM | |
Posts: 1299 Rating: (136)
|
Hello, if I get you right, your archived tag has 8192 values and you try to interpolate this to1000 values. or do you try to "fool" the trend view so it shows all your values? K!ke |
5/15/2014 5:41 AM | |
Posts: 291 Rating: (69) |
Hi Kike, To be brief, (1) Our original requirement is to display all of our 8192 archived records in the whole TrendView at the same time. (2) As an alternative way, we interpolate the values to 1000 records to be shown finally. (3) For better performance, we don't want to calculate the interpolation from time to time. Just do the calculation after user switched to the Trend screen and drag the ruler and so on. (*****As you may guess why we don't provide the TrendView with a datasource having index0~999.) Actually we have set up all the auxiliaries. Values are being archived in an array and mapped to "corresponding index" and to be shown in TrendView perfectly. Except that ... We need to draw a ruler to get the X-index for mapping to the "corresponding index" and calculating the interpolated value. ***** Because the TrendView is always on the foreground, thus partial of our hand-made "Ruler" is always shielded behind. If we could get the ruler data from the native ruler, things will be more perfect. Sorry for my poor explanationand thanks for you patience. Best regards, Komi |
5/16/2014 7:28 AM | |
Posts: 1299 Rating: (136)
|
Hello, I think in this case using Runtime Professional would be more suitable. There you can automatically compress the archive using the mean value etc. or as mentioned before read the ruler data. But as I don't know the rest of your project I cannot decide if this is a alternative. K!ke |
5/16/2014 10:27 AM | |
Posts: 291 Rating: (69) |
Hi K!ke, Thanks a lot for your suggestion!! Actually I would like to take use of Professional version myself. I think it saves time. Though my colleague is more familiar with "Advanced version", maybe this will be a trigger for him to get access to "Professional version". Best regards, Komi (P.S: I would like to post his "artificial TrendView" next week after we getting back to our office from our engineering trip!) |
Last edited by: Komi at: 5/16/2014 10:28 AMTypos corrected. |
|
5/28/2014 7:26 AM | |
Posts: 291 Rating: (69) |
Hi K!ke, Just for your reference. Please take a look at the attachment including 2 snaps of our artificial rulers. Now it seems working well, but it will be better if there's a horizontal scroll bar aside. (no such a control) Just for your reference! Have a nice day, Komi AttachmentDIY_Ruler.zip (275 Downloads) |
This contribution was helpful to1 thankful Users |
Follow us on