Arrays as both Indicator and Control

Is there anyway I can use an array (either a constant array or an array control) as both an indicator and control. I need this to enter and replace numeric values in an array.

> Pretty much yes, but I want to use the same array (control or
> constant) as both an indicator and a control. This way I can replace
> the array contents (which would be in a loop) and don't worry about my
> initial array and my final array being two different arrays. Can I use
> the local variable only for this?
As the earlier post stated, try using the local variable to update a
control from the diagram. You probably shouldn't place it inside the
loop, but use a shift register. Thus, take the value from the terminal,
into the left shift register. Inside the loop, take the left shift
register value, modify, and write to the right shift register. Outside
the loop again, wire from the right shift register to the local.
If you do no
t want to allow for user modification of the array control
during this, you can disable and reenable the array using a property node.
If you are not really doing this for UI, but to try and reuse memory,
then this is really the wrong approach. LV wires are really the most
efficient way of dealing with data, and you don't need to worry about
putting things back into an array unless it is for the UI. If it is to
pass out of a subVI, you will put them into a new array indicator in
fact, and when called as a subVI, this can often take no additional
memory, using the caller's array input throughout the diagram. If you
start using the local, this is no longer true, and you now have both
memory and runtime overhead. So use locals, and property nodes, only
for UI tasks, and your VIs will be much more efficient. For everything
else, use wires and shift registers.
Greg McKaskle

