How can I make a control inside a loop in a subVI change value when the calling VI's control changes?

Hi.
I think this is a pretty basic LV question, but I have not been able to find a good solution.
I am attaching VIs that show the problem I am having, but obviously, the real application is a lot complicated, which forces me to try to do it this way.
The issue is: I have a subVI with a Boolean control inside a loop.  When the control is true I want some action to take place.  When the subVI is run on its own, it works fine, acting properly when I set the boolean control to true via the LV FPGA interface from the host.  However, when I use it as a subVI, in which the top-level VI calls several instances of the subVI, I have the Boolean controls in the top level VI.  What is happening is that the false Boolean value with which the top-level VI starts is passed into the subVIs, and not updated, even though the control is inside the loop.
Can any one suggest a good solution?
Thanks,
AlejandroZ
Attachments:
CallingVI.vi ‏7 KB
subVI.vi ‏8 KB

Hi.
I know the example I posted might seem silly, but it was just to illustrate the problem I am having.  In reality this is the application:
I have some LV FPGA code which uses a few FPGA IO to implement a serial link to communicate with a device.  Most of the time we are getting data from the device, so the serial link is used to send a read command, read in the data and put it into a FIFO.  However, I also wanted the VI to support sending data to the device, so I added an array control to put the data you want to send, and a boolean control to tell it you want to send it.
Since sending and receiving data are done using the same FPGA IO, they cannot be independent operations, because they would garble each other. Therefore, in the subVI I have a loop in which I first read data if there is any to read, then check the boolean write control to see if there is data to write.
As I mentioned, this works perfectly for talking to a single device.  However, we run into the issue of this topic when trying to replicate this for several devices.
One easy solution is to not have the loop in the subVI, and have it in the calling VI (I am favoring this simple solution right now).  The only reason why I have not done this yet, is that the subVI has more than one loop, so I am going to have to create several subVIs.  I just posted to see if there was an even simpler solution...
There have been some other possibly good solutions proposed here, though I am not sure if they work in LV FPGA.
Thanks for all your responses.
AlejandroZ

