DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

customize "transfer to report"

How can I change the presets of the colors in the charts if I bush the button in modul "view" -> "transfer to report"?
 
Every time I`ll use this button I have to change the colors ... (modul "report")  of the chart (from black to green...)!
 
In V8 it was possible to change the transgrf.aut!
0 Kudos
Message 1 of 11
(5,275 Views)

Hi - I have a related question that I have been forgetting to ask.  When I "transfer to REPORT," I would like the X and Y axis labels to appear (as they do when you create a new 2D axis in REPORT).  It would be neat if there was some type of configuration one could set up for this, and other settings, too.

Thanks!  Julia

0 Kudos
Message 2 of 11
(5,270 Views)

Hi gunter79, hi Julia,

in DIAdem 10 it´snot possible to change the script for doing "transfer to report". The only thing which you can do...write your own script, change menu in DIAdem (e.g. MenuItemAdd) so that you can call your script over menu.

Best regards,

Rebecca Fox

Rebecca Fox
Applications Engineer
National Instruments
0 Kudos
Message 3 of 11
(5,252 Views)

I am creating a custom "Transfer to Report" script but I can not find a command to give me the X and Y bounds on a graph.  I see the "YScalingBegin" and YScalingEnd" but this only works if the graph is set to manual scaling.  If autoscale is used, the functions return zero's.  I do not what to have to set cursors then look at the cursor values.  Are there any commands to return the X and Y beginning and end points while scaling is in autoscale?

BTW - Using DIAdem 10.1

Thanks,

AJL

0 Kudos
Message 4 of 11
(5,038 Views)

Hi AJL,

I'm not aware of a way to do this with REPORT functions, but since you can easily get the channel for each axis, you can calculate those values by using the CMin(channel) and CMax(channel) functions.  If you have manual Y scaling in VIEW, then you can use the View object to query out those values for the Y axis.

Brad Turpin
DIAdem Product Support Engineer
Naitonal Instruments

0 Kudos
Message 5 of 11
(5,020 Views)
Hi AJL,
I don't know, if I understand you correct.
I do can read the x- and y-axis - begin / end in autoscale-mode in report:
 
Call GraphObjOpen("2D-Axis1")
  Call GraphObjOpen("2DXAxis8_1")
    msgbox D2AxisXbegin
    msgbox D2AXISXEND
  Call GraphObjClose("2DXAxis8_1")
  Call GraphObjOpen("2DYAxis8_1")
    msgbox D2AxisYbegin
    msgbox D2AXISYEND
  Call GraphObjClose("2DYAxis8_1")
Call GraphObjClose("2D-Axis1")
greets Andreas

Volkswagen AG
Wolfsburg - Germany
0 Kudos
Message 6 of 11
(5,005 Views)

Thanks for the replies, although, I am not sure how the Cmin and Cmax functions will help.  By what I see this will find the max and min for the entire channel not just the data on the graph in the VIEW.  I'm assuming the DIAdem native TRANSFER TO REPORT is using the same scripting language as what is provided to its users so I am curious if anyone knows what command the native script uses to read the X and Y scaling information from the VIEW and writes it to the REPORT.

 

Thanks,

AJL

0 Kudos
Message 7 of 11
(4,988 Views)

Hi AJL,

I see, you are plotting a subset of the X-axis in VIEW, and you want to recover this in REPORT.  When I do this in DIAdem 10.1, I get the correct Xstart and Xend values in REPORT-- that is, I see the same zoomed image in REPORT that I saw in VIEW.  I take it this is not happening for you.

If you are not using the new zooming method in DIAdem 10.1, which seems to work for me as described above, then you can always read off the exact Xstart and Xend values from the View object with:

Msg = Msg & View.ActiveSheet.Cursor.X1 & vbCRLF
Msg = Msg & View.ActiveSheet.Cursor.X2
MsgBox Msg

Brad Turpin
DIAdem Productsupport Engineer
National Instruments

0 Kudos
Message 8 of 11
(4,982 Views)

Brad Wrote: 

"I see, you are plotting a subset of the X-axis in VIEW, and you want to recover this in REPORT.  When I do this in DIAdem 10.1, I get the correct Xstart and Xend values in REPORT-- that is, I see the same zoomed image in REPORT that I saw in VIEW.  I take it this is not happening for you."

I am using DIAdem 10.1.  How are you getting the data from the VIEW to the REPORT?  In my script, I am looking up the channels for each graph in the VIEW then adding them to a curve in the REPORT.   Here is how I am currently getting the data to the report:

D2CCHNX = Curve.XChannelName

D2CCHNY = Curve.YChannelName

Is there a better way to do this?

 

Thanks,

AJL

0 Kudos
Message 9 of 11
(4,978 Views)

Hi AJL,

When I said that the scaling worked on my end, I was referring to the existing "Transfer to REPORT" icon, not a customizable replacement function.  I have since spoken with R&D about this, and they are using unreleased features to gather the scaling information from a graph in VIEW that has been zoomed into with the new zooming feature in DIAdem 10.1.  There's no way to get this information with a regular VBScript in DIAdem 10.1, and I have asked R&D to please add this to the VIEW object model in a future version.

In the meantime, I suggest that you zoom with the old (<10.1) band cursor method, after which you can read off the X1 and X2 values directly from existing View object properties, as I outlined above.

Brad Turpin
DIAdem Product Support Engineer
National Instruments

Message 10 of 11
(4,963 Views)