What kind of variable?

Hi
I have a vi contains some subvis.One of my subvi take data and process that. Based on the result of processing some variable outside that subvi must be set by user and after that the subvi will continue more processing on data. Now how can i define that variable in a manner that when i change its value exactly my subvi take new value. it must be mentioned that i have no idea about that variable's value.(how can i define a variable for subvi in order to be updated when i change its value out of that subvi?)
Thanks

farashi wrote:
Hi
I have a vi contains some subvis.One of my subvi take data and process that. Based on the result of processing some variable outside that subvi must be set by user and after that the subvi will continue more processing on data. Now how can i define that variable in a manner that when i change its value exactly my subvi take new value. it must be mentioned that i have no idea about that variable's value.(how can i define a variable for subvi in order to be updated when i change its value out of that subvi?)
Thanks
Thank you for asking!
This Nugget on Action Engines talks about how to share data between multiple threads while avoiding possible race conditions.
They are a very power code construct that are used by many of the most advanced LV developers while alos being useful for the less experienced. Please review that nugget to find out how they are implemented and the advantages of their use.
Just trying to help,
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • I need in Formula Node to assign to the variable value 4000000000!!! What kind of variable it should be???

    i've just tryed to write unsigned in32, but it does not understand 'unsogned'... But i need variable to be unsigned, because the max value = 4000000000... So, how can i solve this probleme???

    Hi,
    I don't see exactly what you're trying to do here.
    Where do you want to assign the variable 4000000000 to? If you want it as an
    input, just use a dbl, with only zeros behind the coma.
    Note that an integer is a number without any decimals. An integer in LabVIEW
    is this, but with an extra limitation that it can only be 32 bits... So a
    dbl can be an integer.
    If the input dbl is not an integer, use round, round to -inf or round to
    +inf to make it one. This can also be done if the output needs to be an
    integer.Inside the formula node floor(x), int(x), intrz(x) or ceil(x) can be
    used to make integers.
    I hope this is what you mean... I can't see any problems doing this.
    Regards,
    Wiebe.
    "DrON" wrote in message
    news:506500000008000000E
    [email protected]..
    > I need in Formula Node to assign to the variable value 4000000000!!!
    > What kind of variable it should be???
    >
    > i've just tryed to write unsigned in32, but it does not understand
    > 'unsogned'... But i need variable to be unsigned, because the max
    > value = 4000000000... So, how can i solve this probleme???

  • What kind of variable / advanced action would I need to do this?

    Captivate 8.
    I have a menu slide (of sorts) to allow users to choose which of four topics they want to explore first. It has 4 graphics with click boxes. Each click box jumps to a specific slide and the the user progresses through that section. At the end of that section, the user is automatically brought back to the menu slide, where they could then choose their next topic.
    I want them to be required to complete all four topics (in any order).
    When they have completed all four topics and are bounced back to the menu slide for the fourth and final time, I would like that slide to then have a button on it that they would click to move to the conclusion slides for the module.
    Thanks advance for the shove in the right direction.

    Another time, why is Search in this forum not working as it should. Have posted same answer at least 10 times.
    Have a look at: Captivate 8 - First Adventures - Captivate blog   where I use shared actions to create such a dashboard.
    First tip: you don't need a click box + graphic, because you can use a shape button filled with that graphic:, see Turn an Image into a Button - Captivate blog
    You need to create as many user variables as you have topics: v_one, v_two, .... with a default value of 0. They will be toggled to 1  in the actions.
    For each shape button (or click box if you really want to use two objects instead of one) you'll need a conditional advanced action with two decisions. I will label the button that has to appear after each topic has been visited at least once, Bt_Next. It is initially hidden.
    First decision of the advanced or shared action is a mimicked Standard action:
    'Always'
    IF 1 is equal to 1
       Assign v_one with 1   for the first topic, for a shared action v_one will become a parameter
       Jump to .... slide_11     slide to jump to, will be another parameter
    Second decision will check the value of the variables, and show the Next button if they have all the value 1
    'Checker'
    IF v_one is equal to 1  AND
        v_two is equal to 1 AND...
    Show Bt_Next
    BTW, long time ago I published this solution (with advanced actions) with a more detailed explanation: Template for reusing script? - Captivate blog
    Now it is no longer necessary to create a template to reuse advanced actions, you just create shared actions.

  • Is it necessary for a BO Consultant to have knowledge on BI as a BI consultant does. Are BI and BO both independent platforms. What kind of BI knowledge is required to develop BO dashboards

    Is it necessary for a BO Consultant to have knowledge on BI as a BI consultant does.? Are BI and BO both independent platforms.? What kind of BI knowledge is required to develop BO dashboards ?

    This is purely Depend on Company Environment .
    1.develop the BI reports using the 'Query Designer' : BI Consultant Responsibility.
    2.or will it be prepared by the BI consultant separately. : BI Bex queries can be designed by BI Consultant's only.
    3. if prepared by the BI consultant then upto what extent BO consultant should have knowledge in BI   :  Need to understand first difference b/w BI Reporting naming convention & BO Naming convention's ,
       Need to  understand complexity of the report , Need to check some reporting functionalities won't support in BO what ever created in BEX
    Kindly refer below doc's : Provides detail explanation   From BI to BO all Possibilities  .
    Points to be considered while integrating BW Bex queries with BO Webi
    Tips & Tricks on developing smart Web intelligence reports over SAP BW Bex Query
    Mapping BEx Query Elements to the SAP BusinessObjects BI 4 Query Panel
    4. or BO and BI consultants need to talk with each other everyday basis  : Depends on Complexity of the Reports.
    5.Is it necessary for BO consultant to have all credential access( for BI Development in SAP Easy          Access Menu) of what the BI consultants have and do it. : Not mandatory
    6. are BI and BO consultants interdependent on each other if source is SAP BI for dashboards : Sometimes if requirement is complex (BO & BI data doesn't  matches ,then sometimes customer exit variables might create in BI not able to replicate , some times complex calculation created in BI Using some  bex query Function's)
    Regards,
    Seshu.P

  • What kind of listener do I need?  pass an ActionEvent?

    How do I add a listener to ColorChooser? Everytime ColorChooser generates a Color I want to pass the Color to the JFrame setBackground(). Exactly once colorChooser1PropertyChange in the JFrame will do this, but it only does it once.
    Somehow, I need to setup a listener but I'm not quite sure how nor what kind. I'm vaguely thinking that an ActionEvent could help here, but I'm not positive. I think that ColorChooser needs to pass an event of some kind, and then the JFrame needs to set up a listener to grab the event.
    I'll revisit the Sun tutorial, but would greatly appreciate guidance :)
    The ColorChooser is the heart, this is a javabean:
    package a00720398.util;
    import java.awt.Color;
    public class ColorChooser extends javax.swing.JPanel {
        private Color color = new Color(0, 0, 0);
        /** Creates new form ColorChooser */
        public ColorChooser() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        private void initComponents() {
            red = new javax.swing.JSlider();
            green = new javax.swing.JSlider();
            blue = new javax.swing.JSlider();
            setLayout(new java.awt.GridLayout(3, 1));
            red.setMaximum(255);
            red.addChangeListener(new javax.swing.event.ChangeListener() {
                public void stateChanged(javax.swing.event.ChangeEvent evt) {
                    redStateChanged(evt);
            add(red);
            green.setMaximum(255);
            green.addChangeListener(new javax.swing.event.ChangeListener() {
                public void stateChanged(javax.swing.event.ChangeEvent evt) {
                    greenStateChanged(evt);
            add(green);
            blue.setMaximum(255);
            blue.addChangeListener(new javax.swing.event.ChangeListener() {
                public void stateChanged(javax.swing.event.ChangeEvent evt) {
                    blueStateChanged(evt);
            add(blue);
        private void redStateChanged(javax.swing.event.ChangeEvent evt) {                                
            //System.out.println(setColor().toString());
            setColor();
        private void greenStateChanged(javax.swing.event.ChangeEvent evt) {
            //System.out.println(setColor().toString());
            setColor();
        private void blueStateChanged(javax.swing.event.ChangeEvent evt) {
            //System.out.println(setColor().toString());
            setColor();
        public void setColor() {
            color = new Color(red.getValue(), green.getValue(), blue.getValue());
            System.out.println(color);
        public Color getColor() {
            return color;
        // Variables declaration - do not modify
        private javax.swing.JSlider blue;
        private javax.swing.JSlider green;
        private javax.swing.JSlider red;
        // End of variables declaration
    }the JFrame:
    package a00720398.view;
    import java.awt.*;
    public class Lab2Frame extends javax.swing.JFrame {
        public Lab2Frame() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        private void initComponents() {
            top = new javax.swing.JPanel();
            jScrollPane1 = new javax.swing.JScrollPane();
            jTextArea1 = new javax.swing.JTextArea();
            bottom = new javax.swing.JPanel();
            colorChooser1 = new a00720398.util.ColorChooser();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            getContentPane().setLayout(new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.Y_AXIS));
            jTextArea1.setColumns(20);
            jTextArea1.setRows(5);
            jScrollPane1.setViewportView(jTextArea1);
            javax.swing.GroupLayout topLayout = new javax.swing.GroupLayout(top);
            top.setLayout(topLayout);
            topLayout.setHorizontalGroup(
                topLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 608, Short.MAX_VALUE)
                .addGap(0, 608, Short.MAX_VALUE)
                .addGroup(topLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(topLayout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE)))
            topLayout.setVerticalGroup(
                topLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 159, Short.MAX_VALUE)
                .addGap(0, 159, Short.MAX_VALUE)
                .addGroup(topLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(topLayout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE)))
            getContentPane().add(top);
            bottom.setLayout(new javax.swing.BoxLayout(bottom, javax.swing.BoxLayout.Y_AXIS));
            colorChooser1.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
                public void propertyChange(java.beans.PropertyChangeEvent evt) {
                    colorChooser1PropertyChange(evt);
            bottom.add(colorChooser1);
            getContentPane().add(bottom);
            pack();
        private void colorChooser1PropertyChange(java.beans.PropertyChangeEvent evt) {
            jTextArea1.setBackground(colorChooser1.getColor());
            System.out.println(evt);
         * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    Lab2Frame frame = new Lab2Frame();
                    frame.setLocationRelativeTo(null);
                    frame.setVisible(true);
        private void setBackground() {
            jTextArea1.setBackground(colorChooser1.getColor());
        // Variables declaration - do not modify
        private javax.swing.JPanel bottom;
        private a00720398.util.ColorChooser colorChooser1;
        private javax.swing.JScrollPane jScrollPane1;
        private javax.swing.JTextArea jTextArea1;
        private javax.swing.JPanel top;
        // End of variables declaration
    }thanks,
    Thufir

    Please stop starting multiple threads about the same concern without even waiting for the reply to first thread.
    Please continue discussion here: [http://forum.java.sun.com/thread.jspa?threadID=5313231&tstart=0]

  • What's user variable name using Smart View POV function (ex:HypGetActiveMember)?

    Hi,
    We want to use Smart View POV function (ex:HypGetActiveMember) to get the active member of user variables from HFM forms selected into Excel, but we don't know the user variable name in the following paragraph of Smart View developer guide:
    "To uniquely identify the user variable, provide the user variable name rather than the dimension name."
    For example, what's the user variable name of Year dimension? How to get the user variable name?
    Any information would be appreciated. Thank you!

    Hi,
    I guess user variable name is set by users/developers. I am not very clear on your question. If you have defined some variables to select any members from a dimension then it will be in HFM only. In planning we have two kinds of variables User Variables (we set it from Planning Preferences) and Substitution variable (we set it from Essbase Consol in the backend). Without looking into your application it is difficult to say the user variable name. Like for Year the user variables can be "PreviousYear", "CurrentYear", or "NextYear" etc.
    Soumya

  • OPC -- Labview interface. What kind of structure is good?

    Hello,
    My target is build interface between OPC and Labview. Main functions of interface is: unit conversion, signal filtering, signal status generation etc. Because there is at least 300 OPC-tags configuration should be easy as possible. Measurement scales and other parametric information are read from .csv file. So there is two different inputs  shared variables (OPC) and .csv file. Output information is one cluster in shared variable.
    I tryed to program structure which generate a new case if there is a new tag. I used enum control and case-structure.  This works almost okay but still I have major problems. If I change order of tags (in .csv file) I have to program almost all cases again. Every tag  must be fully configurable. E.g sometimes you can read measurement scales from OPC and sometimes from .csv file. So that was the reason why I tested case structure. I think that because every tag is different they need own case. When this interface is running these tags are updated e.g. at 1s intervals.
    Does anyone have any idea how to build this kind of interface ?         

    what kind of a score is a good score for a
    or a fresher who has taken the SCJP exam?
    Is scoring 59% ok, or is it really not worth
    mentioning?Given that with my career plan I wouldn't even
    mention an SCJP at all, I think 59% is a pretty low
    rate. Frankly, I didn't expect that someone passes at
    that level. (I'm used to tests where you fail if you
    don't reach 80%)Passing score for SCJP 1.4 is 52% (half + 1 question). I too was surprised it is that low.
    Luckily the passing score for SCJD is a lot higher (85% I think).

  • I want to use the Web module to publish to the a website... What kind of server do I need to be able to publish my website?

    I want to use the Web module to publish to the a website... What kind of server do I need to be able to publish my website?

    You don't need a server, you just need a web hosting package such as the ones from GoDaddy or many other hosts. You then send the web gallery directly from LR to your web space.
    As you're asking such basic questions, it might be best if you read articles like this and see if a friend or colleague can get you started.

  • I am traveling to India, north and south, with my ipad 2, G-3. It is activated by AT and T. How do I use it in India? Do I need to purchase a sim card there and if so what kind? Would they be available in the Delhi airport or where else in central Delhi?

    I am traveling to India, north and south, with my ipad 2, G-3. It is activated by AT and T. How do I use it in India? Do I need to purchase a sim card there and if so what kind? Would they be available in the Delhi airport or where else in central Delhi?

    Also in order not to pay a fortune for the service is it better to acquire if needed a SIM card only once there?
    Check with your carrier about roaming charges.  They are usually prohibitive.  Best to get a local SIM.

  • I saw that I can order an iPhone and they will connect it to my Verizon but I have no idea what kind of package to get

    I have 2 lines that the contracts are expired.  I see that I can set an appointment, have them set up the iPhone of choice to my Verizon account and it even says that they will give me any product upgrade benefits.  I find this hard to beleive.  For one of the lines i have a product upgrade of $50 (Verizon calls it New Every Two which they did away with but still offer it to people who had it and did not use it yet).  On my other line there is a $35 product upgrade.  I can't beleive that Apple would give these product upgrade rewards( the $50 for the one line and the $35 for the 2nd line)
    does anybody know how to tell if someone is with a carrier like Verizon, how to figure out what kind of iPhone package I should get so Verizon can't get me for going over my ;allotted minutes, text messages, internet usage, etc.  I have never used a smartphone so I have no idea how to tell what kind of package I need for the iPhone.  anybody else know?  I saw that Sprint has a package that is "unlimited with all 4 services like text messages, internet usage, calls, etc for $99/mo.  is this still the case?  Verizon does everything they can to rip you off and charge you for going over.  I have not been able to figure out how I can tell when I am getting close to going over.  is there an app to tell this?
    Any suggestions about getting this servic where apple sets it all up, teaches you how to use the phone, gives a decent warranty and offers applecare.  any other carier that would be better?  I heard that the unlimited data transfers does not mean "unlimited" but they still put an amount on the unlinites and if you go over you get docked.  I hate Verizon.

    I should say before everybody else does I never learned how to type and barely learned how to write and spell so I probably should have done this some other way.  Sorry.

  • I need to install on macbook pro (early 2008) one hard disk 1 TB. Is it possible? What kind of HD is it better?

    I need to replace the HD of my macbook pro (early 2008) with another one with 1 TB storage capability. Is it possible? What kind of HD is it better?
    Thanks
    Enrico

    Take a look at what is offered by Mac specialists, such as OWC http://www.macsales.com and see what drives they handle.  Their drives are all guaranteed to be compatible with Macs.  And they have on-line videos that show how to do the installation.
    Even if there are problems getting them to deliver where you live, you can get ideas of what works well with your system.

  • I have one HDMI port on my television that is currently used for my hard drive/free view box.  What kind of adaptor can I buy so I can have the hard drive and my apple tv device plugged into the same HDMI PORT?

    I have one HDMI port on my television that is currently used for my hard drive/free view box.  What kind of adaptor can I buy so I can have the hard drive and my apple tv device plugged into the same HDMI PORT? Is it a switch or a splitter?  And where is it best to buy one?  Thanks!

    Welcome to the Apple Community.
    You need an HDMI switch.

  • HP EliteDisplay E201- What kind of Color Gamut testing in QuickSpecs PDF

    In HP E201 QuickSpecs PDF at page 3 section panel. What kind of standard you use for Color Gamut testing  CIE 1931 or CIE 1976?

    Hello Songvut,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand that you have questions about the HP EliteDisplay E201 LED Monitor. I am sorry, but to get your issue more exposure, I would suggest posting it in the commercial forums, since this is a commercial product. You can do this at Business PCs - Compaq, Elite, Pro.
    I hope this helps. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • I am moving to the UK, What kind of charger do I need?

    I have a MacBook I got in 2009. Im moving abroad in September and Im trying to figure out what kind of charger I will need. I know you can pop off the little plug part on the adapter, and I saw on amazon that I can buy an extension that fits onto the adapter with a UK head on it. Do you think this will work? Or am I going to have to buy a completely new charger? I hope not because the adapter head on Amazon is only like $10!!! Here is a link to the adapter head which I think might work http://www.amazon.co.uk/extension-power-Adapter-Charger-Macbook/dp/B004S6VIG2/re f=sr_1_3?ie=UTF8&qid=1311011961&sr=8-3
    I guess Im just wondering if anyone else has had experience with this. I know the voltage in the UK is like 220 and in the Sates its only 110, and I obviously dont want to fry my computer or the adapter, so I just want to make sure Im doing the right thing!!!!!!!
    Thanks everyone!

    Thanks guys this is really helpful! Last time I was there I just used an adapter and ended up frying a few things haha so I think I'll get a cord instead!!! Yay, I love my Mac and would never want to hurt it haha, thank goodness they make things so easy

  • HT5299 What kind of cable should I use for movies on my macbook pro if I want to watch it on my 60 inch tv?

    What kind of cable for my macbook pro, do I use to watch movies on my 60 inch tv ?

    Which model MacBook Pro do you have (e.g., "15-inch Late 2011")?
    Clinton

Maybe you are looking for

  • Update report dynamically? (without page refresh)

    I have a page with several regions, and only one region is visible at a time. Each region contains a report as well as a drop-down to alter the data displayed in the report. Currently each time a drop-down value is changed it submits the page, which

  • Error message while assigning agent to workflow task

    Hi guys, I have a serious problem in my workflow definition. I can't assign the superior of workflow intiator, I mean that the binding can't be defined automatically when I add the rule 00000168, I have the error message "container element ORG_OBJECT

  • MUSE FORM PUBLISHED IN DREAMWEAVER

    My problem is this: I have made a web site Muse which has a form when I edit the page in Dreamweaver to insert you to form a jQuery UI datepicker does not work. However when I go into the source code and you remove the following scrip, if it works. <

  • How do you export a drum track to Music XML from Logic Pro

    I have a song in Logic Pro with a compound drum track that consists of a Drummer subtract as well as a manually written drum track using the same kit (for specific fills and kicks) as well as a drum line with auxilliary percussion. I kinda figured th

  • Role assignments not set in ABAP but IdM indicates OK status

    Hi, We went live with IDM 7.2 SP8 last month. We have started to see issues with Business Role assignments in target systems. Generally, BR assignments are parsed to respective privileges and assigned correctly. Sometimes privileges in one target wil