DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic View with DIAdem 2011

Hello everyone,

 

so my new task as a trainee has just come up... I need to use the View section in quite a smart way. Let's assume I have a 2D-Curve displaying pressure (Y-axis) function of temperature (X-axis). Let's also assume I have n channels showing say Current (Y-Axis) function of Voltage (X-axis), each at a given (different) pressure.

 

 

While I use the "hand" button and click on the first graph (Pressure = f (Temperature) graph) anywhere, which gives me a given temperature and thus a given pressure, I would like to see the corresponding graph (the Current = g (Voltage) one) below right away. I am also asked that the corresponding graph should immediately refresh to match the new value of pressure if I move the mouse.

 

Is it possible to do this ? How ? Can I find any tutorial dealing with this out there ?

Thanks in advance !

0 Kudos
Message 1 of 14
(6,618 Views)

Or maybe do it all on the Report. I actually do not need all this to be in the View section, if that is doable somewhere else (like Report) that's fine !

0 Kudos
Message 2 of 14
(6,599 Views)

Actually I have thought of it again and, unless you tell me that is doable, I do not think we can do this in the View section, but I am feeling confident it is possible in the Report section. All I need would be to display a graph (...done) and be able to get data from it only by clicking: for instance, by clicking I get the corresponding y-value of the point I just clicked on. Then I use this y-value I just got to display another graph (next to the one I was talking about) that corresponds to this y-value. If I click again somewhere on the first graph, the second graph refreshes into a new one that corresponds to the new y-value.

 

But I do not know how to get data from a graph displayed in the Report section. Would anyone know ? I hope my problem is understandable.

0 Kudos
Message 3 of 14
(6,588 Views)

Hello,

 

I have not found the solution of my problem yet... and I do not know whether nobody is responding because what I said is unclear or too complicated 😞

0 Kudos
Message 4 of 14
(6,554 Views)

Hello Near3,

 

I think I understand what you are trying to achive. And from this I think a solution in VIEW would make the most sense. Would it be possible to share an example dataset so that I can verify my assumptions ?

0 Kudos
Message 5 of 14
(6,548 Views)

Hi Andreas,

 

Sorry for the huge delay and thanks a lot for responding !

I have tried to get the channels you asked but I never could get enough attention from my boss, besides apparently there would be an issue about making public private documents of the company blabla... So I'm afraid I cannot help you, you who are trying to help me...

 

So I have found that Refresh method in the doc, but I do not know how to get things started in VIEW, nor do I know how to save the coordinates of the point I click on and use them to display another graph.

 

Would it be possible to see one basic script displaying graphs in VIEW (because when I try to do such things with Enable Recording Mode, there are bugs, error messages and nothing happens in the end, or only a new area but no new graph displayed) for DIAdem 2011 ? That way I could get some basis to work from, commands, and the impression that things are getting better. . .

0 Kudos
Message 6 of 14
(6,519 Views)

Hello Near3,

 

then we try without example data. What I was thinking of is using the cursor event in VIEW. If you move the cursor on a graph, you can configure VIEW to execute a function (script) you defined. In that script you can use the cursor position to determine the pressure value. With that value you would select the matching current/voltage channel pair and assign it to the second graph.

 

If you know the pressure how would you be able to find the matching current/voltage pair ? Do those channels have a property "saying" my related pressure is X ?

0 Kudos
Message 7 of 14
(6,514 Views)

As for your question, basically the pressure can be checked in the properties of those channels, so yes.

 

Ok so far I have some very basic script that works, and I am feeling that things are improving !

 

View.Sheets("Sheet 1").Areas("Area : 1").DisplayObjType = "CurveChart2D"
View.Sheets(1).Cursor.Type = "Frame"
View.CoordinateWnd.Visible = TRUE
View.ActiveSheet.Cursor.X1 = 10
View.ActiveSheet.Cursor.Y1 = 20
View.ActiveSheet.Cursor.X2 = 30
View.ActiveSheet.Cursor.Y2 = 40

 

How do I create a variable, for instance Z, which constantly equals X*X + Y*Y for example ? How can I display it below X2 and Y2 ?

Sorry but I did not find how I can configure VIEW to execute a function/script I defined.

0 Kudos
Message 8 of 14
(6,509 Views)

Please take a look at the examples for VIEW. Its under Examples...I am not sure what the title of the example in the English version is. The example shows how to calculate the tangent at the current cursor position. This should give you the basic structure you need.

0 Kudos
Message 9 of 14
(6,506 Views)

Thank you for your help.

 

I would also need to know how to fix this: when I want to display a curve in the second Area (which I created but has nothing on it yet) with the following command, i get an error message: "The area does not exist."

 

View.Sheets("Sheet 1").Areas("Area : 2").DisplayObj.Curves.Item(1).YChannelName = "ChannelName"

 

Would you know how to get rid of this problem ?

Thank you alreadu for the support you provided.

0 Kudos
Message 10 of 14
(6,495 Views)