Control a distant vi programmatically

Hi,
How to programmatically control a vi?
How to call the function "distant connection" of the "execut" menu?
thanks

Francky,
I don't know the expressions "distant connection" and "execut".... but I have a link to documents that describe, how you could programmatically control VI's:
http://zone.ni.com/reference/en-XX/help/371361A-01/lvhowto/vi_server/
VI Server is also explained in detail in our LabVIEW Basics/Intermediate classes (ni.com/training)
Hope this helps,
Stefan
Impossible is nothing - nothing is impossible

Similar Messages

  • Tab Controls - Adding a page programmatically?

    It's probably not possible from what I've read on this forum, but I would really like to be able to add tabs
    programmatically (v6.0.2). But, having just read that they are like enums and are read only (can't change
    page names) it looks like this is going to be an unfulfilled desire.
    Though what I want to do can probably be done easily enough using hidden tabs it's annoying to not be able
    to control the order of the tabs nor the text. I don't want to have anything on the pages but just want
    to have the tab control there for switching between what is displayed in another control.
    Thanks,
    Naveen

    No, unfortunately, you cannot add pages programmatically to a tab control. The best you can do is add as many pages as you would ever possibly want at run time when you are building your tab control. Then use the visible property for the pages to determine how many are displayed at any time.
    Matt Kisler
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • How to change numeric control and indicator radix programmat​ically?

    Hi All,
     I need to know how can we change the radix of numeric control as well as numeric indicator while program is running.
    Regards,
    Pramod M G
    Solved!
    Go to Solution.

    Right.  Sorry   Display Format -> Format
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • Styling of controls does'nt work  programmatically

    Hallo,
         I have a stylesheet (mystylesheet.css) with following entry:
    .flowpane{
        -fx-background-color: rgb(0,0,0);
    in then start-method of my application I execute:
            StackPane root = new FlowPane();
            Scene scene = new Scene(root,primaryScreenBounds.getWidth(),primaryScreenBounds.getHeight());
            scene.getStylesheets().add(css.getFile());
            root.applyCss();
    no FlowPane gets black. But if I do that in SceneBuilder and add the stylesheet to root than after loading Fxml-file the FlowPane gets black.
    Another approach:
            StackPane root = new FlowPane();
            Scene scene = new Scene(root,primaryScreenBounds.getWidth(),primaryScreenBounds.getHeight());
            scene.getStylesheets().add(css.getFile());
            root.getStyleSheets().add(css.getFile());
            root.applyCss();
    Nothing happens.
            StackPane root = new FlowPane();
            Scene scene = new Scene(root,primaryScreenBounds.getWidth(),primaryScreenBounds.getHeight());
            scene.getStylesheets().add(css.getFile());
            root.getStyleSheets().add(css.getFile());
            root.getStyleClass().add("flowpanel"); 
            root.applyCss();
    Does'nt work too;
    but root.setStyle("-fx-background-color: rgb(0,0,0) works. But I need to style my application by css-files.
    What I'm doing wrong?
    with regards
    Rafal Ziolkowski

    The way I usually add stylesheets to a scene for simple programs that aren't using FXML is to invoke the following line from the application:
    scene.getStylesheets().add(MyApplication.class.getResource("mystyles.css").toExternalForm());
    Where mystyles.css is placed in the same directory as your Java source file and the project build process copies it to your project output directory (e.g. it will be copied to the same location as the application class file).  Optionally the build process can package the app up into something like an executable jar file.  So if you build is doing that you can unjar the jar file and check that your css is in there in the correct location next to your main application class.
    I have no idea what css.getFile() is in your code, so it is impossible to comment on what that may do.  It is usually best for questions like this to provide a complete minimal executable that somebody could just copy and paste to run.  Also if there is any stack trace generated, then you should include the complete stack trace in your question.

  • How to control the cursor position on a text item..

    Hello,
    How can we control the cursor position programmatically on a text item.
    i.e. how do we move the cursor to home or end of the text item.
    TIA,
    Hiten

    If you have an access to metalink.oracle.com, take a look at notes:
    Note 61656.1 (V45) HIGHLIGHTING A REGION OF TEXT
    Note 131028.1 Default Highlighting in Forms (Client Server)
    and threads from metalink forum:
    531481.996 "Select_All not working in 6.0.8.25.2", 153092.995 "Text item cursor position"

  • How to use your own database with your users to authenticate in a Web app?

    Hello, everybody!
    I'm starting to write my first web application and I'm going to use JSF, JPA and EJB3 in this application. One of the first things that I have to do on it is the authentication part where I'll have a page with a user name and a password for the user to login. So, as I'm new to all this in Java (I've already implemented this on .NET in the past), I was studying the Java EE 5 Tutorial, especifically the section "Example: Using Form-Based Authentication with a JSP Page". But I saw that the users that the sample application uses come from the file realm on the Application Server. The users are created there and assigned a name, a password and a group. After the users are in the Application Server we can simply uses forms authentication declaratively in the deployment descriptor (web.xml).
    But the problem is that this doesn't work to me as I already have my own database with my users, so I want to use it instead of having to create the users on the Application Server.
    So, I'm asking you how to do that. Of course I'm not expecting that you place the code here to me as I know that such a thing could be complicated. Instead, I'm asking if you know about some tutorial, article, book or something that teaches how to do what I want. But I would like to see theses examples using JSF and/or EJB3 because these are the technologies that I'm using to develop. It's a pity that the Java EE 5 Tutorial doesn't have an example using a custom database as I know that this situation is very common in the majority of web sites.
    Thank you very much.
    Marcos

    From memory, it goes like this... You just create a
    raw jdbc connection on your user database using a
    special "login" DB user account, which has
    permissions only to an "authenticate" stored query,
    which accepts two arguments: username & password, and
    returns a boolean 0 or 1 rows found.When I implemented this in .NET's ASP.NET I had the same solution. I had an special user created in the database that I used to log in. When the real user entered his username and password I was already logged in and I had just to check his username and password agains the right table in my database.
    But that was only possible bacause when I connected to the database using my hidden user, I used the rights APIs in ASP.NET that coordinate the authentication process. This means that before login in, no one could access any resources (pages, atc...). So what I'm saying is that I can't manager this manually in Java. Java has to have some API or whatever to allow me to control the login process programmatically, while letting the Application Server control the access to the resources.

  • Using Bind Variable in a SELECT

    Hi,
    I'm trying to build up my SQL query at run-time using bind variables and in the Oracle® Fusion Middleware Fusion Developer's Guide for Oracle Application Development Framework 11g Release 1 (11.1.1) it says that 'After defining the bind variables, the next step is to reference them in the SQL statement. While SQL syntax allows bind variables to appear both in the SELECT list and in the WHERE clause, you'll typically use them in the latter context, as part of your WHERE clause.'.
    However, when I try to use the bind variables in my SELECT list because I've had to set a type for the variable to String the variable gets inserted with inverted commas either side e.g. SELECT 'Service' FROM TestTable. Is it possible to use bind variables to insert a value into my select list without these inverted commas around it?
    Thanks in advance,
    Tom

    OK, thanks for your response. Do you know of a way then where I can control my SELECT parameters programmatically? I'm currently trying to do it using the information in the chapter '35.9 Using Programmatic View Objects for Alternative Data Sources' from the Oracle® Fusion Middleware Fusion Developer's Guide for Oracle Application Development Framework 11g Release 1 (11.1.1). I think I'm part way there, would this be the correct way of acheiving what I want?
    Cheers, Tom

  • 3d plot z scaling

    An aplication we're developing utilizes the 3D Surface.vi to plot a
    surface. However, I'm unable to come up with a way to controle the z
    scaling programmatically by property node or by other means. In
    addition, it would be nice if anyone has a way to generate a cursor
    that reads out the z value on the surface.
    Thanks.
    Devon
    Wavefront Sciences, Inc.
    LV 7.1

    The attached ZIP should get you started.
    The top level VI labeled "3-d Surfaace.VI"
    explicitly sets the scale ranges in the sub VI Set Axis Range
    and creates two cursors. The second of which can be used to probe the suface.
    I hope this helps,
    Ben
    Message Edited by Ben on 10-22-2005 08:22 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Code.zip ‏259 KB

  • How to create dynamic entity beans at runtime (experts welcome)

    Hi,
    i have a question that i have been trying to figure out however i am still in search of an appropriate solution and thus ask you experts for guidance...
    I am developing a system to house data using ejbs.. however a have a problem i am trying to make the system very dynamic and some of the data that i am trying to store is dynamic in its nature..
    let me explain: i am searching for a solution that would allow a entity ejb to have a dynamic set of properties
    e.g.
    DataEntity could have one or many attributes but those attributes may be string, string, int, int
    or could be int, int, int
    or long, long
    or double..... or any configuration
    this DataEntity would linked to a TypeEntity that would act as a reference to know how to store and retrieve data..
    I have just come across JMX and dynamic Mbeans, and at first glance this seemed like it may be able to help but after further research i think this handles a different problem than i am facing.. (however might be wrong?)
    At the moment i am using toplink as the OR mapping but have also jsut started looking into hibernate..
    So far all i have come up with is to have a FieldEntity as a mappedsuperclass and have sub classes such as IntFieldEntity, LongFieldEntity.... which simple contain one field i.e int value, or long value..
    . and have DataEntity have a one to many relationship with the field superclass..
    the problem with this is how this gets mapped
    my ideal solution would be to have a dynamic DataEntity which could be generated at runtime and have all the required attributes for the particular type..
    so DataEntity would be a mappedsuperclass and then at runtime new types of DataEntity's could get spawned, database table created and OR mapping created linking?
    e.g.
    DataEnity1
    String attribute1;
    String attribute2;
    int attribute3;
    DataEnity2
    int attribute1;
    int attribute2;
    long attribute3;
    Has anyone ever created a structure like this or seen anything like this before?
    any advice would be appreciated
    regards,
    fg

    You cant add controls to the visual tree a runtime which persist beyond the lifetime of the application.  You will have to persist an indicator to your program which tells it to add the control.  Adding a control is as simple as initializing
    it and adding it to a parent already on the tree.  Controls can be created programmatically or using the XamlReader.Load static method.  You can find XamReader.Load in Windows.UI.Xaml.Markup in windows 8.1, Windows 8.1/Windows Phone unified
    projects.  For old windows phone ad just Silverlight I believe it is in System.Windows.Markup.
    Hope this helps.

  • Execute MenuItem

    Dear all,
    I need to automate the comment enabling ("Comments->Enable for commenting in Adobe Reader") using Acrobat 8.0 in windows(operating system).  Kindly help me how to automate that process through javascript or vbscript without manual interaction.
    I used the below code:-
    app.execMenuItem("Annots:ReaderEnable");
    After execution of the above code the "Save As" window appered. But i dont know how to control that window through programmatically. Kindly advice me how to solve this through coding.
    Thanks

    You can automate this with the Adobe LiveCycle Reader Extensions ES software:
    http://www.adobe.com/products/livecycle/readerextensions/

  • About forms builder 6i's tab page

    when tab page is changed from one to another which triggers will be fired in order?? (click the topmost Tab Page )
    thanks
    Edited by: user650991 on Apr 16, 2009 6:11 PM

    ok, I find the answer in metalinnk.
    Native Tab Controls in Forms - Tab Pages and Tab Canvases
    Doc ID: 43014.1
    Controlling Canvases in Forms Programmatically
    Doc ID: 73441.1

  • Clusters as dynamic events being registered

    I am trying to define each of these controls as changevalue events programmatically where I register andd unregister each of the controls that are part of the cluster objects as evenets to the same structure.  I can wire the clusters as references into the register events object fine, but when I try to wire them in direct, I get a conflict error.
    Can someone explain to me why this is?
    Attachments:
    twoclustersasevents.vi ‏49 KB

    I am not able to open your vi as it is lacking at least one of the clusters. Try savinging it "Save with Options", "Development distribution", to include all the missing parts.
    P.M.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • Grey screen locks Mac

    I am using log me in to control a distant computer. I launched a couple of encodings tasks with Episode Pro and disabled the computer and display sleep. However for some reason after a while I get this grey screen asking me for user and password, and it stops everything going on.
    Any idea ?

    Of course Require Password is unchecked in the Security & Privacy prefs.
    One more thing: I think I remember seeing this gray screen right after installing Lion for the 1rst time... With something like the Utility window.

  • Modification, ReportSet sumbission

    How to modify an existin report?
    How to submit a Report set in ADI?
    if we can, is there a way to specify file name with directory path?
    Is there any way we can access the ADI forms so that we can program the controls and sumbit it programmatically on a specified date of each month?
    Thanks

  • Automatic enabling of communication channels

    Hello,
    does anybody know if there is a way to enable/disable communication channels automatically using a batch script or anything similar? Background of my question is that I have got some JDBC sender adapters polling all the time. It would be very convenient to be able to control them in a programmatic way.
    Kind regards,
    Heiko

    Hi Vishal,
    thank's for your help but that's not exactly my requirement. The idea was to have some kind of trigger on the DB starting, when data comes in, the commincation channels automtically. It's a little tedious to do all these things manually. Other messaging systems (e.g. MQ Series) provide a scripting environment to do these things.
    Kind regards,
    Heiko

Maybe you are looking for

  • Windows XP Pro Running on MacBook Pro

    With the MacBook Pro's running on Intel processors, can the MacBook Pro run Windows XP Pro? I love my Mac (currently a 15" G4, before that a Wall Street) but my work requires running applications that work on Windows. Virtual PC use to be descent but

  • "Use presets for responsive layout" not working in Chrome

    I am building a responsive website. I am going to have parts of the website animated using Edge Animate. I will make the animation and then insert it into a div in the responsive website I am building. The Adobe Edge animation has a width of 100%, so

  • G/L Account currency is not consistent  with G/L Interim Account currency

    Hello A few days ago I was  printing checks and suddenly an error occurs it says something like..."Another user is accessing the same account" In the reserch   I found help in SAP Portal, where I showed how to unlock this part This I did in Administr

  • Button Broken & I can't figure out why

    I'm creating a simple Flash site for a client and am new to AS3. I have 6 buttons on the page that need to go to different frames in the site--very basic stuff. Button Story should go to the frame labeled story, etc. I've tried about 5 different perm

  • IOs 8.2

    Is there going to be a fix for iOS 8.2?  it has problems with email and app store