Similar Messages

  • Easy question - Array indicator and control compatibility

    I would like to multiply the contents of an array indicator by a factor (polimorphism allows the multiplication of an array by a number, right?) but the product requires that the array has to be a control.
    How can I fixed this problem?. Thank you very much for your help,
    javier

    I removed the Indicator from the build array - it wasn't necessary. Also, your final array is now 2D. See attached, I believe its what you're asking.
    Doug
    Attachments:
    testing_arrays[1].vi ‏33 KB

  • Both shifts and control appear to be stuck down

    So my mother brought me a 2010 macbook air and said "Fix it" the problem was said to be "I can't type anything" after two hours of troubleshooting I figured out it was that both shifts and the control key seem to be stuck down but it doesn't "feel" hardware related to me, and nothing supports it being hardware. The people who own it were just messing around changing settings not knowing what they were doing. Also I set all of the modifier keys to no action and it still happens.
    Actual question: Any ideas if anything software related could cause both shift keys and the control key to be pressed down?

    Hi frederickm18892647,
    I am sorry for the inconvenience caused.
    Please bring the machine online. On the Sign-In screen choose to sign in now using the Adobe ID or try you can Serialize it using your Serial number. Acrobat will launch successfully.
    Let me know if you still experience any issue.
    Regards,
    Aadesh

  • Using a control as both an indicator and control

    Hello,
    I have been search and reading for a few hours now and have finally decided to post. I fear I am not using the correct terms because I am fairly new at LabView.
    I currently trying to build a user interface that uses 9 different tabs [I am using the same tab structure as in the labview example code]. There is a set of variables that will need to be on 3 of these tabs in similar form. These variables include:
    2 boolean controls
    1 boolean indicator
    1 string indicator
    12 numeric indicators
    I would like to have all of these values be the same on the separate tabs at the same time.
    For example if I press one of the boolean controls, that same boolean control should now be activated on the other tabs as well.
    If it would be possible, please do point me in the right direction of how to go about doing this. (Also the proper terminology)
    Many Thanks,
    Buffalo960 

    tbob wrote:
    I don't think you can have the same instance of controls and indicators on separate tabs.  Two options:
    1.  Create separate controls on each tab.  Put code such that if any control or indicator in the list is changed on any tab, the other similar ones get changed programatically.  You can do this with an event structure and local variables or property nodes.  Lots of programming.
    I don't think that it will be a lot of programming. For example: if he has 5 controls and want to keep all of them synchronized, with only one Case of the Event Structure he can do the job, setting the 5 controls to trigger that Case when "Value Change" and use the Event Node "NewVal" to write the same value for all controls (including the control that triggered the event, but with a code this size it will not be a big deal to write the information a again to the same control).
    Thanks
    Dan07
    Attachments:
    Multiple Controls.vi ‏39 KB

  • Listbox as string indicator and control

    Hi,
        Me and my group at school for a project are trying to find a sloution to the following problem:
    what we want to do is be able to send strings to a display like a sting indicator but also be able to change the color of the strings on the fly and not change the entire display. Also we want the display to act like a control so that when one string is selected one can press a button to get more information on the selected string.
    We have tried using sting controls but we can not select individual stings and can not change just one line's color (they all change)
    A listbox would be perfect but we can not figure out how send strings to it to be displayed.
    Or is there an other way to do this??
    Any help would be greatly appriciated.
    Thanks!

    I know about the property node for Itemname, but will we be able to send a string to it so it can be displayed in realtime?
    The project is a client server architecture in which the client sends commands via TCP/IP to a remot PC to diagnose the connected devices and send back to the client in the form of strings the status of the devices to be displayed. The status(s) can be selected and then another button is pressed to give further information on the selected device.
    So, I guess what we are asking is whether the server can send to the client strings to the list box to be displayed for the currently connected devices such as: mouse, network card, video card, keyboard, and so on.... (the dll to do the devices dtection is working and integrated into labview.)
    Thanks,
    SUNY Binghamton University Senior Project group 33

  • Indicator and Control in one

    I am trying to construct an numeric control which will specify the width of the image a camera has to obtain.
    However, when I read out the current settings, I want the current number to also appear in the same numeric control, so it needs to act like an Indicator.
    How can I do this in Labview?
    I've tried with a local variable, but that didn't work. (maybe I did it wrong?)
    I use matlab 7.1

    Arend,
    I couldn't find any local variable or Property value node in your main VI block diagram.
    Did you create a copy of your controls in a subVI and used a local variable in the subVI? If I'm right, it won't work. The controls in the main VI and in the subVI are not the same.
    You can "return" the value from the subVI and use a local variable in the main VI with this value or, if you need to update the values during the subVI execution, you can pass a  reference of this control to the subVI and use a property node in the subVI.
    Rasputin
    LV7.1 <> W2K
    Attachments:
    Main.vi ‏21 KB
    subVI.vi ‏11 KB

  • Interactively changing values to table problem: indicator and control table, and why it does not work after a while...?

    I have been producing a VI that loads a set of data and displays it in a table: A table control is initialised with an empty variable, the loaded data takes the place of the variable and fills the table, while some headers are added. That table feeds an intensity graph to give a pictorial impression of the data.
    With this scheme, a user can change any value of the table, and the changes are interactively reflected on the graph.
    Problem: after few saving of the VI, the access to the table doesn't work anymore. It is the same with all my numerical controls in the VI where it should be possible to enter a value.
    If anybody has an idea on the potential
    causes of these problem, I would be really grateful as it is very useful...when it works !
    Regards,
    Elie Allouis

    I can not image what is causing the error. Would you be willing to post some code to see if we can reproduce the problem?
    Jeremy7

  • Control parallel port (data and control lines)

    I need to control the output on the parallel port (LPT1) - Both data and control lines.  Once the data is written (Pins2-9), I then need to toggle the Sprocket signal (PIN1) - on the parallel port. The sprocket signal is also referred to as the Data Strobe Output.
    The required method is as follows:
    1. Lower the sprocket signal on PIN1
    2. Send the data (Pins2-9) and wait
    3. Raise the sprocket signal and wait.
    4. Repeat.
    I am looking for a method to control the data on LPT1 pins 2-9 and then be able to toggle PIN1 - Strobe signal - without the data falling from the other pins. What I have found is that whenever the state is changed on the strobe - the data that was written to Pin2-9 falls to zero. This will not work for my application - the strobe tells the hardware device that the data is ready. If it falls to zero when I toggle the strobe - that will not work.
    Regards,
    Guy

    Hello Adam,
    I am familiar with both references.  If you look more closely at the library reference - it allows me to communicate using VISA across the parallel port pins 2-9.  It does not permit direct communication to pin1 (the strobe signal) - property nodes don't allow the strobe to be refereced either (similar to control lines/signals for COM ports).
    Worse, I have also located examples using OUT PORT that does enable pin1 to be toggled.  The problem is, when those VIs are used, the data falls from the data pins when the strobe signal is written, even if its value is not changed.  For example, if the strobe is already high, if another high value is passed, the data falls from the data lines.  The other issue, when using VISA, as soon as the data is writen, the strobe signal automatically goes high even though I need a wait before setting the strobe high.  This is in complete contradiction to the second article you referenced which clearly discusses writing data to pins2-9 then taking the strobe high to indicate to the printer that new data is available.  It must be possible since this is the typical handshake.
    I am still looking for a more complete answer/solution.
    Regards,
    Guy

  • After i install window 8.1, i can't see window icon in my start up disk, i see only mac icon 10.10, but i can see both mac and win icon in my window boot camp control. i want to see window icon in my mac Yosemite 10.10.2,system preference, start up disk

    After i install window 8.1, i can't see window icon in my start up disk, i see only mac icon 10.10, but i can see both mac and win icon in my window boot camp control. i want to see window icon in my mac Yosemite 10.10.2,system preference, start up disk.

    Third-party NTFS software interferes with the Apple NTFS drivers, which control whether you can see the Bootcamp partition in the Startup Disk option. As a test, can you uninstall all third-party NTFS software and check System Preferences -> Startup Disk?

  • Why do we need to code  loop statement in both PBO and PAI in Table control

    Hi friends,
    i have 2 questions-
    Q1-why do we need to code a loop and endloop statement in both PBO and PAI in Table control,sometimes even empty as well?
    Q2-what r d dynpro keywords?

    Hi,
    It is required to pass information from internal table to table control so we loop it in PBO and to get the updated information back, we loop in PAI and update internal table content.
    To get more knowledge on Table controls check these threads -
    table control
    Table Control
    Hope this helps.
    ashish

  • Firefox 6 will not load when I click the icon. I have tried to uninstall it, both through the control panel and geong straight to help.exe. In both cases nothing happens. How do I uninstall this program?

    Firefox 6 will not load when I click the icon. I have tried to uninstall it, both through the control panel and going straight to help.exe. In both cases nothing happens. How do I uninstall this program?

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Having both PC Settings and Control Panel is unnecessary redundancy.

    Hi!
    I keep getting into the Windows 8 type of PC Settings. And honestly, the PC settings is really lacking highly in substance. It is also very confusing to have both PC settings and control panel. Why not only use the control panel? It is waaaaaaay way more
    polished than the PC settings.
    I feel like this is a bad decision.

    Agreed. It's completely redundant and should be consolidated to one view. Preferably the control panel view. Dont try and fix what isn't broken. 

  • CSCuc72466 - Spine Control Bus fail in both active and standby - 2

    Hello,
    we have running Version 5.2.(7) on "Nexus7000 C7010 (10 Slot) Chassis with 2 "Supervisor module-1X" N7K-SUP1
    our system is affected by this bug today.
    mery cristmas and happy new year!

    Spine Control Bus fail in both active and standby
    CSCuc72466
    -->
    Description
    Symptom:
    SpineControlBus diagnostic test failure on active and/or standby supervisor.
    Conditions:
    This happens when active and standby supervisors run the Spine test at the same time.
    Workaround:
    Configure the following for the module in question (only one SUP, even if both have the error):
    NOTE: Test 11 is for Sup1, Test 10 is for Sup2
    N7K(config)# no diagnostic monitor module 5 test 11
    N7K(config)# diagnostic clear result module 5 test 11
    N7K(config)# diagnostic monitor interval module 5 test 11 hour 0 min 0 second 31
    N7K(config)# diagnostic monitor module 5 test 11
    N7K(config)# diagnostic start module 5 test 11
    This workaround will decrease the possibility of this condition occurring but does not guarantee that the diagnostic failure will never be encountered. For that the customer needs to upgrade to the proper code with this fix.
    Further Problem Description:
    Customer Visible
    Save Bug
    Open Support Case
    View Bug in CDETS
    Was the description about this Bug Helpful?
    (10)
    Details
    Last Modified:
    Feb 28,2015
    Status:
    Fixed
    Severity:
    4 Minor
    Product:
    Cisco Nexus 7000 Series Switches
    Support Cases:
    1164
    Known Affected Releases:
    (3)
    5.2(3a)
    5.2(9.51)
    6.0(1)
    Known Fixed Releases:
    (10)
    5.2(9.177)S0
    5.2(9a)
    5.2(9a)S5
    6.1(4.97)S0
    6.1(5)
    6.1(5.32)S0
    6.2(1)S8
    6.2(1.14)S0
    6.2(2)
    7.0(0.5)
    Download software for  Cisco Nexus 7000 Series Switches
    Support Cases:
    (1164)
    Support case links are not customer visible
    -->
    Related Bugs
    Bug(s)
    -->
    Community Discussion on CSCuc72466 - Cisco Support Community

  • How to dinamically convert an indicator to control?

    Hello all,
    I need to write an application that:
    1) Reads an array of strings from a file, and show it on a indicator (and this is correctly done)
    2) Edit the array, as it was a control
    3) Elaborate the strings (My array is a list of SPI commands, that are sent to an external device)
    4) Optionally, save the modified array back to a file
    How can this be done? It's not possible to think of a property node that converts the indicator to control, because the indicator is connected to a source of data, and the control should be connected to a destination... (an SPI driver in my case)
    I somehow need an item with two connections, one entering and one exiting.
    Thanks
    Solved!
    Go to Solution.

    Hello all,
    and thanks for your replies!
    I think I've adopted a solution similar to the one you suggested, obtaining this front panel (see "frontpanel1.jpg" attachment)
    The frontpanel I'd like to obtain is the one depicted on "frontpanel2.jpg": one structure (control or indicator?) used both to edit and to view what I load from file.
    Maybe the only solution is to overlap a control and an indicator, and to toggle the "visible" property...
    Attachments:
    frontpanel1.JPG ‏30 KB
    frontpanel2.JPG ‏22 KB

  • How to make the size of VI and controls unchanged irrespecti​ve of the resolution​?

    Hi All,
    I have made the exe of my labview application and when i was trying to run it on the users PC the window was almost distorted in the sense the multicolumn list box on the front panel was alligned only to a portion of the screen instead of the full screen.I changed by setting The window size's maintain proportions of window for different monitor resolutions.But still the multicolumn list box was still having problem.
    Then i thought of including the next option"scale all the objects on the front panel as the window resizes" but that option was inactive.
    I read somewhere to select the control and then from the edit option select "scale object with panel".Unfortunately i could not find such an option in my edit menu even after i selected edit menu after selecting multi column list box which i want to scale according to the front panel.
    How do i go forward?
    Pls give me some help
    Thanks in advance

    You can size the area of a control or indicator programmatically using the Size property node. I believe in some cases you can increase the font size of the text in the object to achieve the same result. Here's an example of increasing the size of a system combo box by 100 in both width and height:
    Message Edited by Bill@NGC on 09-25-2007 07:04 PM
    “A child of five could understand this. Send someone to fetch a child of five.”
    ― Groucho Marx
    Attachments:
    sizecombo.png ‏3 KB

