Setting Time Server Search Order in DSC Run-Time

Hello,
can somebody help me with explanation how can I set the  Time Server Search Order in DSC 8.6 Run-Time System? I can set it in development environment, but how can I transfer this to the Run-Time machine?
I want to synchronise a system clock of the machine to another machine acting as the time server, running NI Time Syncronization service.
Is it better to use standard Windows XP sync routines instead of NI ?
Thanks a lot,
romp

Hi David,
after trying NI approach ( I've got some tips from support, you should edit the Registry ) I found it just don't work well, so I have disable it completely and move to Microsoft mechanisms for clock synchronising. Looks like NI still didn't work this out as it should....it's a shame aince this is very fundamental stuff.
romp

Similar Messages

  • Install Labview DSC Run Time without SQL Express

    Hi 
    I have an application of DSC run time that I tested successfully but now must be installed on a server and my client does not allow install an instance of SQL Server Express because he are already using the Enterprise version. What should I do to not install the SQL Server Express incorporated in the DSC Run Time and use the SQL Server Enterprise already installed on the server?

    Hello Jdrendon
    Did you try to install your application on a PC with an instance of the Enterprise version?
    Maybe another instance of SQL will not be installed in this case, because you already have a later version installed.
    The second possibility is just uncheck the option to install the SQL Server Express when you are installing your application.
    Let me know if it is possible and if it solve your problem.
    Plínio Costa
    Application Engineer
    National Instruments Brazil

  • Do I need to include DSC run time on the host coputer to run an executable

    I've build an application and an installer and I've test them on a computer that has labview installed on it and it works well,
    but when I installed my application on computer that doesn't has LabView it gives an error messege Says " error 1 can't deploy library"
    althgough I'm deploying the libraries programmaticaly and the bath is correct aslo, but I don't know what's the problem I've tried every thing
    on the site but nothing works.
    I just need to deploy the libraries but i'm not doing or using logging & alarms so do i need to include DSC run time to my installer?
    If any one have an idea about this problem just give me the solution!!!!!!
    Mahmoud Alshair
    Intelligent Systems Integrator ( ISI )
    System Developer
    Solved!
    Go to Solution.

    Now no more duplicates,
    coz I solved the problem and you 'll find it here
    http://forums.ni.com/ni/board/message?board.id=170&thread.id=311115
    By
    Mahmoud Alshair
    Intelligent Systems Integrator ( ISI )
    System Developer

  • Do I need a copy of DSC run-time for every machine?

    Do I need to purchase a dsc run-time engine for every machine that will be running stand alone executables.

    Yes if you wish to use the DSC features like the Engine, logging, alarming, etc.
    Regards,
    Khalid

  • How to set the number of records displayed at run time

    Is it possible to set the number of records displayed block property at run time? The built-in 'GET_BLOCK_PROPERTY' can retrieve the number of RECORDS_DISPLAYED. But I can't find SET_BLOCK_PROPERTY to set this property. Is there anyway I can set this property programmatically? Thanks for any suggestions!

    Bookmark Go to End
    goal: How to vary the number of records displayed in a block
    programmatically
    fact: Oracle Forms Developer
    fix:
    Block property 'Number of Records Displayed' can not be changed during runtime
    using SET_BLOCK_PROPERTY. However, it is still possible programmatically change
    the visual appearance of the form so that it creates effect of changing this
    property. To achieve such an effect follow these steps:
    1. in Forms Builder, in the multirecord block define the new set of items.
    The simplest way is to copy/paste the original item and rename created item.
    2. set properties of these new items so that they are the same as the properties
    of the original items. If these new items were copied from original items
    then properties are already the same. Modify following properties
    'Database item' on new items to value 'No'
    'Synchronize with item' to the value of the original item
    'Number of Items Displayed' to desired value.
    'Visible' to 'No'
    In other words, these new items are mirrors of original items.
    3. code event, which is meant to trigger the change in block appearance.
    This code should use SET_ITEM_PROPERTY built-in to set properties
    like 'VISIBLE', 'ENABLED', 'NAVIGABLE', 'UPDATE_ALLOWED' and others
    to desired value for items which are about to be displayed, then
    move cursor to one of these just displayed items with GO_ITEM built-in
    and then hide the previously displayed items.
    Example:
    Assume that the block is built on SCOTT.DEPT schema. Following will
    change the set of displayed items
    set_item_property('dept.mdeptno',visible,property_true);
    set_item_property('dept.mdname',visible,property_true);
    set_item_property('dept.mloc',visible,property_true);
    set_item_property('dept.mdeptno',enabled,property_true);
    set_item_property('dept.mdname',enabled,property_true);
    set_item_property('dept.mloc',enabled,property_true);
    set_item_property('dept.mdeptno',update_allowed,property_true);
    set_item_property('dept.mdname',update_allowed,property_true);
    set_item_property('dept.mloc',update_allowed,property_true);
    set_item_property('dept.mdeptno',navigable,property_true);
    set_item_property('dept.mdname',navigable,property_true);
    set_item_property('dept.mloc',navigable,property_true);
    go_item('dept.mdeptno');
    set_item_property('dept.deptno',visible,property_false);
    set_item_property('dept.dname',visible,property_false);
    set_item_property('dept.loc',visible,property_false);
    Regards,
    Monica

  • Setting column widths in a PdfPTable at run time

    My web application is building PDF output using iText. The data is coming from a database through JDBC. At run time I will not know how many columns are being returned and I will not know the relative widths of each column, so I have to set this at run time to make it look good. This is the problem I am having.
    I am calling the data and returning an ArrayList of ArrayLists, each of the internal ArrayLists contains the data and the first one contains the column labels. The labels are going to be longer than the data so I can set the column widths to the labels and it should be fine. But how?
    Here is what I am trying so far, without success.
    ArrayList headRow = (ArrayList) mainList.get(0);
    float[] widths = new float[headRow.size()];
    for(int i=0;i<headRow.size();i++) {
    Chunk chunk = new Chunk((String) headRow.get(i));
    widths[i] = chunk.getWidthPoint();
    PdfPTable table=new PdfPTable(colCount);
    table.setWidthPercentage(100);
    table.setWidths(widths);
    As I said, this is not doing what I need, nor is any variation of this that I have tried. So how do I set the relative widths of the columns when I don't know how many columns I'm going to get back or how wide they need to be?
    Thanks

    It worked fine when I had a JTable associated to my table header.
    Any ideas as to why it no longer works or indeed, solutions?Not too sure if I understand the question or problem. Since when can you disassociate a tableheader from a table (or how can you create a tableheader without a table)?
    ;o)
    V.V.

  • How to set proxy authentication using java properties at run time

    Hi All,
    How to set proxy authentication using java properties on the command line, or in Netbeans (Project => Properties
    => Run => Arguments). Below is a simple URL data extract program which works in absence of firewall:
    import java.io.*;
    import java.net.*;
    public class DnldURLWithoutUsingProxy {
       public static void main (String[] args) {
          URL u;
          InputStream is = null;
          DataInputStream dis;
          String s;
          try {
              u = new URL("http://www.yahoo.com.au/index.html");
             is = u.openStream();         // throws an IOException
             dis = new DataInputStream(new BufferedInputStream(is));
             BufferedReader br = new BufferedReader(new InputStreamReader(dis));
          String strLine;
          //Read File Line By Line
          while ((strLine = br.readLine()) != null)      {
          // Print the content on the console
              System.out.println (strLine);
          //Close the input stream
          dis.close();
          } catch (MalformedURLException mue) {
             System.out.println("Ouch - a MalformedURLException happened.");
             mue.printStackTrace();
             System.exit(1);
          } catch (IOException ioe) {
             System.out.println("Oops- an IOException happened.");
             ioe.printStackTrace();
             System.exit(1);
          } finally {
             try {
                is.close();
             } catch (IOException ioe) {
    }However, it generated the following message when run behind the firewall:
    cd C:\Documents and Settings\abc\DnldURL\build\classes
    java -cp . DnldURLWithoutUsingProxy
    Oops- an IOException happened.
    java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    at java.net.Socket.connect(Socket.java:452)
    at java.net.Socket.connect(Socket.java:402)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
    at sun.net.www.http.HttpClient.New(HttpClient.java:339)
    at sun.net.www.http.HttpClient.New(HttpClient.java:320)
    at sun.net.www.http.HttpClient.New(HttpClient.java:315)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:510)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:487)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:615) at java.net.URL.openStream(URL.java:913) at DnldURLWithoutUsingProxy.main(DnldURLWithoutUsingProxy.java:17)
    I have also tried the command without much luck either:
    java -cp . -Dhttp.proxyHost=wwwproxy -Dhttp.proxyPort=80 DnldURLWithoutUsingProxy
    Oops- an IOException happened.
    java.io.IOException: Server returned HTTP response code: 407 for URL: http://www.yahoo.com.au/index.html
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1245) at java.net.URL.openStream(URL.java:1009) at DnldURLWithoutUsingProxy.main(DnldURLWithoutUsingProxy.java:17)
    All outgoing traffic needs to use the proxy wwwproxy (alias to http://proxypac/proxy.pac) on port 80, where it will prompt for valid authentication before allowing to get through.
    There is no problem pinging www.yahoo.com from this system.
    I am running jdk1.6.0_03, Netbeans 6.0 on Windows XP platform.
    I have tried Greg Sporar's Blog on setting the JVM option in Sun Java System Application Server (GlassFish) and
    Java Control Panel - Use browser settings without success.
    Thanks,
    George

    Hi All,
    How to set proxy authentication using java properties on the command line, or in Netbeans (Project => Properties
    => Run => Arguments). Below is a simple URL data extract program which works in absence of firewall:
    import java.io.*;
    import java.net.*;
    public class DnldURLWithoutUsingProxy {
       public static void main (String[] args) {
          URL u;
          InputStream is = null;
          DataInputStream dis;
          String s;
          try {
              u = new URL("http://www.yahoo.com.au/index.html");
             is = u.openStream();         // throws an IOException
             dis = new DataInputStream(new BufferedInputStream(is));
             BufferedReader br = new BufferedReader(new InputStreamReader(dis));
          String strLine;
          //Read File Line By Line
          while ((strLine = br.readLine()) != null)      {
          // Print the content on the console
              System.out.println (strLine);
          //Close the input stream
          dis.close();
          } catch (MalformedURLException mue) {
             System.out.println("Ouch - a MalformedURLException happened.");
             mue.printStackTrace();
             System.exit(1);
          } catch (IOException ioe) {
             System.out.println("Oops- an IOException happened.");
             ioe.printStackTrace();
             System.exit(1);
          } finally {
             try {
                is.close();
             } catch (IOException ioe) {
    }However, it generated the following message when run behind the firewall:
    cd C:\Documents and Settings\abc\DnldURL\build\classes
    java -cp . DnldURLWithoutUsingProxy
    Oops- an IOException happened.
    java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    at java.net.Socket.connect(Socket.java:452)
    at java.net.Socket.connect(Socket.java:402)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
    at sun.net.www.http.HttpClient.New(HttpClient.java:339)
    at sun.net.www.http.HttpClient.New(HttpClient.java:320)
    at sun.net.www.http.HttpClient.New(HttpClient.java:315)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:510)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:487)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:615) at java.net.URL.openStream(URL.java:913) at DnldURLWithoutUsingProxy.main(DnldURLWithoutUsingProxy.java:17)
    I have also tried the command without much luck either:
    java -cp . -Dhttp.proxyHost=wwwproxy -Dhttp.proxyPort=80 DnldURLWithoutUsingProxy
    Oops- an IOException happened.
    java.io.IOException: Server returned HTTP response code: 407 for URL: http://www.yahoo.com.au/index.html
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1245) at java.net.URL.openStream(URL.java:1009) at DnldURLWithoutUsingProxy.main(DnldURLWithoutUsingProxy.java:17)
    All outgoing traffic needs to use the proxy wwwproxy (alias to http://proxypac/proxy.pac) on port 80, where it will prompt for valid authentication before allowing to get through.
    There is no problem pinging www.yahoo.com from this system.
    I am running jdk1.6.0_03, Netbeans 6.0 on Windows XP platform.
    I have tried Greg Sporar's Blog on setting the JVM option in Sun Java System Application Server (GlassFish) and
    Java Control Panel - Use browser settings without success.
    Thanks,
    George

  • DSC Run-Time Licence Questions

    Hello,
    I have recently discovered that LabView Developers Suite that I thougt was a complete development & deployment platform is not:
    Since I had chosen to use DSC Modbus funcitonality, I need the DSC Runtime as well, apprantly both on my development system, and on the PC where the system will be deployed.
    As bad as this is, I find it more frustrating to find out how these licences must be handled.
    Our customer is a Precast Concrete Production plant that is not accustomed to handling software installation and licence issues.
    Further, the PC is of course not online to the internet: This is a rough production environment.
    I will build a complete installation package so that that customer can install the complete software onto the PC in a few easy steps.
    I thougt LabView was up to this task, but I am now wondering if this is the case.
    My questions are:
    Must the DSC Runtime Licence be activated on the client's PC?
    If yes, how is the licence activated when the PC has no internet connection?
    PCs quite frequently die in these rough environments, and the client must be able to quickly install my software package onto a new PC to keep the production running!
    Can the client reinstall my software package on a new PC with no DSC Runtime licence hassle?
    What are the exact steps to do this?
    Suggestions:
    I strongly feel that NI should put up information about the fact that a DSC runtime is needed and links that explain these Licence issues on the following page:
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/1012
    The page above should also contain a link to this page: http://www.ni.com/labview/labviewdsc/faq.htm
    Like it is now, developers are waiting valuable time to find answers to thse questions (at least we did).
    Message Edited by geirove on 12-07-2009 03:44 AM
    Message Edited by geirove on 12-07-2009 03:46 AM
    Message Edited by geirove on 12-07-2009 03:48 AM
    Geir Ove
    Solved!
    Go to Solution.

    Christian_M wrote:
    Hi,
    If you simply need to use ModBus, here is a free library for LabVIEW: http://sine.ni.com/nips/cds/view/p/lang/en/nid/201711
    To your questions:
    Must the DSC Runtime Licence be activated on the client's PC? Yes
    If yes, how is the licence activated when the PC has no internet connection? You can call your local NI Office, give them the Serial Number and the Computer ID (could be found in the license manager) and activate it per hand.
    PCs quite frequently die in these rough environments, and the client must be able to quickly install my software package onto a new PC to keep the production running! They can again call NI with the new computer ID
    It is not an option to start rewriting code to use the Modbus library directly at this time. We use DSC to bind Shared Variables to Modbus addresses.
    So NI is open 24  * 7 to support this and other 24 * 7 industries with new Runtime Licenses when a Control System PC / RT Module breaks down?
    This does not look good for using DSC functionality in this industry. The potential client base here, is quite large: > 130 factories throuhtout Europe.
    Why doesn't NI simply let users run 30 days on a temporary DSC Runtime License the way you do it for all other NI products?
    a) This way we could test the software.
    b) Clients could reinstall and have 30 days to get help to activate the DSC Runtime License.
    Does not look like NI is interested in supporting 24 * 7 industries at all !
    Better suggestions from NI?
    Geir Ove

  • Setting data type of an object at run time

    This is something of an advanced problem, so I hope there's
    someone out there who can speak to this. I apologize for the length
    of the post, I'm just trying to be clear about a rather unclear
    conundrum. --
    We all use arrays to hold collections of things. As you know,
    an array is its self a type (Array) and so there is no way to
    declare, for instance, an array of MovieClips or an array of
    Strings. Heres what happens: lets pretend that we have 3 movie
    clips clip1_mc, clip2_mc, and clip3_mc, and an Array called
    anArray. so we can legally do this. anArray.push( clip1_mc );
    anArray.push( clip2_mc ); anArray.push( clip3_mc );. An array of
    size 3. Now the code: trace( typeof anArray[0] ); will output
    "object." This can be a problem. If you try this: var
    newClip:MovieClip = anArray[0]; you get a type mismatch from the
    compiler. "Found Object where MovieClip is required." It
    necessitates this: var newClip:MovieClip = MovieClip( anArray[0] );
    Bummer no?
    Ok. So fast forward. Lets assume a class List that uses an
    array to hold the items in the list. So the class uses the Array
    class in "composition." So you have methods like insert( ); and
    retrieve(). Retriece() returns an item from an index in the array.
    Because of the aforementioned problem, no matter what type the
    thing was going into the list it comes out with type Object because
    the retrieve function must return an item of some type, the only
    option is to declare the return type of the retrieve() function as
    Object. Lets say you know that this is a list of Strings. You could
    write the retrieve()'s code like: return String( returnItem ); And
    type the object "on the way out" .. but what if you want the list
    to work with any type object, you would have to have a variable to
    hold the desired type of objects in the list. And then as the
    objects are being returned, you'd cast them to the type stored in
    that variable. I guess that you'd pass the type to the constructor
    of the List: var aList:List = new List( "AddressCard" ); -- That
    should declare a List (Array) of AddressCards.
    Is there a way to do this? have the type specified in casting
    be dynamic?
    And the flip-side of that is detecting the name of the class
    of an object instance. The thing here would be to try to derive a
    String from the name of the constructor function. (which is always
    the class name) In actionscript 3 there is a service package--
    mx.util -- I think, that has a function to return the qualified
    class name of an object. But is there a jimmy rig for this in AS2?
    My actual project does not use an Array to implement List. (
    or Stack ) It uses a structure called a "linked list" - which is a
    whole other topic, but same problem as with Arrays is also present
    in the linked list versions and so requires the same solution. If
    one is willing to type things explicitly when assigning an item in
    the list to a variable of some type, this thing is quite excellent.
    But I don't like it. I have the package with docs, code, sample
    fla's, diagrams and everything that I would encourage people to
    download, look at, try and whatever and then come back here with
    any thoughts on it. There is a component with Flash professional
    that is a list like structure, but it's so general that it crosses
    the line into bloat. Ie: if you are using a list as a stack, you
    only need getTop() and pop() and push() not all the other (12 or
    so) methods in the class. Mine are patterned after structures from
    the C++ standard template library. And the code style is C++, but I
    think it's actually easier to read that way.
    the files:
    http://www.null.bz/ADL_Lib/ADT_Lib.zip
    Thanks in advance, for your efforts! I really appreciate all
    of it, helpful or not.

    First reactions:
    >>var newClip:MovieClip = MovieClip( anArray[0] );
    Even though you must use a cast to prevent the compile time
    error, you don't get an error on this line because the compiler
    skips typechecking for values accessed with the [] operator.
    >>Is there a way to do this? have the type specified in
    casting be dynamic?
    Nope. You must effectively type check all objects used
    through array elements yourself.
    Reading on...

  • I want to Create an Single Installer (My Application + DSC Run Time License )

    Hi,
       I want to create an single installer by including my Application and DSC RTL, So by using this i will give an single installer to my clients where they dont have any Lab VIEW components. Even though i seen some similar post, but its doesnt give me a proper solution for this. Please do the needfull.
     With Regards,
    Vijayakumar.V

    Hi Vijay,
    I think, there is no seperate RTL for DSC (for that matter, for any of other NI addons/toolkits) to be included in the installer.
    You need to select the appropriate installer from the Additional Installers category while creating the installer.
    Please see the attached pic.
    - Partha
    LabVIEW - Wires that catch bugs!
    Attachments:
    NI DSC 8.6 Deployment.PNG ‏43 KB

  • How to set Value Attribute (under valu node) at run time

    Hi,
    This is my View context.
    wbsElement (Value Attribute of Type String)
    This is my Component Controller Context.
    Project_info  (Value node)->Wbs_Info (Value Node)-WBS(Value Attribute).
    Initially I want to set some dummy values to wbsElement(view attribute),sothat I can show that in drop downby key.
    On selecting of wbsElement I want to pass the selected value to component controllers ValueAttribute - WBS (this Value attribute is under 2 nodes-see the structure I've given).
    I tried this way which is not working fine.
        IWDNodeElement element = wdContext.createWBSElement();
         wdContext.nodeWBS().addElement(element);
        wdContext.currentWBSElement().setWBS(wbsElement);
    Can anyone tell me which is the correct way to do this?
    This is very urgent.plz help me in this.Thankx in advance.
    Regards,
    Karthick

    Hi Karthick,
       try this code.
    IPublic<compcontrolllername>.IWbc_infoElement  obj  =         wdThis.wdGet<Componentcontrollername>Controller().wdGetContext().createWbc_infoeElement();
    obj.setWBS(wdcontest.currentContestElement.getwbsElement());
    wdThis.wdGet<Componentcontrollername>Controller().wdGetContext().nodeWbc_infoElement().addelement(obj);
    set the cardinality of Project_info to 1:n or 1:1
    test this one
    if you find any problem let em know
    regars
    Naidu

  • Run time error while closing the CRM Order using BAPI

    Hi Experts,
    Need your invaluable suggestions here.Apologies for the lengthy mail, intention is to give clear idea of the issue.
    I am facing an issue while closing the CRM orders. According to our business process, when an issue is solved we will keep the order in resolved status only. We will not directly close the order from the CRM tool, instead we have created a custom program for the same purpose.
    For the custom program we will give input as the order number and execute it, this will close the order.
    Here close the order means assigning it to Close status as well assign the reason code.
    We have created some reason codes for closed status.
    So when the program is run the Order moves from resolved status to closed status along with reason code.
    But of late we are facing some problems with this program, it is giving run time error for some CRM orders.
    Run time error message : The ABAP/4 Open SQL array insert results in duplicate database records.
    The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught in procedure "CRM_SERVICE_OS_UPD_OST_DU" "(FUNCTION)", nor was it propagated by a RAISING clause.
    Please find my code which have used in the custom program
    Closing the resolved SOs in the system
        CALL FUNCTION 'CRM_STATUS_CHANGE_EXTERN_OW'
            EXPORTING
              objnr                     = iv_guid
              user_status          = lc_status_closed
           EXCEPTIONS
             object_not_found          = 1
             status_inconsistent       = 2
             status_not_allowed       = 3
             OTHERS                        = 4.
        IF sy-subrc <> 0.
          WRITE :  'Error at maintaining status'.
        ENDIF.
    Set reason code
    build lt_subject
        ls_subject-ref_guid = iv_guid.
        ls_subject-katalogart = 'A2'.
        ls_subject-codegruppe = 'ZR000003'.
        ls_subject-code       = 'ZR33'.                      " Reason code
        ls_subject-mode       = 'A'.
        APPEND ls_subject TO lt_subject.
    build lt_ossset
        ls_osset-ref_guid        = iv_guid.
        ls_osset-subject_profile = 'ZREASON03'.
        ls_osset-profile_type    = 'G'.
        ls_osset-subject         = lt_subject.
        APPEND ls_osset TO lt_osset.
    build lt_service_os
        ls_service_os-ref_guid  = iv_guid.
        ls_service_os-ref_kind  = 'A'.
        ls_service_os-osset     = lt_osset.
        APPEND ls_service_os TO lt_service_os.
    build lt_input_fields
        REFRESH: lt_input_fields, lt_field_names.
        CLEAR  : ls_input_fields, ls_field_names.
        ls_field_names-fieldname    = 'CODE'.
        APPEND ls_field_names TO lt_field_names.
        ls_field_names-fieldname    = 'CODEGRUPPE'.
        APPEND ls_field_names TO lt_field_names.
        ls_field_names-fieldname    = 'KATALOGART'.
        APPEND ls_field_names TO lt_field_names.
        ls_field_names-fieldname    = 'SERVICE_PROFILE'.
        APPEND ls_field_names TO lt_field_names.
        ls_input_fields-ref_guid    = iv_guid.
        ls_input_fields-ref_kind    = 'A'.
        ls_input_fields-objectname  = 'SERVICE_OS'.
        ls_input_fields-field_names = lt_field_names.
        APPEND ls_input_fields TO lt_input_fields.
         CALL FUNCTION 'CRM_ORDER_MAINTAIN'
          EXPORTING
            it_service_os     = lt_service_os
          CHANGING
            ct_input_fields   = lt_input_fields
          EXCEPTIONS
            error_occurred    = 1
            document_locked   = 2
            no_change_allowed = 3
            no_authority      = 4
            OTHERS            = 5.
        IF sy-subrc <> 0.
          WRITE :  'Error at maintaining reason'.
        ENDIF.
        CALL FUNCTION 'CRM_ORDER_SAVE'
          EXPORTING
            it_objects_to_save   = lt_header_guid
            iv_update_task_local = lv_update_task_local
          IMPORTING
            et_saved_objects     = lt_saved_objects
          EXCEPTIONS
            document_not_saved   = 1
            OTHERS               = 2.
        IF sy-subrc <> 0.
          WRITE : 'Error at saving'.
        ELSE.
          WRITE : 'Successfully Closed'.
          COMMIT WORK AND WAIT.
        ENDIF.
    Run time error is coming at COMMIT WORK AND WAIT statement.
    Please let me know any corrections are required in the above program.
    When I analyzed the run time error I have found that it trying to insert the record in CRMD_SRV_OSSET for that CRM order, but already one record is present in the table for the same CRM order number.
    For most of the CRM orders there is no entry in this table so they are closing successfully but for a few orders for which there is an entry we are getting the above run time error.
    There is nothing wrong with the orders which have an entry already in the table CRMD_SRV_OSSET, I need to close these kind of orders with out run time error.
    Kindly provide your feedback.

    Hi Dinakar,
    You posted this in APO PPDS forum. This question should go to PP forum where someone could answer it.
    Please close this thread and open a new thread in PP forum so that you could get help quickly from the relevant experts.
    Regards - Pawan

  • DSC 8.6.1 run-time and LV2009 executable are they working together ?

    Hi All,
    In my application  I first deploy shared variables and when they all have depleoyed the main application starts. My deployment procedure is something like that:
    0. Select first library
    1. check if  library is already running on SVE
    2. if not deploy it
    3. check next library
    Most of my variables in libraries are connected to OPC variables. OPC server is located in other computer and there is a LAN network between computers. I have noticed that when I execute my application exe only few of libraries are deployed to SVE. Eg. If I remove all processes(libraries) from SVE and start my application only 7/28 libraries are deployded. If I deploy those libraries manually from LV2009 project everything is okay. 
    On my computer is installed LV2009 development and DSC 8.6.1 run-time. Our target is remove LV2009 immediately after we have edited and tested  all our variables and libraries. Is there a potential risk that application which is made on LV2009 don't work with DSC run-time 8.6.1?  Have anyone else noticed problem when deploying variables from application exe? 
    BR, Jim 

    Meg K. B. , 
    It sounds like you are experiencing Time Stamp Counter (TSC) Drift as mentioned in the KB's for the AMD Multi-Core processors. However, according to this wikipedia article on TSC's, the Intel Core 2 Duo's "time-stamp counter increments at a constant rate.......Constant TSC behavior ensures that the duration of each clock tick is
    uniform and supports the use of the TSC as a wall clock timer even if
    the processor core changes frequency." This seems to suggest that it would be not be the case that you are seeing the issue mentioned in the KBs.
    Can you provide the exact modle of the Core 2 Duo processor that you are using?
    Ben Sisney
    FlexRIO V&V Engineer
    National Instruments

  • Installing LabVIEW DSC 8.6 Run Time on Windows XP Embedded flash memory

    I'm trying to install LabVIEW DSC 8.6 Run Time on an embedded PC running Windows XP Embedded. This has a small local disk (c), so I would like to install DSC Run Time on a secondary flash memory drive (d). The installer tells me that I don't have enough free space on drive c, but I cannot browse to select drive d. What do I need to do to get this installed?
    Thanks,
    Josh

    The DSC module can't easily be installed to external flash memory. You'll want to move any extra data onto the flash drive to free up space on the internal memory for installing the DSC module. 
    Mark E.
    National Instruments
    Schedule a Free 1-Hour online LabVIEW Tutorial with an NI Applications Engineer

  • How to set App Module Config parameters at run time?

    Hi,
    I am using jdev 11.1.1.3 and developed a Fusion Web Application application.
    Before moving the code to production I want to have a stress testing where I should be able to set the application module configuration parameters at run time.
    So I would like to know what are the options are there to achieve this instead of setting the same in design time.
    Any help would be appreciated.
    ~Abhijit

    AT SELECTION-SCREEN OUTPUT.
      PERFORM radio_hide_options.
    FORM radio_hide_options .
    IF rad =  ' '.
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'RT1'.
              screen-input = '0'.
              MODIFY SCREEN.
            WHEN 'RT2'.
              screen-input = '0'.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ELSEIF rad = 'X'.
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'RT1'.
              screen-input = '1'.
              MODIFY SCREEN.
            WHEN 'RT2'.
              screen-input = '1'.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ENDIF.
    endform.

Maybe you are looking for