Loading new curves into report via Script

Hello everyone!
I tried the following to add a curve into a report via VBS-Script
Call GraphObjNew("2D-Axis","MyGraph")
Call GraphObjOpen("MyGraph")      
  D2AXISSYSTEM     ="one system"
  Call GraphObjNew("2D-Curve","MyCurve")
  Call GraphObjOpen("MyCurve")
    D2CCHNXNAME      ="Eigenschaften/Zeit"
    D2CCHNYNAME      ="Eigenschaften/Geschwindigkeit"
  Call GraphObjClose("MyCurve")
Call GraphObjClose("MyGraph") 
Call Picupdate()
The Script runs without errors, but the Curve won't be added into the 2D-Axis Object. Does anyone know how to solve this problem?

Hi Robert,
Wenn I modify your code ever so slightly to operate on the channels I have in the Data Portal, and then execute the code in DIAdem 10.2, it works perfectly for me:
Call GraphObjNew("2D-Axis","MyGraph")
Call GraphObjOpen("MyGraph")      
  D2AXISSYSTEM     ="one system"
  Call GraphObjNew("2D-Curve","MyCurve")
  Call GraphObjOpen("MyCurve")
    D2CCHNXNAME      ="[1]/[1]"
    D2CCHNYNAME      ="[1]/[2]"
  Call GraphObjClose("MyCurve")
Call GraphObjClose("MyGraph") 
Call Picupdate()
Of course, it creates a tiny little graph in the upper left hand corner of REPORT, which is probably not exactly what you want, but it is what you're asking DIAdem to do for you with the code.  I assume this is not happening for you.  What version of DIAdem are you using?
On another note, I'd actually encourage you not to create the 2D-Axis programmatically, but rather to configure its location and appearance by hand and save a *.TDR file, which you can then load with PicLoad() or PicFileAppend().  If you leave off the first line of your code, the rest of it will then programmatically add curves and configure them as you wish.
Brad Turpin
DIAdem Product Support Engineer
National Instruments

