First run the part of the code

Hi people,

I'm using Labview to control a camera and a motor, who need a boot before I can use them.  Currently I have the status of fact manually, but there is a lot of time and unproductive.  I wish this part of my code to run first and before any other code in my VI.  I am a little naïve in the way that this is possible and my gutfeeling is it is should not be difficult.

I tried to use boolean to start my loop once the code is executed, but it is not effective when I have more of a lead-in to run.  LabVIEW run them in parallel...

If anyone can help?

Thanks in advance.

All you have to do is create a dependency on the data. Everything is in the stream!

Can you give a little more detail on what your initialization code needs to do? Most likely, it generates an error at the end, so if if wire you this error at the edge of the main code loop, until the initialization is complete.

A better solution would be to create a correct state machine, which is one of the States initialization code. The trigger as the first State. This method has the advantage that you can reset again at a later date if necessary, without the need for a restart of the program.

Never trap code in a structure of sequence as shown above, it is very rigid. For example, it is not possible to pass from one State or change the running order.

Tags: NI Software

Similar Questions

  • URGENT::opening multiple files - i have 3 files in my directory... When I run the code I can open a file and read it... but the while loop get blocked after the first iteration... can someone me help or give some indications

    bbmChatDB of public database;

    public static FileConnection fconnRead = null;
    public static String fileReadData = "";
    public static InputStream is = null;
    data Byte [] = null;
    DataInputStream is = null;

    Here is my code...

    I have 3 files in my directory... When I run the code I can open a file and read it... but the while loop get blocked after the first iteration... can someone me help or give some indications

    try {}

    FileConnection fc = Connector.open("file:///store/home/user/documents/BSM/") (FileConnection); "

    If (fc.exists ()) {}

    Enumeration e = fc.list ();

    While (e.hasMoreElements ()) {}

    System.out.println ("files are:" + (String) e.nextElement ());

    play this file
    StringBuffer stringBuff = new StringBuffer();
    try {}
    System.out.println ("opening file")-;
    System.out.println ("file name is:" + (String) e.nextElement ());
    fconnRead = Connector.open("file:///store/home/user/documents/BSM/(String)e.nextElement(),Connector.READ_WRITE) (FileConnection);
    System.out.println ("data length")-;
    If (fconnRead.exists ()) {}
    is = fconnRead.openDataInputStream ();
    data = IOUtilities.streamToBytes (is);
    Ddd = new String string (data);
    fileReadData = ddd.toString ();
    System.out.println ("length of data:" + fileReadData.length ());
    System.out.println ("read data :" + fileReadData);

    }

    } catch (IOException ee) {}
    ee.printStackTrace ();
    System.out.println ("Exception in the read data :")
    + ee.getMessage ());
    }

    }
    }

    } catch (IOException e) {}

    e.printStackTrace ();
    }

    {Finally

    try {}
    If (is! = null) {}
    is. Close();
    }
    System.out.println ("is closed...");
    } catch (IOException e1) {}

    E1. PrintStackTrace();
    }

    If (fconnRead! = null) {}
    try {}
    fconnRead.close ();
    } catch (Exception e) {}
    System.out.println (try ());
    }

    }

    }

    You can recode this treatment so that it uses only:

    e.nextElement ())

    Once a loop iteration.

    Directly at the start saying something like:

    String fileName = e.nextElement ());

    and use fileName everywhere in your loop.

    Also be aware that printStackTrace() will do nothing in your situation, it only works if you catch Throwable.  So make sure you something output all your catches exception and also have a catch (Throwable t) to catch the things you miss, as follows:

    {} catch (Throwable t)

    t.printStackTrace ();

    System.out.println ("Eception exception:" + t.toString ());

    }

    I think your code is thrown an exception and you don't see it.

  • Run the code once when loading the form

    Hi guys,.

    I have a text field (TextField1), which fills with a value (1-100)

    During the initial loading of the form, this value will be the highest.

    When the user navigates around the shape, this number will change (lower than initial load)

    I have another text field (TextField2) on the form I want to keep the original value to the loading of the form.

    something like: TextField2.rawValue = TextField1.rawValue

    But any event that I put in it always updates TextField2 with TextField1 value (not does not run the code once when loading the form)

    Can someone tell how can I do this?

    If the form is loaded with the number 70 as a value in TextField1 - TextField2 has 70 as a value and maintains this value regardless of what TextField1 goes to...

    Thanks a lot for any help

    try putting in the TextField2 docReady event:

    $ = TextField1.rawValue

  • Run the code from the jar java fixed pitch

    Hello

    based on article

    https://supportforums.Cisco.com/document/98986/UCCX-quick-Java-recipes

    I copied the code of 1). and they changed a bit for my daysx24hours. The only type is, give the script a parameter (here the number of credit card and return the result of UCCX (perhaps the last type is missing).)

    The following code:

    ###############################################################################

    public class ClassCheckCC {}

    Public Shared Sub main (String [] args) {}
    TODO self-generating method stub
    String ccnumber = args [0];
    String ccnumber = "66666666666666666";
    int isValid = 99;
    isValid = verifyCC (ccnumber);
    System.out.println (IsValid);
    }
            
            
            
            
    private static int verifyCC (String ccnumber) {}
    int sum = 0;
    Boolean alternate = false;
    Boolean isValid = false;
    try {}
    int i = 0;
    for (I = ccnumber.length () - 1; i > = 0; i--) {}
    int n = Integer.parseInt (ccnumber.substring (i, i + 1));
    If {(acting)
    n = n * 2;
    If (n > 9) {}
    n = (% n 10) + 1;
    }
    }
    sum += n;
    Alternate =! alternate;
    }
    isValid = (sum %10 == 0);

    } catch (Exception e) {}

    Returns - 1;

    }

    return (isValid == true? 1: 0);
    }
    }

    ###############################################################################

    In Eclipse, I create a new java project named "CheckCreditCardNumber" and insert this code into the new project. The name of the new class is 'ClassCheckCC '. I created a "CheckCCNumber1.jar" executable jar file This will work as expected in a DOS window.
    I call it this way: java-jar CheckCCNumber1.jar 1234567890123456

    The number represents a credit card number.

    In my opinion, always ready to implement in UCCX.

    JAR file downloaded on UCCX (you can find it in an attachment here), moved to the right side (to the Classpath entries. selected :) Some service restarted. Do some tests to access the file and can be seen in UCCX Editor.

    Then, I created a new script file and inserted a defined step

    takes it place the following errors:

    But the result expected from the byte type (-1.0 or 1) java code. Shit, I declared the variable isValid as string occurs:

    We try to call java code:

    Next, the error message is different:

    Yes, here are my questions. What wrong? Where can I call this java code little success.

    I know, it s possible to run code without additional jar files. I am interested to implement more than java classes in a jar file for future needs, and this is a first step.

    Greetings Naatz Maic

    Hello

    UH... Let's get a few things right if you don't mind.

    Your class is valid, as you say, you tested with Eclipse, which is a fair way to go. You have two methods, 'main' and a private static "verifyCC" returning an int value. Good. Now, if I take a quick glance at your UCCX script I see some interesting things there. First, you create a new variable of type ClassCheckCC, with the name CheckCC and with null as default. Cool, that's like saying JRE of UCCX for "Hey, let's use a new variable of type ClassCheckCC", or more precisely:

    ClassCheckCC CheckCC = null;

    Alrighty. Then, you kind of try to value of isValid saying CheckCC (ccnumber). Why it's wrong: in Java, it does:

    isValid = CheckCC (ccnumber);

    You see already? The above code actually means:

    isValid = null (ccnumber); Not valid!

    CheckCC is null.

    Let's try a slightly different approach:

    public class CheckCC {}
    Public Shared Sub main (String [] args) {}
    System.out.println ("Move along, nothing to see here, call verifyCC (String s) instead. ');
    }
    public static int verifyCC (String ccnumber) {}
    int sum = 0;
    Boolean alternate = false;
    Boolean isValid = false;
    try {}
    int i = 0;
    for (I = ccnumber.length () - 1; i > = 0; i--) {}
    int n = Integer.parseInt (ccnumber.substring (i, i + 1));
    If {(acting)
    n = n * 2;
    If (n > 9) {}
    n = (% n 10) + 1;
    }
    }
    sum += n;
    Alternate =! alternate;
    }
    isValid = (sum %10 == 0);
    } catch (Exception e) {}
    Returns - 1;
    }
    return (isValid == true? 1: 0);
    }
    }

    You may have noticed that I made a few adjustments. I renamed ClassCheckCC to the simpler CheckCC, I changed the method of verifyCC to the public modifier. It's actually a great example of a utility class where you have not all instances, so we should let JDK code optimization.

    Using this approach, we don't need to create instances of the object - that they are unnecessary in this case. Simply call CheckCC.verifyCC (String aString) is quite sufficient. We can, as I will demonstrate, but then again, why should create us instances of the class each time a script is run.

    The following three constructs are valid (assuming that I have created the necessary variables: val, validCCNumber, and invalidCCNumber):

    Valid value = CheckCC.verifyCC (validCCNumber)

    Pure and simple. I simply call the static verifyCC method on the CheckCC class with a parameter.

    The valid value = {return CheckCC.verifyCC (invalidCCNumber) ;}

    I just padded the single line above with braces, creating a block of code, point comma and the return keyword became necessary.

    The valid value = {CheckCC instance = new CheckCC(); return instance.verifyCC (validCCNumber) ;}

    Now, it's quite redundant but functional example. I created an instance of the CheckCC class, named instance and then ran the method verifyCC on the newly created class instance. Once again, it is a situation when a developer is boring and has nothing better to do than to create instances of the class and sending them to the eternal bytefields.

    G.

    Here is a screenshot:

  • Why can't I just run the code developed in Lookout Lookout 6.5 6.2?

    Our client has developed the code in point 6.2 Lookout. Now that they have purchased Lookout Run Time 6.5 and they are unable to run their code. Is there a limitation that could cause this kind of behavior?

    Thank you...

    They should be able to run the .lks file.

    The .l4p file is not compatible.

    What is the error, they got?

  • Run the Code Labview program on VN8970 vector material

    I would like to ask if anyone has ever tried to run the Labview Code on the material vector in Standaone Mode,

    The VN8970 have a PC as material and I would use as my hardware target.

    Labview programming would go toward, creating / establishing a controller which output is POSSIBLE only.

    Necessary sensor data is on the BUS CAN even output going to the CAN-BUS network.

    The vector hardware box 8970 should run with the Labview code inside and be just like a car engine controller, just a BOX knot...

    Can anyone shade some light on this topic because it is very difficult to collect all the required bits.

    Vector support won't help with that because that intends it to sell their own software, which does not fit this need.

    Far as I can tell the VN8970 has an ATOM processor or a core-i7 on board and running something called vector CANoeRT.

    From the VN89xx Manual:

    "The family of interface VN8900 offers a stand-alone mode that allows you to measure without any other PC user.

    To this end that a request can be configured in the canoe, which is then written to the NVM of the VN8900. After a reboot, the configura-tion is loaded and the measure began independently. »

    Canoe uses a programming language called CAPL. My understanding is that the code of the CAPL is downloaded on the series VN89xx materials and run directly on the device without the need to be connected to a PC.

    In other words, I don't think there is a way to get a LabVIEW code to run on a VN8970.

    The vxlapi.dll that is used here is intended to be used on a Windows operating system. You can use it to control the VN8970 similar to the other vector material, but not in standalone mode.   I don't know what OS runs on the material of VN89xx but I doubt you'd be able to install a LabVIEW run-time engine on it.

    I think your only option to run a VN8970 in stand-alone mode is to buy a canoe license that allows you to do and learn how to write the CAPL.

  • Must click the button twice to run the code in the Click event.

    I have a button that has the following code to the click event.
    _SubFormS.setInstances (0);

    Last week, I added the code on the Exit of the next button event.
    xfa.host.setFocus (Subf.ButtonRemove);

    For some reason, I have to click twice for instance 0 value. It's never happened before. If I comment the code on the same output, nothing changes. Ideas of this weird behavior.

    Thank you.

    Hey, 1996

    It seems to me that you have a setfocus soomehwere which is always of the substitution of the click event. For example, if you have a field that does not check if (xfa.event.commitKey == 3) before that setFocus is called, it doesn't matter what other field (or button) you click on, you will be sent to the field specified by the setFocus. 'Double click' isn't a double click, it's a click that is substituted by a setFocus (which sends you somewhere else) then a second click which is not interrupted by a setfocus, which means you can click on the button.

    I don't think I have explained myself well, so here, step by step what I think is happening:

    -You are currently in an area that doesn't have that a setFocus without checking the commitKey.

    -You click on the button.

    -Due to the setFocus, you are sent to another field that does not have the button. This means that the button never fires the click event. the second field that you are sent to has the good commitKey checks.

    -You click on the new button,

    -This time, because the new field that you are in control of the good commitKey, you are not sent to another discipline, and succeeded to your click.

    I hope it did a good job of explaining my guess as to what is happening. Check all your output events to ensure that they all use the If (xfa.event.commitKey == 3) then bit. having forgotten one would explain why that happen all the time... it only occurs when you try to click on the button while you're in the field wihtout the cheque of commitKey.

    Let me know if this is useful,

    -Scott

  • How to run the code (invisible) after connecting and before the first page of the user.

    Our site has a standard login page that I can't change. But I want to run code 1) after logging in the application (not APEX!) and 2) before the first page of the user of the application. How could I (can I?) put it on a page that runs invisible and then transfers it to the first page of the user application? Also, it would be great for testing I could reiniitalize easily between test scenarios without having to log in again.

    Thanks - Howard

    You could put it on page 0 and condition the process so that it works only on the login page.

  • Illegal state Exception when running the code at startup

    Here's my main method:

        public static void main(String[] args)
        {
            if (args.length == 1 && args[0].equals("startup"))
            {
                Criteria locationCriteria = new Criteria();
                locationCriteria.setCostAllowed(false);
                LocationProvider mlocationProvider;
                Location mLocation = null;
                try
                {
                    mlocationProvider = LocationProvider
                            .getInstance(locationCriteria);
                    mLocation = mlocationProvider.getLocation(-1);
                }
                catch (LocationException e) {
                }
                catch (InterruptedException e) {
                }
                QualifiedCoordinates mQC = mLocation.getQualifiedCoordinates();
            }
            else
            {
                MyApp theApp = new MyApp();
                theApp.enterEventDispatcher();
            }
        }
    

    The method

     mlocationProvider = LocationProvider.getInstance(locationCriteria); 
    

    throws the illegal state exception

    When I check the debug information, I found this exception are thrown to the line when he calls Application.getApplication ();

    When I move this code to run in a normal life to screen it works fine. !

    Any help?

    There may be a number of issues here:

    (1) until your Application is actually running, you can't really do any processing.  Your Application does not start running until you

    'enterEventDispatcher() '.

    Hand, all you should do is instantiate your Application.  Manufacturer of your Application should not do anything complicated either, since it works as part of main().

    You can do some activities, for example to add listeners, in main() code that is, in some respects, unfortunate because it lulls people into thinking they can do anything.  ,

    (2) get the location as you do, is a blocking call.  If you need to do it on a background Thread.  You c a get away with that on the Simulator because GPS simulated returns immediately with a location.  So it does not actually block.  But on a real device, code as you can force your application to break.

    (3) you seem to try to do something in the commissioning.  You must be aware, this start-up up is called as part of the start-up of the device and before the unit is fully active.  In fact, I think on a real device that this code will fail because the device is not ready to provide a location in the beginning upward.

    You will find find article, informative and useful for (1) and (3).

    http://supportforums.BlackBerry.com/T5/Java-development/write-safe-initialization-code/Ta-p/444795

    I suspect you want to start and get a location at first upward, in which case you might find this useful:

    http://supportforums.BlackBerry.com/T5/Java-development/create-a-background-application/Ta-p/445226

  • Button to run the code block.

    Hello.

    I want to execute a block of code with the push of a button, but I can't find the solution.

    My vi is attached. Any help is welcome.

    Thank you.

    Hello vakost;

    A few points:

    -L' mechanical action of your Boolean is ready to "lock when published. In other words, it will reset to False after having read once.

    -You have no calendar control software in your loop, it is what is known as a "greedy loop" and run as fast as it can possibly

    For this reason, your true case runs, but that one time when you release the button and the button will be reset to False until you see probably because the loop runs probably thousands of times per second. If you enable execution highlighting to slow down execution of the VI to something, that you observe, you should see the Boolean indicator lights briefly before you reset it.  You must always place a wait function inside your loop to slow things up to a reasonable speed, however.

    Some other tips:

    -You only required to place the indicator Boolean inside the structure of business if you want to update in two cases (that you use a value of property in the other node) - just place it outside of the structure and the value you want to set out the case of wire

    -You created a while loop without stop condition, and VI must be abandoned to stop it.  Generally, you'll want to give the user a stop button to get out of the VI, abandonment is almost never a good idea.

    Kind regards

    -You don't need really the case structure in this case, he could just wire the Boolean OK button directly to the indicator.  My impression is that it's just a conclusive example or experience in how cases structures work, however, it's probably fine.

    Hope that helps!

  • Run the Code in a Java Applet

    I'm calling a Java to Javascript applet. The Java code must run in privileged mode.  Eventually it will display a file selector that allows you to view files on the local hard drive, but for now, she simply returns a dummy value simple.  The problem I have is that the JavaScript to Java call return PrivilegedActionException. The applet is in a signed Jar file.  I'm under 8u25.

    This is the Java class:

        // Java code
        public class OHLib extends Applet {
    
            public String getFile() {
                String result;
                try {
                    result = (String) AccessController.doPrivileged(new PrivilegedAction() {
                        public String run() {
                            // JFileChooser code will go here
                            return "xxx";
                       }
                    });
                } catch (Exception e) {
                    e.printStackTrace();
                }
                return result;
            }
    
        }
    
    

    Can someone tell me what's wrong with this code?  I would also be interested to know why the try/catch block above does not catch the exception.  The only place where I see the exception is in browser F12 developer tools.

    Here's the JavaScript code:

        function BrowseForFile() {
            var x;
            try {
                 // this code generates PrivilegedActionException
                 x = ohApplet.getFile();
            } catch (e) {
                 console.log(e);
            }
    
        }
    
    

    The applet is deployed on my web page as follows:

    <script src="/plugins/deployJava.js"></script>
    <script>
         var attributes = { 
             id:'ohApplet',
             code:'OHLib',
             codebase: 'java',
             archive: 'OHLib.jar', 
             width:1, 
             height:1,
         } ;
         var parameters = { 
          jnlp_href: 'OHLib.jnlp',
          classloader_cache: 'false',
         } ;
         deployJava.runApplet(attributes, parameters, '1.8');
    <script>
    
    
    

    The applet is in a jar signed with the following manifest file:

    Application name: < appname >

    Permissions: permissions everything

    CodeBase: < domain > .dev < domain > ".com"

    The appellant eligible Codebase: < domain > .dev < domain > ".com"

    Application library eligible Codebase: < domain > .dev < domain > ".com"

    The JNLP file is as follows:

        <?xml version="1.0" encoding="UTF-8"?>
        <jnlp spec="1.0+" codebase="" href="">
    
            <information>
                <title>title</title>
                <vendor>vendor</vendor>
            </information>
    
            <security>
                <all-permissions />
            </security>
    
            <resources>
                <j2se version="1.8+" href="http://java.sun.com/products/autodl/j2se" />
                <jar href="OHLib.jar" main="true" />
            </resources>
    
            <applet-desc 
                 main-class="OHLib"
                 name="OHLib"
                 width="1"
                 height="1">
             </applet-desc>
        </jnlp>        
    
    

    The problem was that I was not including the anonymous inner class (OHLib$ 1.class) in the jar file. My original CD jar command looks like this:

    jar cfmv OHLib.jar "../../jar_manifest.txt" OHLib.class
    

    Change to below solved the problem:

    jar cfmv OHLib.jar "../../jar_manifest.txt" OHLib.class OHLib$1.class
    

    Credits go to this page for the solution.

  • Run the code to output on output keyboard event and not mouse exit

    It seems that the exit event runs on the cell in the table (text field) when you select a cell with the mouse.  I have had to force a Tab or entry to set the focus keyboard to another cell in another table.  It's pretty easy to take place, but when you select a location with the mouse, the exit event seems to operate and excessive rides of the keyboard focus to the location I'm force.  Is it possible to ignore exit code for the event in case of non-clavier?

    Hello

    The exit event will always when the object loses the focus. Take a look at the end of this example that shows how you can detect how the field was left: http://assure.ly/j1KdNq.

    This early example also considered the development of a field setting when you press on enter: https://acrobat.com/#d=RZ1lzX23 * u7L4N9rtWCYPQ.

    Hope that helps,

    Niall

  • Hello. I am creating a quiz slide / move, a simple using flash, actionscript 3. I found the free sample on the Internet and I tried to run the code. It works! BUT. Once I tried to edit in my own simple movieclip, images etc, the boxes couldn't be dragged

    Here, I am attaching my mistake

    error.JPG

    Here is the actual code (credit to the owner)

    package

    {

    import flash.display.Sprite;

    import flash.events.MouseEvent;

    SerializableAttribute public class Main extends Sprite

    {

    var xPos:int;

    var yPos:int;

    public void Main (): void

    {

    addListeners (den, ocean, jungle, River, forest);

    }

    private void getPosition(target:Object):void

    {

    Target.x = PosX;

    yPos = target.y;

    }

    private void dragObject(e:MouseEvent):void

    {

    getPosition (e.target);

    e.target.startDrag (true);

    }

    private void stopDragObject(e:MouseEvent):void

    {

    If (e.target.hitTestObject (getChildByName (e.target.name + "Target")))

    {

    e.Target.x = getChildByName(e.target.name_+_"Target").x;

    e.Target.y = getChildByName(e.target.name_+_"Target").y;

    }

    on the other

    {

    e.Target.x = xPos;

    e.Target.y = yPos;

    }

    e.target.stopDrag ();

    }

    private void addListeners(..._objects):void

    {

    for (var i: int = 0; i < objects.length; i ++)

    {

    objects [i] .addEventListener (MouseEvent.MOUSE_DOWN, dragObject);

    objects [i] .addEventListener (MouseEvent.MOUSE_UP, stopDragObject);

    }

    }

    }

    }

    So here is one that I tried to change

    package

    {

    import flash.display.Sprite;

    import flash.events.MouseEvent;

    SerializableAttribute public class Main extends Sprite

    {

    var xPos:int;

    var yPos:int;

    public void Main (): void

    {

    addListeners (CAT, bear, duck);

    }

    private void getPosition(target:Object):void

    {

    Target.x = PosX;

    yPos = target.y;

    }

    private void dragObject(e:MouseEvent):void

    {

    getPosition (e.target);

    e.target.startDrag (true);

    }

    private void stopDragObject(e:MouseEvent):void

    {

    If (e.target.hitTestObject (getChildByName (e.target.name + "Target")))

    {

    e.Target.x = getChildByName(e.target.name_+_"Target").x;

    e.Target.y = getChildByName(e.target.name_+_"Target").y;

    }

    on the other

    {

    e.Target.x = xPos;

    e.Target.y = yPos;

    }

    e.target.stopDrag ();

    }

    private void addListeners(..._objects):void

    {

    for (var i: int = 0; i < objects.length; i ++)

    {

    objects [i] .addEventListener (MouseEvent.MOUSE_DOWN, dragObject);

    objects [i] .addEventListener (MouseEvent.MOUSE_UP, stopDragObject);

    }

    }

    }

    }

    in frame 1, click the object that you think is the cat.  in the properties panel, is - this "cat"?

  • table read and run the code in this table plsql

    We have irct_select_pl_sql of the table where we introduced pl_sql_code. In this field here is plsql code, procedures...
    Now, I want to read this table and executes all code in this area. Is this possible?

    Concerning

    Hi mitjab,

    BEGIN
            FOR X IN (SELECT COL_SCRIPT FROM irct_select_pl_sql) LOOP
                   EXECUTE IMMEDIATE X.COL_SCRIPT;
            END LOOP;
            COMMIT;
    END;
    

    If all scripts are compilation without errors, the above given example should work

    * 009 *.

  • Deploy and run the part of the project in real time RT

    I am developing a project, LabVIEW-RT, with a User Interface on the PC and evanescent code that runs on a PXI system.  I read a few posts discussing the possibility (or lack thereof) to start the RT of the project by program part.  Here's what I mean: my project has a first level VI on the host PC, call 'Host UI.vi', and a first level VI on the RT target, call it "target RT.vi".  There is the usual assortment of other features of the RT, such as flow, LAN and network Variables shared, etc.

    During development, I open the project, find the code RT target, select the target RT.vi and click Run.  I can do the same with the host UI.vi.  My code works (or not, depending on whether I have introduced new bugs).

    What I would like do is to run the host user interface and run the code to mimic an RT target selection in my project and perform a right-click.  I partly managed, but a small step escapes me.

    Can I programmatically deploy my RT code and make it pop a window front so I can click on the Start button.  I even managed to start running programmatically using VI server.  However, when I start it programmatically (rather than clicking Run), my shared network Variables are not available.

    I studied it a bit by using Distributed System Manager.  With her, I can 'see' my shared Variables of network on the target of the RT, but its status is offline.  I put online by clicking on the button 'Start process' in DSM, however, when I then try programmatically start my vi target RT using VI Server, Shared Ntwork variables goes Offline (accordint DSM).

    Question - is there a way to do a program equivalent to locate my network shared Variable in DSM and clicking on start processes?

    [I had a great idea while writing this post.]  I have noticed that if I deployed my VI and also expanded my network shared Variable, DSM has shown to be online, but the target RT start VI VI Server, the NSV went offline.  What happens if I have deployed it after from the remote?  Good idea, too bad that it didn't work...].

    All the best ideas?

    BS

    Well, I just did!  I wrote a demo project RT with the following characteristics: RT side consists of a single VI that affect False in a Boolean Variable (NSV) shared network, goes in a while loop until there is true, goes into an another wait loop to make it False, then ends.  The NSV is hosted in a library on the remote target.

    The host does the following:

    1. Determine the IP address of the target of the project.
    2. The first name of the VI RT to run, to return a reference to it.
    3. Use the reference to deploy the RT VI on the remote target.
    4. Use the IP address and the name of the RT VI for a VI Server reference.
    5. Use the reference to start the code that runs on the target of RT.
    6. Go in a loop looking at the NSV and wait for the status of the error not be 8BBB0006 (uninitialized NSV).
    7. With the value returned by the NSV (must be set to False, defined by the code of RT), deny it, set it and wait that it will change.
    8. Do this one more time to return the NSV to its original value (as defined by the code of RT).

    Before running the code, right-click on the target of RT in the project and turn on "disable AutoDeploy Variables.  J of Zach, an Applications Engineer of NOR, suggested that this step, which can be the key step in the resolution of this dilemma.

    To test this, I restarted my PC and the aim of RT.  Once both had restarted, I opened the project on the PC, and without interaction with the section the project somehow RT (including not not clicking 'Connect'), I ran the host code.  He started the remote code and was told that the round trip time for set and reset my NSV was about 29 msec.

    I intend to make a full text of this and submit the entire project, with documentation and all the screws under utility, I used, to community page OR.  I'll try to get this done this weekend...

    Bob Schor

Maybe you are looking for

  • Project displays the titles under automation only

    Hello world First of all sorry for my English, my native language is German. I'm in the middle of a project of mixture. For some reason, all the tracks are displayed in the form of automation (see photo below). I never had this problem and I am not a

  • How to unlock my iPhone 5 door

    Pano I unluck yung iPhone 5 ko galing Japan and my service provider is not turn on

  • Linksys E4200 and VoipBuster sip call

    Hello Just recently bought a router Linksys E4200 and it was rocking so far! I've updated since a WRT320N. However it seems that the call SIP (using my account Voip Buster) no longer works... I don't seem to be able to register with the Voip service.

  • Microsoft visual runtime error

    try to install backup discs and I get the above consignment which stops my back upwards. I really need to get my pictures from the back to the top. Help, please.

  • The user manuals

    HP Pavilion 23-H024 8.1 WindowsIt was the second time I called Support.  The first time (16/09/2014) has been excellent to know how to burn a DVD-CD.  At this time the person (India) said that he would send me manual user (ideally a PDF file to downl