Similar Messages

  • In snow leopard, 2 fingers to the left on the mouse went back to the previous page. In Lion, it opens the dashboard. How can i make firefox go back to previous page with two fingers left on the mouse??

    In snow leopard, 2 fingers to the left on the mouse went back to the previous page. In Lion, it opens the dashboard. How can i make firefox go back to previous page with two fingers left on the mouse??

    Hi,
    I don't know of a preference, but have you used ⌘-T in iCal?
    Best wishes
    John M

  • When I have many tabs open, & I am viewing the 1st one in the row of tabs, how can I make ctrl+T open tab next to it instead of down at the end of all the tabs?

    If, for example, I have 50 tabs open, and I happen to be working on the very first tab out of the long row of tabs (tab #1 out of 50 total tabs)....if I suddenly need a new tab next to the one I'm on so that I can do something else related to what I am doing on my current tab's website, pushing ctrl+t opens up the new tab clear down at the very end of the long row of tabs (i.e., the new tab would be tab #51). How can I make the new tab open up right beside the one I'm working on at the moment?

    You would need an extension to achieve this
    You can look at this extension:
    *Tab Utilities Lite: https://addons.mozilla.org/firefox/addon/tab-utilities-lite/

  • How can i make a graph y is unmber pasing from UDP port,x is the time stamp.and in the same time this graph can display several numbers to compare.

    how can i make a graph
    y is number(the blue wire)pasing from UDP port,
    x is the time stamp.
    plus in the same time this graph can display several differenr numbers to compare.

  • Hello. How can I make it so firefox remembers which links I've visited as on the music singles pages for longer periods of time and more links?

    I frequently use the singles pages on wikipedia, for example: http://en.wikipedia.org/w/index.php?title=Category:2012_singles&from=D
    So I had already clicked on the links some months ago on the 2012 singles pages, but firefox forgot that I had clicked on the links there. How can I make it so it remembers for longer periods of time without causing problems to firefox? Also, I want it to remember what links I've clicked on the 2013 singles pages, because I am also keeping up with that. Can I tell firefox to remember all history for these pages, such as 2012 singles, or 2013 singles specifically? I just want firefox to remember what links I've visited, as in, the songs in the 2012/2013 singles pages, and not forget those, because I have already downloaded those so I want firefox to keep track. What are my options? Please let me know, and I hope you understand the problem I am describing.

    My Firefox remembers history from over a year ago, and unless you are using a setting or external tool to clear it, or load huge numbers of pages/download huge numbers of files, Firefox should pretty easily remember links you've accessed in recent months.
    To see what Firefox has computed as the number of URLs to remember, you can check here:
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the filter box, type or paste '''.hist''' and pause while the list is filtered
    (3) Look for '''places.history.expiration.transient_current_max_pages'''
    Mine's set to 104858. I don't know how that was determined.

  • How do I make a textbox appear in a PDF made in InDesign CC when the cursor rolls over another textbox?

    I'm trying to make a textbox appear in a PDF made in InDesign when the user rolls the cursor over another textbox, and I want it to disappear when the cursor moves off the first textbox. I've tried the following with various setting, and it's just not working for me.
    Display a different button on rollover
    You can create a hot spot in which clicking or mousing over an object displays another object. To do this, create two buttons, hide one of the buttons, and use the Show/Hide Button action to show and hide the target button.
    Create an object to be used as the source button. In the Buttons panel, click the Convert Object To A Button icon.  
    Place the image you want to be used as the target button, and convert it to a button.  
    Select the target image and select Hidden Until Triggered at the bottom of the Buttons panel.  
    The image needs to be hidden in the exported document so that it can be displayed when the source button is moused over or clicked.  
    Select the source button and create two different actions, one to show the target image and a second to hide the target image.  
    If you want the image to appear when the mouse hovers over the source button, use the On Roll Over and On Roll Off events. If you want the image to appear when you click the source button and disappear when you release it, use the On Click and On Release events. In either case, use the Show/Hide Buttons action to display and hide the target button. See Make buttons interactive.   
    Use the Preview panel to test the buttons.  

    Here's more information about what I'm doing.
    1. create text box with a little text
    2. turn it into a button (Button 1)
    3. create another text box with some text
    4. turn this into a button (Button 2)
    5. check "Hidden Until Triggered" for Button 2
    6. For Button 1, select "On Roll Over" for Event
    7. For Button 1, click + to add Action and choose "Show/Hide Buttons and Forms"
    8. For Button 1, change icon next to Button 2 into eyeball (which I assume makes Button 2 visible on roll over).
    9. For Button 1,, select "On Roll Off" for Event
    7. For Button 1, click + to add Action and choose "Show/Hide Buttons and Forms"
    8. For Button 1, change icon next to Button 2 into crossed-out eyeball (which I assume makes Button 2 invisible on roll off).
    8. Export to PDF with modified smallest file size and include bookmarks and hyperlinks and include appearance for interactive elements.
    Both buttons are visible in the PDF, and nothing happens with roll over and off.
    What am I doing wrong?

  • How can I make and wire reffercence signals(ramp,sine,square) to excite and evaluate the behaviour of the system wih PID control?

    Dear all,
    I am Tri, I am a beginer with LV program. Actually I used LV for my reasearch, I had tried wiht very simple thing but the problem arise because I am not familiar with LA. Why I know that problem is simple because I compare with MatLab that I had somtime used before.
    I make a loop of PID control, It worked properly but I don't know how to make a refference signal to wire to the loop for excitating to evaluate the behaviour of the system. Please give me your help.
    Thanks

    Hi Tri,
          I've employed the "simple PID.vi" without a problem, but your example is more complex.  I think you use a Function generator to modulate DAQ inputs?
    Perhaps someone else will be able to infer your intention and identify a flaw in the logic.
    In case someone else wants to run your VI, it may help to build/attach an .llb (some sub-VIs are needed by the VI you atached.)
    To build the .llb, save your VI with Development Distribution options (Alt-F,Alt-W) and attach the .LLB
    1) \File\Save with Options
    2) select Development Distribution
    3) Save
    4) choose "New VI Library"
    But first, It would be helpful to us if you clean-up the code - straighten wire-paths, minimize bends in wires, and try to avoid "tall" diagrams.  Scrolling diagrams up and down is "bad form".  If scrolling is necessary, left&right is preferrable!
    Cheers.
    (and, for the record: in my previous post, Exitation would be wired to "Process Variable", Not "Set Point" (ouch!))
    When they give imbeciles handicap-parking, I won't have so far to walk!

  • How can I make addons available for enterprise users by an central service and forbid the installation from any other sources

    in the company I´m working for it´s not possible to install add-ons by the Users . That´s what I´m going to change.
    We use Firefox ESR 17 and Window 7.
    I want to make add-ons available for everybody by integrating an internal central service. That is possible by customizing the "extension.webservice.discoverURL" to the server I´m talking about. The Problem is that nobody should be able to install add-ons from any other source, for example addons.mozilla.org, local media,...
    Do you have an idea, how this problem can be solved?
    Maybe there is a possibility by using the lockPref "xpiinstall.enabled false" in conjunction with a whitelist defining my Server?

    Does any of this or similar blogs by the same author help
    *http://mike.kaply.com/2012/07/03/customizing-firefox-blocking-add-ons/
    Although with many hacks there could be some sort of workaround that advanced users may employ when attempting to circumvent the measures, such as the ability to use Firefox in safe-mode and then install add-ons, or even run a browser from a memory stick.
    You may well get a better answer on some other forum. This mozillazine forum deals with some coding issues, not sure but they may consider your sort of question on topic.
    * http://forums.mozillazine.org/viewforum.php?f=25

  • How can I make iMessage work on 2 iPhones with 2 different phone numbers using the same Apple ID?

    My work requires me to split time between two countries (Ph and Bn). I had an iPhone 4 with a Ph number and a Nokia for the Bn number. iMessage was running on the iPhone 4 with the Ph number and my apple ID. I recently replaced the Nokia with an iPhone 5 which I set up using the iCloud back up of my iPhone 4. I cant seem to set up iMessage (and Facetime) the way I want it to work on the iPhone 5. Im not sure if iOS 6 would allow me to do this so I'm throwing this out to the forums to check if its possible.
    iPhone 4 w/ iOS 6
    - uses Ph sim card
    - Ph number set in Phone>My Number
    - iMessage>Send & Receive has the following data
    Ph Number - greyed outand checked
    Apple User ID - checked
    iPhone 5 w/ iOS 6
    - uses Bn sim card
    - Bn number set in Phone>My Number
    - iMessage>Send & Receive has the following data
    Ph number greyed out and not checked
    Same Ph number checked
    Apple User ID checked
    Ive tried turning on/off my iPhone 5 and logging on and off iMessage but I cant seem to get it to update the iMessage phone number to the Bn number. Any idea how I can do this?

    I believe because you migrated from a Nokia to an iPhone you need to register the Bn phone number with your Apple ID so it can be used for iMessage. The Pn number seems to be the only one registered
    Go here > https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/
    Manage your Apple ID and see if that does the trick
    Hope that helps

  • Computer crashed, and had to reinstall OS, i thought i had library on disc, but not. how can i get my library back. it was not on my i-pod when the computer crashed.

    i lost all of my purchased music when my computer crashed. is there any way to re download my previous purchases now that the OS has been reinstalled?

    Refer to this article:
    iTunes: How to re-create your iTunes library and playlists
    http://support.apple.com/kb/HT1451

  • How can I make that the cursor of a table ...

    Hello,
    how can I make that the cursor of a table (on the frontpanel) go to the starting position? I have placed a table that give back the number of the row if I doubleclick a row on the frontpanel, but when I restart the vi the cursor of the table is on this position. If I have many informations in the table and after restarting there are just one or two, I can`t see this information without scrolling to the top of the table. I want that the cursor (that I see) is at the first row. How can I make it?
    thankyou
    Schwede

    Hello,
    Sorry, I forgot to attach it in the previous post.
    Regards,
    Paulo
    Attachments:
    EditPos.vi ‏16 KB

  • How can I make a 1-Click short cut for a specific tool in Adobe Acrobat 9 Pro?

    How can I make a 1-Click short cut for Adobe Acrobat 9 Pro for the function "Create" > "PDF from Scanner" > "Black & White Document"?

    No, Acrobat can't do that.

  • Just restored my iPhone from iCloud. My wife and I have always shared one iCloud ID. But since my restore, when a call comes in, it rings on both my phone and hers. How can I make this stop?

    Just restored my iPhone 5  from iCloud. My wife and I have always shared one iCloud ID. But since my restore, when a call comes in, it rings on both my phone and hers. How can I make this stop?  We had it all set up fine before the restore, and there was a trick to it in the settings.  I've noticed that since my restore, her phone has picked up what looks like the symbol of a phone in the upper right corner of the display, right next to the Bluetooth symbol.

    Hi Big Slick,
    Welcome to the Apple Support Community!
    It sounds like your iPhones may be using a new feature in iOS 8 called Continuity. The following article and information explains how to set up this feature for phone calls. You can review the information on the setup to reverse this effect. My suggestion would be to turn off FaceTime on one of the devices.
    Connect your iPhone, iPad, iPod touch, and Mac using Continuity
    Phone calls
    With Continuity, you can make and receive cellular phone calls from your iPad, iPod touch, or Mac when your iPhone is on the same Wi-Fi network.
    To make and receive phone calls, here's what you need:
    Sign in to the same iCloud account on all your devices, including your Mac.
    Your iPhone and your iPad or iPod touch need to use iOS 8 or later. Your Mac needs to use OS X Yosemite.
    All devices must be on the same Wi-Fi network.
    All devices must be signed in to FaceTime using the same iCloud account. This means any device that shares your Apple ID will get your phone calls. Look below for instructions on how to turn off iPhone cellular calls.
    Wi-Fi Calling needs to be off. Go to Settings > Phone. If you see Wi-Fi Calling, turn it off.
    Cheers,
    Joe

  • HT204392 how can i make my logitech C920 work as my default?

    how can i make my logitech C920 work as my default?

    i just figured the problem and has nothing to do with changing those integers. in the audio MIDI setting (app in utilities folder) for the c920 make sure the format is set to 24000hz, and it will finally work. if its set to 16000hz or 32000hz it wont work. i actually went backand put the integer settings to its original settings. 24integer for mac and 16 for c920.

  • I´m new at Garageband and Mainstage. How can I make them work together?

    I´m new at Garageband and Mainstage. How can I make them work together?

    You may want to download and read the manual for your phone. It may answer a lot of the basic questions.
    http://support.apple.com/manuals/#iphone
    There is an app on your phone called "Mail". Yes, it's for reading your email.
    Best of luck.

Maybe you are looking for

  • My reviews don't display in the US appstore

    I downloaded both free and paid applications in USA app store and I've been unable to post my reviews for a week. I can write a review and submit it but when I clicked the "edit" button, my review was gone (a review box show up but there is nothing i

  • Colors of guide on Xfinity

    Can anybody tell me a way to change the colors on the guide? The current colors make it almost impossible for me to read from my normal viewing range (about 8 - 10 ft).. I have to admit I am 75 but I had no problem with the old comcast display, but i

  • Old iPhoto library into new iPhoto

    Ok, to begin with let me apologise in advance for how this question is written. I am not the most savvy person when it comes to this type of thing but I am trying, I promise. So, I'm on my second MacBook Pro because my old one died a death after 5 ye

  • Is passing parameter to ORDER BY clause possible?

    I'm using a function to return a ref cursor and currently pass a parameter without any problems. I would like to change the sort on the fly by passing a parameter to the order by clause, but Oracle ignores it. CREATE OR REPLACE PACKAGE pkg_agent_appt

  • Quicktime Logo has question mark NO VIDEO

    HI, I am not new to computers, however I am new to trying to see videos on my windowsXP with quicktime. For instance, I received in email this http: http://img502.imageshack.us/img502/8610/mooninggrans1jy.swf It won't play, I just opened a myspace an