Similar Messages

  • Firefox freezes when I load new pages into new tabs. This started a few weeks ago after I downloaded the latest update to firefox, currently running 7.0.1

    After installing the latest update to Firefox a couple of weeks ago, loading new pages into new tabs takes a very very long time IF the page loads at all. I usually have to close the original tab to get the new tabs to load their pages. Sometimes I have to close all Firefox windows and start over to get the page I want to load.
    This only started after downloading and installing this new update. I had no problem with new pages/tabs with previous versions.
    I have rebooted, run full scans with Spyware Doctor, Malwarebytes and McAfee without solving the problem.

    Look the SOLUTION CHOSEN:
    https://support.mozilla.com/en-US/questions/882621
    and ''John99'' reply down the chosen solution.
    thank you

  • Writing commands to get specific data channels in the output report via script or automated script generation..

    In my project I have to make certain calculation and then get the data plotted in the given report template. I am using automated script for this. My script is doing all the calculations and then it not selecting and drag-dropping the selected channels on the report template. Its saving the blank report template.
    I am struggling to get the data for specific channels plotted by using the script. I need the selected channels to be plotted on this report template and then get it saved.
    Any help will be deeply appreciated. Thanks
    Solved!
    Go to Solution.

    Hi LaxG,
    Brad is absolute right. It is possible to create your whole layout via script.
    If you have loaded  the example report layout you can copy these lines to create a new line in your plot. This is the recommended object oriented way.
    call Report.Sheets("Blatt 1").Objects("2D-Axis1").Curves2D.Add(e2DShapeLine, "anyName")
    Report.Sheets("Blatt 1").Objects("2D-Axis1").Curves2D.Item("anyName").Shape.XChannel.Reference               = "[1]/Zeit"
    Report.Sheets("Blatt 1").Objects("2D-Axis1").Curves2D.Item("anyName").Shape.YChannel.Reference               = "[1]/Geschwindigkeit"
    For performance reasons it's recommended to use the it like this.
    dim oLine
    set oLine = Report.Sheets("Blatt 1").Objects("2D-Axis1").Curves2D.Item("anyName").Shape
    oLine.XChannel.Reference               = "[1]/Zeit"
    oLine.YChannel.Reference               = "[1]/Geschwindigkeit"
    Like Brad mentioned it is much easier, that you have a stored template of your report with all setings and customisations already done.
    You open this layout file and have stored the names of your calculated channels. When you are doing this with a script they always have the same name and belong to the same group.
    Now you can customize the references of the line items.
    Kind Regards,
    Philipp K.
    AE | NI Germany

  • Loading New Substitution Variables with Esscmd Script

    Hi, I posted a topic awhile ago and haven't gotten any responses to help. I was wondering if tehre is a script to load NEW substitution variables into a database using an ESSCMD script. The UPdatevariable doesn't work if you don't already have variables in teh database loaded. I need to load them in. THANKS

    while I have not had luck with ranges in report scripts, others have. You could have a substitution variable the is "Jun" "Jul " "Aug" or whatever you want the members to be. and it will replace jusr fine

  • Loading new pages into frames

    Hey Murray
    or anyone else : )
    This might seem like a redundant question but it would seem
    there is some confusion surrounding it.
    I say this because I can't seem to get an answer.
    I have a site that uses a page with a frame and a swf control
    ( just a swf with buttons that load the new pages into the frame.
    click on photos and it loads the photos.html page into that frame
    and so on. )
    I won't work in IE just displays errors. Is there a work
    around?
    Is there a better way to do this that would just entail
    building a new nav control?
    Any help would be great!!! please bear in mind it must work
    in IE, FF & SAFARI
    thanks in advance Von

    VonPeters posted in macromedia.dreamweaver
    > Your right Mark I'm not going to try and post from my
    iphone
    > anymore seems to easy to accidently post more than once
    and to
    > miss information. I didn't see that Murray had asked for
    a link.
    I suspect that is caused by the Web forum, not the iPhone.
    The vast
    majority of double posts come from Web users rather than
    newsgroup
    users.
    > That being said I'm Sorry for any confusion or
    frustration caused
    > by the above
    > post/s. My Bad and yes that clarified things. I had
    > misinterpreted his response of ewww as that I should go
    about it
    > another way.
    Judging from his previous posts on the subject, I don't think
    you
    misinterpreted him at all. He has often posted a
    comprehensive article
    on the disadvantages of using Flash navigation and many
    others
    discourage it as well.
    And you would be hard pressed to find anybody anywhere
    encouraging
    the use of frames in any but the most limited cases these
    days.
    I can see where you might want to use a frame here, but since
    it seems
    to be an all Flash site, why not use Flash's built-in
    features to load
    other movies. I think that would be loadMovie().
    > Sure any additional browsers would be great to have the
    pages
    > working on as well. Though the main ones
    > which I mentioned above are all that are really needed
    and are
    > the only ones I will be testing on.
    OK. I revise that with my 3rd paragraph below.
    > The error that is being displayed is simply "error on
    page" in
    > reference to
    > clicking on any of the links in the flash nav bar.
    I wasn't able to get that far. In IE 7, I chose No when it
    asked me to
    upgrade the Flash plugin to version 10. I am left with a big
    black
    window containing the [Get Flash Player] icon and
    non-functioning links
    at the bottom.
    There are a large number of people who surf the Web from
    their office -
    or office-supplied computers. They often do not have the
    access to
    install software.
    Since this appears to be a 100% Flash site, you are not
    really
    restricting use to the mentioned browsers, but restricting
    use to
    browsers with Flash Player 10 capability.
    And they must scroll to the right if their browser viewport
    is less
    than 1024.
    > It doesn't give
    > me anymore info than that. No error type hence no way
    that I know
    > of to hunt down the fix.
    > Which is why I am here.
    > Here's a link to the beta version of the site. It's not
    finished
    > yet and there are still things to fix, add, adjust etc.
    > But you'll get the idea.
    >
    >
    http://www.vonpeters.com/build/
    Were you able to see Alan's first reply? He may have guessed
    what the
    problem is.
    If that doesn't do it, I suspect you might have better luck
    in one
    of the Flash forums. There may be more people in there
    accustomed to
    creating Flash-only sites.
    Sorry I couldn't be of more assistance, but FWIW, one or more
    of the
    "pages" seems to link to a broken "Untitled_Document.flv"
    file.
    Mark A. Boyd
    Keep-On-Learnin' :)

  • How exactly to load new fonts into Gimp???

    Hi,
    I've tried everything I can find in teh forums and the wiki to load fonts into Gimp 2.3. They just will not appear in the fonts dialog. It's driving me nuts.
    Can someone please spell out exactly how to do this?
    I've loaded the fonts into /root/.fonts - no go. I've loaded them into gimp's font dir - no go. I've run fontcache - no go.
    I'm at my wits end.
    Jim

    You should put the fonts in your user's ~/.fonts (I hope that you don't run Gimp as root?). Then just run fc-cache -v to update the font cache and restart Gimp.
    If you haven't modified /etc/fonts/fonts.conf, the entry <dir>~/.fonts</dir> should be listed there and thus the users ~/.fonts directory will be searched for fonts.
    Have a look at the Archlinux wiki as well:
    http://wiki.archlinux.org/index.php/Fon … l_fonts.3F

  • Loading scripts - what's the difference between loading into edge via script window and including a script in the html document?

    I have a html page that loading in two edge compositions and an external custom javascript file. The javacsript file includes the bootstrapCallback so I can store references to the loaded compositions and can communicate with them. This seems to work well. The problem have is when I also try and load in a custom plugin javascript files into the edge compositions via the script window inside edge - I don't understand how this works, for example if I load in a custom javascript file into one of the compositions can only that composition use it's funcitionality? Is loading in scripts via edge script window the same as including in html document, I'm confused how the two relate, please help me understand.

    I have a html page that loading in two edge compositions and an external custom javascript file. The javacsript file includes the bootstrapCallback so I can store references to the loaded compositions and can communicate with them. This seems to work well. The problem have is when I also try and load in a custom plugin javascript files into the edge compositions via the script window inside edge - I don't understand how this works, for example if I load in a custom javascript file into one of the compositions can only that composition use it's funcitionality? Is loading in scripts via edge script window the same as including in html document, I'm confused how the two relate, please help me understand.

  • Create new sheets in report with script?

    Is it possible to create new sheets in the report using VBscripts?
    I am writing a script that will create a report with different sheets. The number of sheets in the report will change in each report depending on the number of groups added in the data portal. For example: If there are 3 channel groups in the data portal I will need 3 sheets in the report.
    I searched for the instructions but I could not find how to do it.
    And another question: how can I insert the name of a channel group in the report?
    I am using DIAdem 9.0.
    Thank you very much!

    For all with the same problem: You can copy the Picture an paste it automaticaly in ms word.
    Here my code:
    Call PicPrint("WinClip") ' Copy picture to clipboard
    'open Word document
    ' Start Word via OLE.
      ' Always a new instance of Word will be created.
      Set Word = CreateObject("Word.Application")
      ' Make Word visible. Until now Word was not visible.
      Word.Visible = True
      ' Maximize Word-window.
      Word.WindowState = wdWindowStateMaximize
    ' Create new Word-document based on prepared template.
       AutoDrvLibr="C:\......"    'direction of the Word ducument
       Const DiademWordTemplate = ".....doc"                                'ducument name
       Word.Documents.Add AutoDrvLibr & DiademWordTemplate, false
        ' Maximize document-window.
    call copy_to_Word
    Private Sub copy_to_Word
      Word.ActiveWindow.WindowState = wdWindowStateMaximize
      ' Activate fullpage mode in Word.
      Word.ActiveWindow.ActivePane.View.Zoom.PageFit = wdPageFitFullPage
      ' Set reference to Word-document.
      ' With the help of this reference you can easily acess the Word-document.
      Set WordDoc = Word.ActiveDocument
    Const wdPasteMetafilePicture = &H3
    'Paste picture
      Word.Selection.Range.PasteSpecial , , , , wdPasteMetafilePicture
      Word.Selection.EndKey 5                 'Set Courser to end of page
      Word.Selection.Range.InsertBreak(&H1)   'paste new sheet
      Word.Selection.MoveDown 5,1             'move ohne row down to set the courser to the next page
    end sub

  • Add prproj sequences into AME, via scripting

    Hi,
    we're using CS4 and the "Watch Folder" feature would have been nice, if it worked on prproj files.
    I tried to see what happens during export with a Sysinternals tool named "process monitor" but the log is just too big to make sense of.
    How can I add a prproj sequence to AME (Media Encoder) from the command line, or via windows scripting host, or via APIs?
    Our projects usually have just one sequence, or it has a known name. Since prproj files are XML, we could even have our own heuristics in script code. All I need is a way to feed a sequence from a prproj into AME.
    Choosing a named preset from AME is okay. We could provide all encoding settings explicitly though, if that's required.
    We need this because we have dedicated encoding boxes on the network and we could push a project (including video and audio sources) into a shared directory for the encoding box to pick up. Right now, we have to physically be at the encoding box, opening the prproj and exporting the desired sequence. It'd be nice to be able to cut and edit somewhere else and just push the encode job over the network.
    Is there any way?

    AME has no trouble at all understanding PP project files, and uses them regularly to do it's job.  Just not via the Watch Folder.  Sequences have to be manually set up.
    Indeed! I should have added " Watch Feature"  to maintain clarity.
    ...AME cannot transcode a PP sequence from another machine.
    Yes it can; we've done it and it works great! But even if it didn't, automatically pushing files to another computer's local storage is trivial. In either case, you then have to manually load the project & sequence, which gets back to the OP issue I think.
    To crackwitz or anyone else who stumbles upon this, there may be a workaround. You may be able to write a script via extendscript in AE, and Dynamic Link to a PPro project (locally stored or otherwise), then render from AE. My trials indicate that AE renders our projects at 50% the speed of PPro/AME (a well-known issue). That said, the ability to offload the rendering to a non-editing machine is worth the tradeoff in our case (it may not be in all cases). There are additional things to consider as well, including encode setting inconsistencies between PPro/AME and AE. The part we have not tested is whether you can specifiy a sequence via extendscript. If not, this will not work. If we confirm one way or another, I'll post back.
    It'd be great if Adobe could kick it up a notch for customers that need greater levels of automation and work-flow efficiency with regards to rendering. However, these types of features have been a need for us for years, so I would encourage anyone interested not to wait on Adobe for this, and experiement with work-arounds, and share what you come up with!

  • How to add a new font into Report Builder and Oracle Forms/Reports Server?

    Hi,
    I've searched the forum and can't find this being discussed.
    My developers run Report Builder 10.1.2.0.2 on their XP laptops.
    Their reports run (in production) on Oracle Forms/Reports Server 10.1.2.0.2.
    This server runs on MS Windows 2003, SP2.
    They've got a client who wants reports using the "Garamond Western" font.
    So....how do I get this font onto the developer's Report Builder laptops, and onto the Oracle Forms/Reports Server?
    I've moved various 'Garamond' fonts into C:\WINDOWS\FONTS on both the laptops and the server, but neither seem to recognize it.
    Thanks for your help.

    Thanks.
    This answers 1/2 of my question.
    The developer can now use Report Builder on his laptop, with the new fonts.
    But when he moves this new Report to the Oracle Application Server/Forms-Reports Server, it fails to use the new fonts.
    The Oracle App Server/Forms-Report Server is Version 10.1.2.0.2. It runs on MS Windows 2003, SP2.
    I have installed the exact same fonts on this server, into C:\WINDOWS\Fonts.
    I have used REGEDIT to change REPORTS_PATH....and placed C:\WINDOWS\Fonts; as the first value in this field.
    I have then stopped and restarted the Forms-Reports Server.

  • How to Load new members into existing dimensions in Planning 9.3.1

    Hi,
    I am not having HAL, and is it possible to load members into existing dimensions of a newly created planning application - for example under accounts I want to add around 100 members - how to add them using a flat file without using HAL - is there anyother way out.
    Can we use workspace->Navigate ->administer->Dimention Library
    Create a new dimension here add that to Accounts ?? help me in this

    John,
    Can you suggest me the syntax to be used for the below example to create a flat file
    the Hiearchy I have(for accounts and entity)
    current:
    Accounts
    I need t have the following children under Accounts
    Child of Accounts:Assets,alias(assets of x company)
    Child of Asssets: 101, alias(asset1),Datastorage("store"), base currency("USD"),aggregation(+),Plantype("plan1")
    Regards,

  • How to load new hirearchys into BW system from R/3

    Hi
    For PROFIT_CT & 0Account Hirerachies in R/3 source system,
    a new hirearchy has been added and this new hirearchy need to load into BW system as it doesnt exists in BW system.
    But in infopackage selection this new hirerachy doesnt exists,hence I tried to find this new hierarchy by REFRESHING in Infopackage Hirerachy Selection tab.Even then this new hirearchy doesnt exists.
    But this new hirerachies exists in R/3 source system.
    Can anyone let me know how to load this
    Shankar

    Hi Barry
    Thanks for your message
    This Tcode KSH3 is for Cost Center Hierarchy but not for Profit center or Account .
    I checked in KCH3 & KDH3 tcodes for Profit center or Account hirerachies in R/3,
    Both the hirerachies are mentioned in top node in R/3
    But still these hierarechies doesnt exists in IP in BW
    Can you let me know little further
    Shankar

  • Is it possible to load new XML into SWF

    It would sure save a lot of energy, time, headbanging, etc. I
    have searched and can't come up with an answer. I am willing to
    chase it if I know it's out there, but I hate to waste a week on an
    idea just find it can't be done. I want to reload and XML file and
    update the info within an existing swf, without reloading the swf.
    Can it be done? Anybody know?

    OK, this looks like it is going to work, I just have one
    issue .. I think.
    I am using the loaded xml to generate a list of buttons in a
    list box. Once a button is clicked, I have the functions all
    working, sending he correct data, loading the correct xml. The
    problem is, it's not removing the old. It just adds to what is in
    the list box already - no good. How can I get rid of what is there?
    I have been searching for removal techniques but I am coming up
    empty so far.
    Thanks for any help!

  • I cannot load new brushes into Elements 12

    I just downloaded Elements 12.  I am trying to add new brushes.  I have some in a folder in my computer.
    I followed instructions:  Open Hard drive, go to Program Files (I also had to open Common Files), go to Adobe,
    open Plug Ins.  What I get is Elements 12 with no other files .... no brush folder, nothing.
    Now what?

    Which operating system are you using?

  • How do you load new ringtones into Iphone4?

    I have downloaded and paid for Ringtones but I cannot make them appear in the selection list? Can anyone advise how to do this?

    If you purchased them on your computer, you have to connect your iPhone and make sure ringtone syncing is turned on in iTunes.

Maybe you are looking for

  • How to have two times the same iTunes library ?

    My parents are separated, so I have two computers (one with my father and the other one with my mother) and all my music is in the computer with my mother, I want to have the same iTunes library to my father how I should do?

  • Export Screen to Flat Text file

    Hello, I'm very new in SAP and need to modify a little program. I would like to export the current screen in a flat text file. The file must be stored on the SAP server ( /usr/sap/data/bel) so not on my local harddrive. I searched and found found fun

  • Error in RFx : Item type 'Service' not allowed for this Item

    hi , experts,   We use SRM7.0 in Standalone scenario .   i get an error when i transfer SC to RFx :     Line 0001: Item type 'Service' not allowed for this Item . if someone kindly tell me how to correct this Error.   another question is ,in the Stan

  • Where is the underscore in the iPad

    Where is the underscore in the iPad keyboard?

  • Lens profile downloader does not install profile into LR5

    I am trying to install a lens profile for a Canon 400mm 5.6 L lens into LR5. I am using the lens profile downloader 1.0.1 this did install this lens profile to my LR 4 version. It appears to install this lens profile into LR5. However when I look in