Maybe you are looking for

  • How to mention subheadings in alv report

    hi all, iam sending my report below. here line items are coming but header is not coming anybody can tell me what shall i do . report zmahi3. TYPE-POOLS: SLIS. DATA: X_FIELDCAT TYPE SLIS_FIELDCAT_ALV,       IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,      

  • Logic Pro X additional content will download but won't install

    Hi, I have Logic Pro X (10.0.1) installed on my 2012 Macbook Pro i7 2.6Ghz 8Gb Ram. I am able download the addition content but now just hangs & it has only installed the producer patches, surrond reverbs, garage band 11 sounds & instruments & the ja

  • 17" MacBook Pro - Phillips 40" LCD TV 120 HZ Capable

    I have been hooking up my 17" Macbook Pro to a Phillips LCD TV capable of 120 HZ refresh rate. I am connecting the computer to the TV with an HDMI-DVI with the apple Mini-DVI adapter. Everything that is shown on the TV seems to delay just enough to n

  • Image size dialog box frozen

    USING MAC, CS 5.5:  When I open the image size dialog box -- as well as the canvas size box -- for any file;  new or existing, and try to change the size, the box either won't let me change the number, or it closes out.  Doesn't scrash the app; just

  • New to JavaMail: sending via MS Outlook

    i was searching the forum for quite some time, i just couldn't find what i am looking for. sorry if similar question has been posted. all i want to do is: 1) send an email via outlook, that means in my application i set all the parameters like recipi