Example of how to modify a control using a property node

Hello, I am new to labview and I would like to be able to modify a front panel control in the block diagram. From reading up on this I realize I need to use property nodes but I am having a hard time getting this to work.
I would like to have select action ring change from Hard Reset to Idle when the loop finishes running. I think I am on the right track but at this point I am stuck and an example of how to do this would be greatly appreciated. The VI is attached.
Attachments:
eps_state_machine.vi ‏20 KB

No, LabVIEW is EASY!
All you need is write to a local variable if the control.
I assum you want to reset whenever the loop iterates. If you only want to reset after the loop finishes at the end of the run, you would do it in a sequence frame after the loop.
Some notes:
your shift register is completly useless, because the carried value is never used by your code.
Your idle case spins the main loop at an infinite rate, using all CPU while not doing anything useful. (place an indicator on the iteration count to see.
Use an event structure to spin the loop only if it needs to.
Here's a quick draft:
Message Edited by altenbach on 06-26-2008 01:07 PM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
eps.PNG ‏18 KB
eps_state_machineMOD.vi ‏20 KB

Similar Messages

  • Using One Property Node For Multiple Controls/I​ndicators

    Question for all you LabVIEW gurus.  Is there a way to create 1 property node that is used for multiple indicators?  For example, if I wanted to display the same value on 10 different indicators using the property node - value function do I need to create 10 separate property node-value instances for each indicator?  Or is there a way to tie all of those indicators to only one property node?
    Thanks!
    Solved!
    Go to Solution.

    Hi hobby1
    You could create a cluster, and inside in it put all the indicators, see the image attached
    Attachments:
    capture1.JPG ‏14 KB

  • Using a property node of a menu ring to generate a secondary address does not work in a subvi unless the subvi has been or is opened. Why?

    I am writing drivers for third party equipment using LabView 6.1. I am using the property node, digdisp.text, to get the item number of menu ring. This number is being used as the GPIB secondary address for the equipment. This vi is one many subVIs like it in a main vi.
    The only way the main vi works consistently is if I open all the subVIs, otherwise the secondary address isn't picked up and I get a EARG and ENOL error in NISpy and a GPIB write error in the Error Out cluster.
    I have attached an example of a NIspy capture of a failed attempt.
    Attachments:
    Capture.spy ‏9 KB

    Hi,
    EARG (4)
    Error Condition: Invalid argument to a function call.
    Description: EARG results when an invalid argument is passed to a function call.
    Possible Cause: The following are some examples: you call ibtmo with a value not in the range 0 through 17 (possible timeout values correspond to a table of values ranging from 0 to 17, where the default is 13, which represents a 10 second timeout); you call ibeos with meaningless bits set in the high byte of the second parameter; or you call ibpad (or ibsad) with invalid addresses.
    The reason you are getting the error is because not only is your secondary address invalid, but your primary address is also invalid. Lines 14 and 16 of your attached NI-SPY capture set
    the primary address (ibpad) and secondary address (ibsad) respectively. You need to make sure that you are passing the addresses properly to the subVIs using a connector. It seems like your programming when sending and receiving data (like the addresses) from your subVIs is not correct. You have to be sure to pass the data back and forth in the proper method using connectors.
    A.S.
    Anu Saha
    Academic Product Marketing Engineer
    National Instruments

  • Can you change the vi color background using a property node?

    I was wondering if it was possible in Labview to use a property node to change the front panel background color for one iteration and then back to an original color afterwards. I dont think it is possible but would like to know for sure.
    Thanks,
    Jody
    Jody M.
    The Procter and Gamble Co.
    Certified Labview Developer
    Currently using LV2012.
    Solved!
    Go to Solution.

    Yes you can
     That's how you change it, you will just have to put some logic to change it back
    CLA, LabVIEW Versions 2010-2013
    Attachments:
    FP color.PNG ‏4 KB

  • How do I get the DSR state property node to correctly read?

    I can toggle the DTR line high and
    low using a property node for the serial port, modem line settings, DTR line state, and it works fine. However, I cannot get the DSR line to
    read properly. Seems to go to unasserted no matter what the input is (and I've verifed the input). I've turned handshaking on and jumpered DTR to DSR (pin 4 to 6 on DB-9), but the DSR line will not read correctly. I'm using 6.1 with Windows 2000.

    Here's a simple version. Writes and reads to itself fine, and can toggle the DTR high and low. DSR is always unasserted. Thanks for your help.
    Nick
    Attachments:
    CommProgSubset.vi ‏85 KB

  • How to modify a datafile using file read and file write

    I have a datalog file containing port and DMM setup information.  I want to read this file into an aray, update or modify it, and write it to a file.  I can read the file in, but I am at a loss on how to modify it since it is stored in an indicator.  Any suggestions?

    The simplest thing is to replace your indicator by a control, and to use a local variable to write your data into the control.
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • I don't know how to use the property node to get information out of my sub vi while it is working.

    I had a question answered earlier about passing information out of a sub vi, and was helped out. The problem is that I don't understand what is happening as I can not reproduce the results. I am now trying to take results of a comparison (true-false) and pass that back out of my sub vi. I tried a property node and to connect a refnum control to it in the sub vi. Then I tried to connect an indicator to its terminal in the main vi, but was unsuccessful can someone tell me how and why, step by step, to pass this information out. Starting with the point of information in the sub vi to the indicator in the vi. I would appreciate any help that you could give m
    e.
    Attachments:
    Pass_a_Reference.vi ‏15 KB
    GL_Flicker_mod.vi ‏77 KB

    Step by step:
    1. On your main vi Front Panel, create your boolean indicator.
    2. On the block diagram, right click the new boolean indicator and select Create - Reference.
    3. On sub-vi front panel, create boolean indicator (or use one that is already created).
    4. On sub-vi front panel, create a reference (Controls Palette - Refnum - Control Refnum).
    5. Right click on the newly created Refnum and select Select Vi Server Class - Generic - GObject - Control - Boolean. The refnum label changes to BoolRefnum.
    6. On sub-vi block diagram, create Property Node (Functions - Application Control - Property Node). Find the BoolRefnum and move it close to the new Property Node.
    7. Wire the BoolRefnum to the reference input of the property node.
    8.
    Right click on the property node and select Change to All Write.
    9. Move mouse to point to Visible inside property node box, left click and select Value.
    10. Wire the boolean indicator from step 3 to the Value input of the property node.
    11. On sub-vi front panel, right click on icon and select Show Connector.
    12. Click on empty connector spot then click on the new BoolRefnum. Save your sub-vi.
    13. On main vi block diagram, connect refernece created in step 2 to the new connector terminal of sub-vi.
    14. Save and run.
    Here are the modified vi's.
    - tbob
    Inventor of the WORM Global
    Attachments:
    Pass_a_Reference.vi ‏20 KB
    GL_Flicker_mod.vi ‏83 KB

  • Please teach me how to make the arrangement using Code Interface Node.

    How is what is necessary just to make arrangement (for example, Sine?Wave)
    using Code Interface Node? Please teach me a way.

    Try to get hold of the 'Advanced Analyis' library for labview. It contains VIs for doing FFT! No need to reinvent the wheel.
    If you can't get it and want to take the hard way, try to learn CIN programming by
    - reading the manual (no joke or cynism intended)
    - look for advice in NI's developer zone (www.ni.com/devzone) by using the search phrase 'CIN tutorial': you'll get several links which should be helpful in your case.
    - better than a CIN: try to use the DLL calling mechanisms and compile your C code into a dll. In order to learn dll intewrfacing for LabVIEW, follow the route explained under point 1 and 2 above...
    Good luck,
    Franz

  • How can I change the description of a control Icon with property nodes?

    hi
    I want to change the description of a control Icon and use for this the property nodes, but I don't know how. Who can help me?
    labprog

    If you're referring to the control's name on the screen, you can't change the label while the VI is running because it's part of the control's definition. Instead, make the label invisible and the caption visible and use the property Caption.
    If this doesn't help, elaborate more on what it is you need.
    Try to take over the world!

  • Use of property nodes together with embedded remote panels

    Hello,
    In the LV RT 6.1 release notes is a point under 'known issues'
    You can programatically change the properties of front panel controls
    and indicators in LabVIEW by using Property Nodes on a block
    diagram. Similarly, when you target, or connect, LabVIEW RT to the
    RT Engine on an RT Series device, Property Nodes affect the front
    panel of the RT Development System on the host computer. However,
    if you disconnect the RTDevelopment System from the RT Engine and
    subsequently reconnect it, you must reset the properties for them to
    take effect on the reopened front panel. The same applies to embedded
    remote panels.
    I did not found the same in the LV RT 7.1 release notes. Does this still apply to 7.1?
    My problem is that everything done using property nodes behaves strange. For example setting scale offsets, multipliers, maximum and minimum is working well if the front panel is displayed in the web browser during the call to the property node. If the web page containing the front panel is reloaded the scalles get messed up.
    Also clearing the history of a chart seems not to work.
    Is there a workaround for this. Reseting properties as mentioned in the 6.1 release notes does not work with embedded remote panels since there seems to be no way to detect remote connections in labview.
    Regards, Beat

    For your reference.
    I have been doing this since then
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    ClusterCTRLPropertyNode.jpg ‏54 KB

  • Help comparing the value of a button using the Property Node (I get a variant)

    Dear Sirs:
    (I'm using LabView 6. I guess the solution is different for 6.1)
    Currently I have created an array of Boolean RefNums (which point to many, many buttons). When I need to know when any (and which) of the buttons was pressed I just compare every element on the array with the constant TRUE. It fact, as the array is built from RefNums, I should compare the VALUE from the Property Node.
    The problem here is that the Property Node for this type of Boolean is a LV Variant, and I need to compare this with a TRUE/FALSE value.
    I tried to convert the TRUE constant to a LV variant and visc. But nothing works... I always get that none of the buttons was pressed.
    Here it co
    mes the question: "How can I compare the value of a Property Node for a Boolean (Button) with a TRUE (or False) constant?"
    BTW, maybe I should explain why I'm using RefNums instead of the direct values: As my project requires tons of buttons, I would preffer using RefNums to refer to them. (I.E. I could use a single VI that takes the RefNum and formats the button to hide it for certain users).
    I have enclosed a VI that contains what I've achieved until now, which is nothing
    I appreciate your time and help.
    Best regards,
    JAVIER VIDAL
    Attachments:
    Other_Main_Menu.vi ‏103 KB

    Javier,
    There is another problem in your code: the booleans are not polled by the main loop so they will remain false until the user presses them again. This renders the boolean latch action useless.
    What you can do is to change the mechanical action of the booleans to non-latch. When you detect a "true" in the polling loop, set the boolean to false again. One added benefit is that once all boolean are non-latch, the value property won't be a variant but a boolean so conversion is no longer needed.
    LabVIEW, C'est LabVIEW

  • When i change the value of a combo box using a property node it displays the value not the item label

    I am using a combo box as a select list for text serial commands.  I have items like "engineering", "GUI", and "Scan" for the commands "MDE", "MDN", and MDS respectively which i have input as the corresponding value in the combo box.  so for example the label "engineering" has the value "MDE" in the combo box items list.  when the Vi starts it needs to read the current value MDE, MDN, or MDS and then i want it to display on the front panel the item text corresponding to that command value.
    To do this i have tried to read the serial command, ie MDS and then wire that to a "value" property of a property node of the combo-box, but instead of displaying the corresponding item label, "Scan", it displays the value "MDS" on the front panel instead.  i want the front panel to use the label text when choosing and displaying but the block diagram to use the serial commands.  Can this be done with a combo box?  I'm trying to use a combo box so i can keep it all text and avoid having to build a case statement to convert enums or rings from a numerical value to the text command.
    The correct text value is wired to the value property and it does exist in the combo-box.  I have unchecked "values match items" and selected to not allow undefined values.

    Don't use the value property node.  Use the Text.Text property node.  When creating the property node, select Text, then in the next pop-up box, select Text.
    - tbob
    Inventor of the WORM Global

  • Tab control label "font" property node

    Hi!
    I am trying to manage font dimensions of different controls.
    I am using property nodes, and it is simple to find the font part in the list of properties you can choose, both the label font part and the different contents fonts (boolean text, numeric text, string, etc...).
    However, when I search for the property used to manage the font of the pages labels in a tab control, I am not able to find it.
    Can anybody tell me where to find it? Or is this property just not available for the property nodes?
    Thank you!
    Mike
    MikeNuke, PhD student
    Politecnico di Milano
    Department of Energy, Nuclear Engineering Division

    It seems not:
    http://forums.ni.com/t5/LabVIEW/programmatically-c​hange-tab-page-label-font-size/td-p/1071913
    Jean-Marc
    LV2009 and LV2013
    Free PDF Report with iTextSharp

  • Use blinking property node with a pipe indicator from Automation Symbols toolkit

    Can I use a blinking property node with a pipe indicator/pump from the Automation Symbols toolkit? How?

    The blink works just fine for me.
    Ben
    See attached
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    blink.vi ‏19 KB

  • How to Flex tree control using folder click event  to pass coldfusion to get data from dynamiclly ?

    Hi friends.........
                Iam using flex tree control data coming from coldfusion file to display grid. As i click the tree folder to change the data from dynamic from grid.
    How to pass the folder id from coldfusion file.. Is it possible ?.. Means give any example please....
    Any One Help Me......
    With Regards.,
    Lingu.......

    When you set the dataProvider for your tree control, you actually pass an array or arraycollection or whatever to that property. The array contains objects coming from your server, right? Each object should contain a property with the folder id, something like:
    var arr:Array = [{id: 1, folderID: 34, name: "..."}, {id: 2, folderID: 4, name: "..."}, ...];
    Now, when you click an item in your tree or your dataGrid, you can access the folder id by:
    myTree.selectedItem.folderID
    Hope this helps
    Dany

Maybe you are looking for

  • Aggregating Group Values Outside of group

    Hi, is this possible? Basically, I'm trying to show aggregates for a column, by group, on rows that are outside the scope of the group. I'm able to add the total for each group at the end of the group, but I want the totals for each groups at the end

  • BEx - Calculated/Restricted KF

    I am trying to create the following: Show me all sales orders where confirmed date is greater than cancel date? All 3 are characteristics and not key figures. Any suggestions?

  • Filenaming problem when publishing to hard disk in LR4

    I want to export (publish) a collection of photos from LR4 to a photo album on my iPad. I use the method that Russell Brown promotes in his nice video on the subject (for LR3). The key to making this work, as he points out, is to assign a sequential

  • Installed updates for 9.4.1...couldn't open any pdfs after that

    Yesterday I installed updates.  I tried to open several pdfs and got the message: Acrobat failed to load its core DLL.  Today I went in and removed 9.4.1 and installed the 8.something version.  I just want to let adobe know of this problem and couldn

  • BAPI PR CHANCE

    Hi exper, I use bapi ZBAPI_PR_CHANCE BAPI work very well if you use R/3 return table say every things is OK But if I used same bapi with webdynapro java , would not work return table say Creation Indicator B is not useful I use same PR number and ite