Trend self-resetting the scale

Good morning,

when i use the ZOOM button to see a small part of the trend with the processa analyst, after few seconds the view get back at the beginning view loaded from the PAV file.

This issue happen when i use the function ProcessAnalystPopup().

Do you have any idea of why this happen and how can i fix?

Thank you

  • Hi Stefano,

    Does it happen if you do any other command? Or even do nothing at all?

    If you know how to use the Cicode Debugger, try pointing a breakpoint in "_PA_SelectCache_RestorePens" function of the PADisplay.ci file in the Include project.
    Perhaps your code has a task that launches a refresh of the cache or something?

    If this turns up nothing obvious, get in touch with our Support team so they can help you diagnose what is going on.

    Cheers,

    bradley
  • Hi,
    yesterday after investigated i found that this happen only when i use the function ProcessAnalystPopup("PAGE","PAV","AN","Mode).
    I think is like a bug in the function. The issue happen without any command or mouse movement.
    For fix i've replace the single function with:

    FUNCTION LoadPavPopup (STRING PAVFile)

    ProcessAnalystPopup("","")
    ProcessAnalystLoadFile("PAVFile","","","AN19")

    END

    With this small function that i have created everything work fine.

    Ciao
  • Dear all,
    at really i've not fix the issue.
    The problem is that after few second the pen take the scale that i've set in the properties of the variable (RAW scale).
    If i keep empty the field the scale not change but i prefer keep the RAW scale with the correct value. Anyone have some idea how to fix it?
    Thank you
  • Hi Stefano,

    Your description is a bit hard to follow as I'm not sure whether there is a problem being described or its the default behaviour of the PA you want to change.

    Without seeing your project and maybe a video of the issue I am just guessing.

    You can of course configure the PA to not Autoscale the vertical axis for all / or a specific pen. Is that what you are seeing?

    By default the PA does two requests for a trend: Info request and a data request. The info request is where all the trend meta data (such as configured scales) are retrieved and applied to the pens - this could take a second or so depending upon how hard the trend server is working.

    If you are not quite getting the result you need, give Support a call so you can demonstrate the issue and they can go from there.

    Cheers,

    bradley
  • Thank you for the reply.
    I know that my description is not so clear but is not so easy to describe what happen. I want that when i load a pen the PA use the scale configured in the variable tag. But when i try to zoom (with the relative button) the scale changed (and this is right) but after few seconds (and without press or do nothing) the scale go back at the original. I've a video, is possible load on the forum?
    I've already contacted and sent the project at the support but no answer yet.
  • No problem Stefano. I'll let support handle it and they'll be able to get your video. No doubt it will come my way soon enough.