Writing to globals without explicit wiring

Hi,
Apologies if the topic title is vague, I didn't know how to phrase myself.
In a current software project I'm working on, I have a VI that loads
configuration data from a config file and writes them into several
globals.
The surefire way is to manually make the connections to the "Read Key"
VI, explicitly stating the section and key, then manually wiring the
output to the relevant global.
However, as I have nearly 100 config data, this would seem excessively tedious.
I'm stumped on this one. Anyone have any ideas?
Thanks in advance.
cheers

The easiest way to do what you want is to open a reference to the globals VI and then get\set all the control values:
But this is a hack and I would advise against that unless your data is really static. The better way would be to move away from globals, as they are usually a recipe for race conditions and bugs. There are other alternatives. Using an action engine with the OpenG variant config VIs might help you.
Try to take over the world!
Attachments:
Example_VI_BD4.png ‏2 KB

Similar Messages

  • Booting up with the Install CD without a wired keyb

    Folks
    I am having major issues here and need to run a hw test and then perhaps archive and install. But I only have a wireless keyboard.
    Surely...surely...surely with all Apple's attention to detail there is a way to boot up into your install CD without a wired keyb? My mac is stuck at the grey screen with the rotating gear...

    Just curious about something. When you get an iMac and chose wireless keyboard option does Apple include the wired keyboard in the box also? If so what happened to the wired keyboard?
    lenn

  • Writing to table without SDK

    Hello Everyone,
    I have created a UDO with a child table.  I need to pull the most recent entry from the child table to the Item Master price field.  Of course, I can do this just fine using a FS off the price field.  However, I want this recent entry to automatically update the Item Master price field so that it can be used in the system without ever going to the Item Master window for the FS to run.  Can this "writing" to the Item Master table be done without the SDK - I have yet to attend training.

    As SAP Business One is a two-tier application, it is not too difficult to do that using SQL.
    But using SQL means that you do it on your own risk!
    You will lose support by SAP in case of any issue which could be related to that!
    That's why I would strongly recommend to stay away from such workarounds.
    Best regards,
    Frank

  • Possibility of writing OCP exams without OCA exams

    Can you write OCP exams without writing OCA exams

    I think you can take a ocp level exam, but you will not recieve certification until passing all required oca and ocp level exams.
    http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=43

  • How can I activate a functional global without displaying a LabVIEW VI ??

    Hello. I'm using Teststand and have been got stuck on a problem now.
    Whenever I communicate to a LabVIEW VI which is activated as a functional global,  I purposely displayed the LabVIEW VI on front pannel to make sure the data communication.
    However once I released the check mark 'Show VI front pannel when called' , the data transmission including receiving vanished. As a matter of fact, always the numeric data resturns ' 0 '.
    So the data communication must be transacted with a shift resgister function at each step in Teststand, so it always provides a command to the functional global VI for an e-num  item selector.
    Therefore it looks the shift register function doesn't work at the point anymore in the functional global VI.
    Otherwise as long as I suspend the VI as a display, checking on the box 'Show VI front pannel when called' , I exactly can make sure the data communication , receiving the command and returning the data.
    Have you heard that kind of unusal problem before?
    Do you think it happened due to data communication or just simply Teststand applicational error?
    If it has some useful information, I try to fix them. 
    Thank you.
    Noriyuki

    hirose wrote:
    Hello. I'm using Teststand and have been got stuck on a problem now.
    Whenever I communicate to a LabVIEW VI which is activated as a functional global,  I purposely displayed the LabVIEW VI on front pannel to make sure the data communication.
    However once I released the check mark 'Show VI front pannel when called' , the data transmission including receiving vanished. As a matter of fact, always the numeric data resturns ' 0 '.
    So the data communication must be transacted with a shift resgister function at each step in Teststand, so it always provides a command to the functional global VI for an e-num  item selector.
    Therefore it looks the shift register function doesn't work at the point anymore in the functional global VI.
    Otherwise as long as I suspend the VI as a display, checking on the box 'Show VI front pannel when called' , I exactly can make sure the data communication , receiving the command and returning the data.
    Have you heard that kind of unusal problem before?
    Do you think it happened due to data communication or just simply Teststand applicational error?
    If it has some useful information, I try to fix them. 
    Thank you.
    Noriyuki
    I'm not sure about the current versions of TestStand but in previous versions you had the possibility to preload certain test steps or initializer VIs. TestStand made sure to keep them in memory for the entire duration of the particular test sequence. You create such an initializer VI and call your init method in there and mark that step as preload. On loading the sequence or initializing it your step gets called and stays in memory for the entire duration. I would be surprised if TestStand doesn't support this anymore.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Casting without "explicit" coding

    Hi,
    I have some problem with casting. Here is the code:
    * public interface ViewInt...
    * public class View extends JInternalFrame implements ViewInt...
    * public class View2 extends JInternalFrame implements ViewInt...
    * public class Main
    ViewInt frame=new View();
    In some other class, I need to add this frame into a DesktopPane,
    but his code isn't work
    this.getDesktopPane().add(frame);
    because the method add(ViewInt) doesn't exist!
    But it works like this: this.getDesktopPane().add((View)frame);
    My problem is that in this class, we are not supposed to know the class View!
    How can I make this work with View2 too or another classes without instanceof because it is supposed to accept any class which extends JInternalFrame?
    I try this but doesn't work: this.getDesktopPane().add((frame.getClass())frame);
    Any idea?

    Option 1: Add a common view class, so that you can refer to both objects through the same reference, i.e.
    public interface ViewInt {...}
    public abstract class AbstractView extends JInternalFrame implements ViewInt {}
    public class View extends AbstractView {...}
    public class View2 extends AbstractView {...}
    public class Main {
        AbstractView frame=new View();
            getDesktopPane().add(frame);
    }Using this approach, you can refer to either type of view using the same reference, and they are both Frames and ViewInts. However, your code is still aware of the View class, albeit through a new common base class.
    Option 2: Make the interface aware of the fact that it'll be implemented mixin with a Frame, and have it provide access to this Frame, i.e.
    public interface ViewInt {
        JInternalFrame asJInternalFrame();
    public class View extends JInternalFrame implements ViewInt {
        public JInternalFrame asJInternalFrame() { return this; }
    public class View2 extends JInternalFrame implements ViewInt {
        public JInternalFrame asJInternalFrame() { return this; }
    public class Main {
        AbstractView frame=new View();
            getDesktopPane().add(frame.asJInternalFrame());
    }Using this approach, you can refer to either type of view using the same reference, but they are not Frames, only ViewInts. However, your code can still access the frame.
    Any other classes implementing this interface must support this method. They could throw an UnsupportedOperationException, and this approach is a bit messy in that it mixes the model and the view. However, you're already mixing the two by expecting to be able to be able to add a model object as a view object.

  • Is there a way to place globals without the label (LV7)

    The default bahavior has apparently been changed from version 6 so that globals placed from a file now have the label visible. Is there a way to disable this?

    I have noticed this as well and just right-click on a new global and go to Visible Items -> Label and uncheck Label. This isn't too painful.

  • Internet share without a wired line

    I want to share my internet for my phone,and the Air doesn't have a wired line .there
    is no solution to my question in the internet.

    1. Open System Preferences
    2. Go to 'Sharing'
    3. Click on 'Internet Sharing' (leave the box unchecked for now).
    4. From 'Share your connection from' choose 'Built-in Ethernet'
    5. From 'To computers using' check the 'Airport' box
    6. Open 'AirPort Options' (bottom right), name the network. (Once it all works, go back and assign a password).
    7. Now, check 'Internet Sharing' box and turn on AirPort. The AirPort sign on the iMac menu should turn into an arrow.

  • How to use REFNUM to communicate between Tab Control Indicator panel and subVI without explicit connections?

    Hi! One of my test programs needs to show many readings on the fron panel. I used a 4 page Tab Control to separate
    different catagory readings and put them in the clusters. If I connect these indicator clusters to the subVI by refnum explicitly, the program runs too slow. So I am trying to make the subVI communicate with the front panel without explicite refnum connection. So far, the subVI can communicate with the clusters on the front panel but not on the Tab Controls. Is anyone can give me some ideas how to communicate/pass the data to the clustes on the
    Tab Control? Thanks,

    Hi Qian,
    If I understand the question correctly; you want to know if there is some other way to access the controls on the tab control without actually using a refnum from the VI that has the controls.
    To answer this question I would say that LabVIEW is a very powerful programming language and one of the very cool features is that it gives you access to all the controls on a VI into another VI without actually passing any data between them.
    The best way to do this would be using VI Server. The functions that you need to call would be Open VI reference to open a reference to your VI having all the controls. Then use a combination of Invoke nodes and Property node get access to the controls on the front panel of your VI.
    Do let me know if you have further questions.
    Ankita A.

  • Is it possible to script with Photoshop without explicit BridgeTalk use?

    Not sure if I'm just "doing it wrong", but let me try to explain.
    I know the usual "BridgeTalk.send()" process for sending messages to another application. What I'd like to do is join the scripts that I use for the different applications and have the process initiated from one, without having to use "eval()"'d scripts.
    When my #target is "illustrator" the app object refers to the Illustrator object. The "photoshop" object within Illustrator is not the same as the "Application" object that would be available if the #target was something else. Is it possible to do this?
    Simply put, with Photoshop and Illustrator open, I want to use a script ran from Illustrator to affect Photoshop without using the "eval()" method (and BridgeTalk.send() -- which is still just an "eval()"'d body.)
    Thanks!
    Edit: Not sure if it's hindsight or just a moment of clarity. I see there's a Application.doAction() method, is there one for running a specific script? That might be a better way to accomplish what I want to do.

    Well part of my workflow has me creating the drawing in Illustrator then exporting it to Photoshop to do all the raster things. These are architectural drawings (before they get to Illustrator they are born as CAD drawings.) I'm generating "pretty" display drawings. There is a lot of them so a lot of the "actions" on the files are repetitive and consistent. I've already got scripts for both the Illustrator and Photoshop side (that include exporting now). I'd like to invoke the Photoshop script from the Illustrator one, rather than having to manually run it from Photoshop.
    The reason that the BridgeTalk "eval()" solution isn't ideal, is that these are fairly "large" scripts. Preparing them to be escaped so they could be "eval()"'d is just a bit of a nuissance to me. Not the end of the world mind you, just a nuissance.

  • Writing an application without any native code

    Good Evening every one,
    i would like to know whether it is possible to package and deploy on appStore an application is which only made of HTML/CSS/JavaScript, without any native code.
    I thank you for your answers.

    Hi Loloof, and welcome to the Dev Forum!
    loloof64 wrote:
    i would like to know whether it is possible to package and deploy on appStore an application is which only made of HTML/CSS/JavaScript, without any native code.
    No, it's not possible to build a native app without some native code. However the Cocoa code needed to bring up a web view object which runs your html etc. is minimal. I don't think you'll have a problem finding that code as a template, along with instructions on how to build your app from it. - Ray

  • Embedding images without explicit style definitions

    I'm designing an app with a big row of buttons.  They are all identical except for the label and icon.  Ideally I would like to be able to define them via ActionScript using a for loop.  I'm stuck on how to embed the icon images though without doing a separate style entry for each button.
    example code:
    var labels:Array = ["hello", "interior", "exterior", "photos", "videos", "accessories", "games"];
                for each (var s:String in labels) {
                    var b:Button = new Button();
                    b.label = s;
                    buttonBox.addChild(b);
    For each button I've got graphics called name.png and name-b.png.  So how would I set the skin and over-skin properties of each button programmatically, as if I had made a separate style for each button ala:
    .hello {
       skin: Embed(source="assets/hello.png");
       over-skin: Embed(source="assets/hello-b.png");

    [Embed(source="assets/hello.png")]
    public var buttonskin:Class;
        b.setStyle("skin", buttonskin);

  • Writing to file without spaces!

    Hiya :)
    I am relatively new (ok, very new :) to Java programming.
    I have had my first attempt at creating a program that can create a new file, and then write to it.
    The problem is that when I try to write the string "Happy!", It writes " H a p p y !" (with spaces).
    Could someone please tell me
    a) Why does it do this?
    b) Is there any advantage for it to do this?
    c) How can I stop this from happening?
    d) Is there a better way to write to a file?
    Here is the code:
    import java.io.*;
    public class writer
         public static void main(String args[])
              File outf = new File("blah.txt");
              try
                   DataOutputStream out = new DataOutputStream(new FileOutputStream(outf));
                   try
                        out.writeChars("Happy!");
                        System.out.println(""+out.size());
                        out.flush();
                   catch(IOException ioex)
                        System.out.println("Error - writeChars");
              catch(FileNotFoundException ex)
                   System.out.println("Error - DataOutputStream");
    Ok, thanks in advance to anyonewho can answer my question :)
    NightCabbage

    Try this
    import java.io.*;
    public class writer
    public static void main(String args[])
    File outf = new File("blah.txt");
    try
    PrintWriter out = new PrintWriter(new BufferedWriter( new FileWriter (outf)));  
    try
    out.println("Happy!");
    out.flush();
    out.close();
    catch(IOException ioex)
    System.out.println("Error - writeChars");
    catch(FileNotFoundException ex)
    System.out.println("Error - DataOutputStream");
    }

  • How to access the datasource window in SSRS for sql server 2008 R2 for writing my query without having to go through the wizard?

    I have used SSRS a lot years ago with Sql Server 2000 and Sql Server 2005. I have written external assemblies, ... But now I have to do this with Sql Server 2008 (R2 -- which I realize I am way behind the times already but ...)  in sql server 2000 and
    2005 there was a tab for datasource to the left of the tab for design which was to the left of the preview tab. How do I get to the datasource window in sql server 2008 (r2) ?
    I see that datasource explorer.  But where can I get to the datasource window to edit my queries and so forth for sql server 2008 (R2)?
    Thanks
    Rich P

    I think I found the answer to my question --- just right-click on the the Data Sources or Datasets for editing connections and dataset queries.  I'm guessing it gets even fancier with Sql Svr 2012 - 2014.    Man, that's the one thing
    about coding platforms -- you let it go for a few years and come back, and everything has changed (well, a lot of things).  Now I need to figure out how to add an external assembly to SSRS 2008 (R2).
    Rich P

  • Reading/writing digital lines without external hardware (besides daq device)

    Hi,
    I have a USB-6259 (mass termination).  I don't have any additional hardware, just the USB device.  I  am trying to use the MAX utility (4.2.1) with NIDAQmx (8.5).  I eventually want to program digital lines (read and write them) using the NIDAQmx API.  I ran some of the VB6 samples.  I thought how it works is that I could run the WriteDigChan VB code to set line(s) on or off, then use the ReadDigChan VB code to read those lines I changed.  However that did not work so I started created some tasks using MAX however that does not work either.  I hope this is not too stupid a question but I am not too familiar with the hardware.  Do I need some additional hardware connected to my 6259 to keep those digital lines in one state or another?
    thanks, David

    Without regard to using it in VB, I am trying to understand the operation in MAX.  I am attaching two screenshots of 2 tasks that I am using.
    thanks for replying, David
    Attachments:
    ScreenHunter_004.jpg ‏180 KB
    ScreenHunter_005.jpg ‏233 KB

Maybe you are looking for