ActiveX, Macro, calculatio​n time

Hi,
I do a process control simulation, where a process simulation is performed via an Excel macro while the controller and vizualization  are realized in LabVIEW:
The control in LV generates the actuating signal, writes it to the excel sheet (via set_cell_value.vi), starts the excel simulation macro and then reads the process variables. (via get_cell_value.vi). This is repeated for every simulation step. It works fine, yet with increasing  simulation duration the time from calling the macro until completion (the calculation time)  increases: Starting with 1700 ms per cycle it comes to 5500 ms  after 500 simulatin cycles.
Running the macro alone in a loop in excel keeps the calculation time constant at about 2000ms,however. What "piles up" when calling a macro in each simulation step ?
Are there ActiveX parameters that must be set somehow ? 
Attached please find  jpgs of the ActiveX macro call and the time measuring in LabVIEW and the macro  in excel (only the root).
regards
Uli Hoffmann 
Attachments:
Calling a Macro and get calc. time_090626.JPG ‏109 KB
Carrying out the macro dynVerhalten_090626.JPG ‏137 KB

i am not sure about what the problem could be. It could be that LV call Excel via ActiveX. Not sure though. What is the reason for using an Excel Macro insted of foing it in pure G.
Joe.
"NOTHING IS EVER EASY"

Similar Messages

  • Will default macros work  with Time series keyfigures???

    Hi,
    I wanted to update time series keyfigures using Default macros. For example, i wanted to populate safety stock in a time series keyfigure while i'm running the heuristics in background.
    Whole idea of doing it is to do reporting i.e. we couldnot extract safety stock because its an auxialiary key figure.
    If someone has done this on a better way, can you please share with me?
    And also i wanted to know whether default macros work with time series key figures.
    Any help is rewarded with pionts.
    Thanks & Regards,
    Jagadeesh.

    Hi,
    I think i'm not clear on what i have posted so let make it very clear abt my scenario.
    We wanted to do reporting on SNP planning area, where we take report on
    Safety stock, Stock on hand which are auxialiry key figures currently.
    As we cannot extract data on auxialiry key figures, we wanted to track
    those information on Time series key figures.For that, we have modified
    the macros and copied the auxialiry key figures into time series key
    figures. All the macros are Default macros, all the prerquisites are been set and all other macros which are supposed to run before this macro, also been set.
    We are not running the bcakground jobs for this macros ( exclusively), instead we are running the heuristics in background and we assume that all the default macros will get executed once the heuristics is done i.e values in auxialiry key figures are been copied to time series key figures.
    Now we found out that Times series key figures are not getting updated
    using Default macros.
    Nowi think i make you all clear. Somehow my questions are still not answered.
    1. Without running background jobs seperately for macros, will time series key figures get updated?
    Thanks & Regards,
    Jagadeesh.

  • Function modules to read Time clusters B1 and B2 from PCL1 and PCL2

    Hi All
    Are there any function modules or macros to read time clusters B1 & B2?
    I want to read time data in the clusters for reporting purpose.
    Regards,
    Rupesh Mhatre

    You can also call the FM HR_TIME_RESULTS_GET and get the exact cluster you need from B2 like WPBP, ZE, SALDO etc.
    Otherwise if you want to use the older FM declare the GET_TBUFF and GET_BUFFER_DIR as of below structure.
    DATA: BEGIN OF TBUFF OCCURS 5000.                           "XPMK014785
            INCLUDE STRUCTURE PCL1.
            DATA: SGART(2),
          END OF TBUFF.
    DATA: BEGIN OF BUFFER_DIR OCCURS 2000,                      "XPMK014785
            SGART(2),
            CLIENT LIKE PCL1-CLIENT,
            RELID LIKE PCL1-RELID,
            SRTFD LIKE PCL1-SRTFD,
            NTABX LIKE SY-TABIX, "pointer auf aktuellen satz
            OTABX LIKE SY-TABIX, "pointer auf alten satz (falls vorhanden)
            NNUXT LIKE PCL1-SRTF2, "anzahl folgesaetze aktueller Satz
            ONUXT LIKE PCL1-SRTF2, "anzahl folgesaetze alter Satz
          ofset(3) type p,     "offset innerhalb eines entry
          END OF BUFFER_DIR.
    INT_TIME_RESULTS should be of type PTM_TIME_RESULTS.
    Regards
    Ranganath

  • Is it possible to define macros for Safari 6?

    I'd like to define a macro that will do the following in Safari 6 (1) remove all cookies, (2) delete the history and (3) empty the cache. I'd like to run this macro at any time when Safari is open. Is it possible to automate this?

    Where is the value of that variable coming from?
    The simplest way to implement a global variable in a database is to create a table that stores the value and have all the code reference that value.
    INSERT INTO tab2( x1, x2, x3, y )
      SELECT tab1.x1, tab1.x2, tab1.x3, global_variable_table.VARIABLE
        FROM tab1, global_variable_table
    WHERE <<some condition>>
    You can also create session-level variables using either package variables or session contexts, though that may cause a few problems for three tier applications that don't cleanly map user sessions to database sessions.
    INSERT INTO tab2( x1, x2, x3, y )
      SELECT tab1.x1, tab1.x2, tab1.x3, SYS_CONTEXT( 'MY_CONTEXT', 'MY_VARIABLE' )
        FROM tab1
    WHERE <<some condition>>or
    INSERT INTO tab2( x1, x2, x3, y )
      SELECT tab1.x1, tab1.x2, tab1.x3, pkg_variables.get_variable_y()
        FROM tab1
    WHERE <<some condition>>Justin

  • Insert ActiveX Object - not in list

    Hi, guys.
    After one time, I'm not able to install by myself ActiveX controls and embed these controls into ActiveX containers yet. I refer to ActiveX controls that can be embedded into ActiveX containers, not those used to instantiate other applications.
    I want a certain ActiveX Control to be displayed in an ActiveX Container on the Front Panel. In this particular case, it's a Mozilla Firefox ActiveX Control. According to http://forums.ni.com/t5/LabVIEW/activex-firefox-and-mozilla/td-p/356235 (see message 5), after getting the component from the link provided and installing it, I should be able to insert onto the empty ActiveX Container by clicking over it and selecting "Insert ActiveX Object...". In this case, "MozillaBrowser class" should appear in the list, but not.
    However, if I place a Property Node or Invoke Node without reference on the Block Diagram, click on it, then "Select Class" -> "ActiveX" -> "Browse", I find the class "MozillaControl 1.0 Type Library Version 1.0", that, among others, it contains the class "IWebBrowser2". This class happens to be called "MOZILLACONTROLLib.IWebBrowser2". But, once I have the Property Node or Invoke Node, I can't create the container from it (create control from its reference) neither place an empty ActiveX container and wire its reference to the Property Node.
    I also tried registering the ActiveX Control, by typing "regsvr32 <control_name.dll>" in the command prompt, but nothing changes.
    But this doesn't happen to me only with this particular ActiveX control. Every time I want to find in the list a certain ActiveX component after installing it, I can't find it, and I end up copying ActiveX container blocks from VI examples I found on the forums... One example is using AcroPDF ActiveX Control.
    Any suggestion? Has anybody faced the same problem?
    Regards,
    Francisco
    Attachments:
    ActiveX Container.png ‏26 KB
    Property Node.png ‏35 KB

    Hello,
    Probably you can
    see the server in the pop-up menu because the server is not in the PC but is in
    the registry. Remove the checkbox “Validate Servers” to see if the Mozilla
    server appears. According to this LV help link...
    http://zone.ni.com/reference/en-XX/help/371361G-01/lvhowto/creating_new_controls_in_a/
    ... looks like the server is not installed in the PC... or it’s not registered.

  • Time infotype macrocs and time infotype definition.

    Hi All,
    Please provide me the following information
    1. what are the MACRO related to time infotypes ?
    2. how to define infotypes for Time data ?
    3. what is thedifference between PNPCE and PNP logical database ?
    Please provide me some documents and smaal code snippets or program.. to get tghe clear idea afor the same..
    Please reply asap..its urgent..
    Thanx in advance.
    Amruta Sawant.

    Hi Jothi,
    use this macro for all time infotypes
    <b>rp_read_all_time_ity pn-begda pn-endda</b>.
    Bhawanidutt

  • Business rules macros

    Hi,
    Anybody used macros in business rules? If yes, can you please provide some info on pros and cons of marros in business rules
    1. We are using global variables
    2. Some implementing company proposing macros and in the macros all the common stuff like house keeping things, fix statements etc.
    I have not seen any company putting house keeping things in macros.
    Thank you
    Venky

    Anybody used macros in business rules?^^^I use macros all the time for commonly used snippets of code all the time.
    1. We are using global variables ^^^Not a problem. Declare them at a global level, use them in the macro.
    2. Some implementing company proposing macros and in the macros all the common stuff like house keeping things, fix statements etc.^^^I don't use them that way.
    Typically, I write the code once in good old Calc Script Editor, then copy into HBR (the EAS editor for HBRs finally tabs correctly), then replace with global variables. Once I id common code across HBRs (or if I'm clever, and actually think ahead), I remove that code block and stick it into a macro.
    Could you stick a FIX statement and other things into a macro? Sure, I do it all the time.
    Do I use macros exclusively for FIXes and other housekeeping items? Only if they were being repeated again and again. I would wonder if that really made sense as those are the bits of code that tend to change over time as the app changes -- do you really want that to happen to all HBRs that use the macro? Maybe, maybe not.
    Regards,
    Cameron Lackpour

  • Installed Flash Player 12 ActiveX not recognised - Windows 7 & Internet Explorer

    On 2/5/2014 I downloaded Adobe Flash Player 12 ActiveX for the 4th time and yet the system is giving me an error message saying "You're mission the video converter tool."  I have a HP Windows 7 system.  Back in October, I was able to use the Internet Explorer, go to the website CWtvnow and watch The Vampire Diaries online.  But, my system went thru an automated system update on its own and since then I have not been able to watch videos on the internet using Internet Exployer.  I'm tired on downloading the Adobe software and still not working.  I am not a PC expert, but where ever drive the software is being downloaded to, its not functioning.  HELP

    IE 11 Internet Explorer11Version: 11.0.9600.16518Update versions: 11.0.3 (KB2909921)Product ID: 00150-20000-00003-AA459

  • Time Infotype !

    Hi Experts,
    1. Shall we use 'Provide'  Statement for evaluation Time Infotypes(2000-2999) ?
    2. Why can't we use Join and Projection statements For TIme infotypes ?
        I read from SAP help, that we can't use since time data depends on validity  period.As far my knowldge, all the infotypes records hav validity period.! Could you explain me with some example ?
    3. Provide statement is useful for looping Infotype tables with parameters.Does it hav any other special functionality in comparison with Loop statement.
    RgDs,
    Jothi.P

    Hi Jothi,
    use this macro for all time infotypes
    <b>rp_read_all_time_ity pn-begda pn-endda</b>.
    Bhawanidutt

  • Mail and Safari are opening multiple times

    Help! I am getting two open icons, two instantiations, and actually two open sets of windows in different safari at the same time. When you command tab you see two of each icon for them. What causes this, and how do I stop it from happening? It just started a few days ago. (on macmini 10.6.6)
    Thanks!

    Looks like it is fixed. My version of iKey had imported the same set of macros, so every time mail was launched, it launched twice. Oy vey!

  • Which ActiveX bridge actually works????

    Hi all,
    i have really simple question...I have been looking for the proper ActiveX bridge really long time....I just wana to integrate ActiveX display component into the JAVA SWING API....Most suitable for this purpose seems to be IBM Bridge2Java...But actually it is not working, this bridge still crashes on this exception...
    com.ibm.bridge2java.ComException: Bad return code from Invoke().
    Please does anyone have any experiences with the Bridge2Java product or does anyone know any other better ActiveX bridges ????????
    Message was edited by:
    JCDenton

    Sun's ActiveX Bridge. Basically, the host is not seeing my bean properties. I have standard getters and setters. This is from an IDL from a C++ client and I need my java code to produce an equivalent property access.
    Please help. I'm really stuck on this.
    [propget, id(1), helpstring("property Version")] HRESULT Version([out, retval] LONG* pVal);

  • DRILL_UP and DRILL_DOWN DP Macro and data view refresh

    Folks,
    Need your help with the following:
    I have the following characteristics in the data view:
    Site, Plant, Unit, Product Family, Material.
    1. When go into the data view, I am at the most detailed level.
    2. I created a macro so that I DRILL_UP( 'Material' ; INTERNAL ) and run it.
    3. Then I run another macro to perform calculations at this level. Basically, I am disaggregating a key figure based on another key figure in this step (since disaggregation at the lowest level does not make sense). This works because there is nothing fancy here.
    4. I created a macro so that I DRILL_DOWN( 'Material' ; INTERNAL )
    Problem: When I run this macro in the data view, the whole data view values look like they are messed up. Only the totals values can be seen and no other values. This is the case when I drill up, and when I drill down. This is actually the case even when I did not use the INTERNAL option for DRILL_UP and DRILL_DOWN.
    Here is the thing. When I save the data view, everything gets refreshed and all the values get correctly populated at the lowest level as expected. So, it seems that the problem is with refresh.
    Please let me know if you have any suggestions.
    Thanks,
    Satish

    Hello,
    Just to add to the above replies from our two experts.
    I checked your scenario, and I think maybe you can acheive this just by changing the macro's execution level, from detailed level to aggregated level. Here you do not need the drill_down and drill_up macros, which are time consuming ...
    Please have a try and good luck
    Best Regards,
    Ada

  • Database alert Macro

    Hi All,
    can you please explain me,why database alerts macro taking long time to run.
    Regards,
    Naveen.

    Venkat
    Yes it is a common problem that many companies face.  The system has to read data from alert tables such as /sapapo/am_alert and i guess one reason for the long run time is indexing of alert tables especially the /sapapo/am_alert.  Please check the OSS notes provide by SAP to improve the performance of alert runtime and display
    We applied these notes a while ago and it did make a huge difference. Check notes 907472 ,596332 - and in general all notes that you get when u search with criteria /sapapo/am_alert .
    Thanks
    Aparna
    Edited by: Aparna.Ranganathan on Nov 19, 2010 5:08 PM

  • X,Y axes scale change in excel

    Hi,
    In my VI i am using "set graph scale in excel" function to change the x,y axes but they are not getting changed.
    I want to manually feed the min,max  values for x,y axes so that the data to be inserted into the graph should appear according to the x, y axes.
    How can i do this?
    For clarification i am attaching my VI "Graph_Decorations"
    Attachments:
    Graph_Decorations.vi ‏33 KB

    I like to use ActiveX directly for this time of action.
    See picture of code (part of a much bigger vi).
    The text (gray box) is from the Excel macro editor.
    I then just translate that into LabView ActiveX code.
    Attachments:
    Set_Excel_Graph_limits.PNG ‏26 KB

  • ABAP HR Overview

    I have good idea about HR. But I’m not that much expert .I’d like if you guys share your ABAP HR experience and give me some hints like how to read time data what are the basic ways and macros to read time management data. What are the different ways to read payroll data for reports? What are the ways to update cluster tables? How we update cluster tables, PCL1, PCL2, PCL3. When we use –n switch while defining infotypes. 
    How to read org structure what are the logical databases we use to read time, org and Pa and PD data? E.g. PNP, PNPCE, PCH
    Macros like “rp-provide form last” or “rp-provide-from first” . What are the other macros you guys use so often and why?
    When we usually use provide and endprovide instead of select statement.
    Any types of  things you have experienced in HR . Please mention that’ll help me to brush up my HR skills .
    Thanks a lot
    Message was edited by: Suleman Javed

    Hi Suleman,
    Try the following links
    http://help.sap.com/saphelp_47x200/helpdata/en/4f/d5275f575e11d189270000e8322f96/content.htm
    http://www.saptips.com/Previews/SAPtipsAugust-September2004TableOfContents.pdf
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci1030179,00.html?track=NL-142&ad=500911#Transactions
    http://help.sap.com/saphelp_46c/helpdata/en/4f/d528be575e11d189270000e8322f96/frameset.htm.
    There is a book available on SAP Press, www.sap-press.com, on technical principles of SAP HR programming.
    You can additionally take a look at
    http://www.sap-basis-abap.com/saphr.htm.
    http://www.sapgenie.com/faq/hr.htm
    http://www.sapgenie.com/workflow/scenarios.htm
    Pls go thru following FAQ links. It will be useful.
    http://www.sap-img.com/human/hr-faq.htm
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    http://www.sapgenie.com/mysap/mysap_hr.htm
    You can also refer to the standard SAP course HR350 "ABAP Programming in HR" .
    reward points if it helps..
    regards,
    manikandan R

Maybe you are looking for

  • Edit error message as displayed when browsers fail to display dynamic pdfs

    I'm sure many people here are aware of the problems that arise when many browsers attempt to open a dynamic writable pdf. The built in plugin that ships with most browsers is unable to display the content, and as a result the following message is sho

  • How do I get icloud on a 2010 MacBook Pro?

    I have a 2010 MacBook Pro and when I update my system preferences I don't get Icloud?  How do I install/download icloud?

  • Error at XPRA_EXECUTION while installing SAPKINDA7A

    Guys, I face this problem while I was installling SAPKINDA7A (PI 2004.1):    Program Terminated: (job: RDDEXECL, no. 21323601)    Execution of programs after import (XPRA) Job log as below:    Job started    Step 001 started (program RDDEXCL, variant

  • Messages app quits when closing window

    I have an iMac (27-inch Mid 2011), Mac OS X (10.8.2), Messages Version 7.0.1 (3314). I already tested Messages before, but decided to uninstall it as it was too buggy. Since upgraded to Mountain Lion, whenever I close the Messages window, it quits th

  • Will stacks show in pic's when burning a dvd?

    Hi all, just wanted to know if the stacks in my pic's will show when burning a dvd. When I fix red-eye or auto smart fix it shows the stacks on my pic's. I don't want the stacks to show when burning the pic's on a dvd. Thanks, alot