Problem getting bundles to sub vis

Hi,
I would appreciate help telling me how to get data which I set on the main
front panel to pass on to a sub vi. I have a number of inputs on my front
panel, which is surrounded by a while loop. They have to go to a sub vi outside
of the while loop, which takes the data to set up a control. The problem
is that I cannot get the bundled data(a thick pink wire) to go out of the
while loop. I have teh subvi having a cluster which has all the data indicators,
and I wired the cluster to a terminal, so that teh wire on my main vi will
conect to the terminal on the subvi. But, on the main vi, I get the wire
to be good to the point at which it hits the bordr of the while loop, then
it is broken beyond. ANy help would be most a
ppreciated. Thanks
JMH

JMH wrote:
> Hi,
>
> I would appreciate help telling me how to get data which I set on the main
> front panel to pass on to a sub vi. I have a number of inputs on my front
> panel, which is surrounded by a while loop. They have to go to a sub vi outside
> of the while loop, which takes the data to set up a control. The problem
> is that I cannot get the bundled data(a thick pink wire) to go out of the
> while loop. I have teh subvi having a cluster which has all the data indicators,
> and I wired the cluster to a terminal, so that teh wire on my main vi will
> conect to the terminal on the subvi. But, on the main vi, I get the wire
> to be good to the point at which it hits the bordr of the while loop, then
> it is broken beyond. ANy help would be most appreciated.
Thanks
>
> JMH
This could be one of several problems
1) The while loop maybe trying to build an array of the output.
Right click on the tunnel (black block on the edge of while loop) and
see if indexing is enabled. If it is you are building an array of clusters.
2) The datatype of the while loop and the input to the subVi dont match.
The easiest way to fix this is create and indicator from the Control on
the main VI and then copy it over to the SubVi. Make sure you change
the cluster on the SubVi to a *Control*.
3) You need to be aware that the data will not pass to the subvi until
the while loop finishes. This may be what you want, I cant say since I dont
know what you are trying to do. This will not cause a bad wire but will
cause problems if you really want the SubVI to run on Every Loop.
It sounds like #2 is your problem.
Let me know if you need more help
Kevin Kent

Similar Messages

  • Using Open VI Reference to run a VI, on an RT target, with sub-VIs not loaded

    I've been using Open VI Reference and Call By Reference Node to remotely run VIs on my RT controller.  I
    usually wire string data to the vi path input, but this
    requires the VI to be in memory.  I understand (from LabVIEW help) that I can wire a path to this terminal and specify a VI that is
    not in memory, but is on the disk.  NI has an example that
    confirms my understanding.  I get errors when I attempt to do the same
    with VIs that have sub-VIs; I suspect that the problem is that
    the sub-VIs aren't in memory and that the top-level vi doesn't know where to
    look for them (because the paths aren't specified).  All of the sub-VIs are on the RT system (in the same directory), they're just not in memory.
    Is there a way to get LabVIEW to look for sub-VIs on the disk?  I don't want to rely on using a startup application and rebooting to get my VIs into memory.
    Thank you,
    Jim Carmody
    Software Engineer
    G2 Technologies
    www.g2tek.com
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

    Hi Jim,
    It sounds like you are going about calling VIs remotely the correct way.  It would be very helpful if you could post the errors you are receiving.  I also wanted to know if you saw the note at the bottom of the article that says your VI library must contain everything your top level VI calls.
    Eric A.
    National Instruments
    Distributed I/O Product Support Engineer

  • I can't download apps. I'm trying to use my debit/visa and it says there is a problem try again, I've tried and tried and I get nowhere my debit/visa has worked before and now I don't even see where I can select "none" as a payment option, anyone kno

    I can't download apps. I'm trying to use my debit/visa and it says there is a problem try again, I've tried and tried and I get nowhere my debit/visa has worked before and now I don't even see where I can select "none" as a payment option, anyone know what to do?

    iTunes Store: Accepted forms of payment
    Apple accepts different payment methods in different countries.
    follow the steps listed in the link to see, it may not let you use a debit card.

  • Problems getting print-out of Sub-contracting challan

    Hi all,
    we,ve had real problem getting the print0out of sub contracting challan.
    System wouldn't show any print-preview of the sub contracting challan.
    but at assign forms and procedures in customizing of Inv management, at 51IF FOR SC challan, the system does show a print-preview of the sc challan form.
    but, after creating a SC challan and trying to view the print-preview of sc chalan, the system would neither show print-preview nor get a print-pout of the sc chalan.
    please do help in this regard,
    thanks and regards
    Nabil

    solve with other thread

  • How should I share a cluster across several sub .vis? Best practices? Current problems...

    I'm trying to share a cluster across several sub .vis.  I've written a save / load settings function that basically stores these settings in a static variable (full .vi attached):
    Questions: 
      1. Is this an appropriate practice?  (using a sub vi to share data)
      2. My program settings appear to be lost occasionally and reset to their default values.  This bug is rare, and it's hard to see what's causing it.  Could this be caused by my "save / load settings"?  Would this .vi result in race conditions or something weird if I use it in many places (and sub vis)?  I've disabled reentrant execution.  
    The "save / load settings" vi above uses a sub vi to initially read the settings from a binary file and save them each time they are changed (saved).  I initialize the "save / load settings" by loading the settings from text the first time this function is called.  
    Thanks!
    Attachments:
    Save and Load Settings.vi ‏82 KB
    Save and Load Binary File.vi ‏62 KB

    What you are doing is generally called a LabVIEW 2 Style Global or an Action Engine. It is a valid way to store data for use across subVIs. Rather than use first call why not have a specific action to initialize the data? The code is a bit more readable. Though you can use first call as you have.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Creating sub vis and projects

    Hi, 
    I am currently working on a project which involves a large chunk of Labview programming. I am new to Labview but am relatively experienced with C. I have designed an algorithm for C that I am currently trying to "translate" into Labview. The algorithm I have designed is a very modular piece of code, I have used a lot of smaller functions and called them in main rather than writing the entirety of the code in main. 
    My problem is that I don't really understand the difference between Labview projects and using one main VI to call other subVIs. I am unaware of whether I would be better off using sub VIs held together in one main VI or would I be better to use a Labview project. I am on a very tight schedule as it is a rather large project so I don't have a lot of time to experiment with my code-writing. 
    Does anyone have any advice on which approach is better/easier for an inexperienced user or if they are both pretty much the same?
    Gillian

    Projects and subVIs are completely unrelated concepts.
    The project is a means of organizing all the parts of the system you need to develop a program and build it into an executable.
    A subVI is just any VI which is used as a part of another VI.
    You need both.  When you open LabVIEW to start writing your code, create a new project and then keep your main VI and all subVIs and other parts like customized controls in the project.  Since you are an experienced programmer and have a modular design for the implementation of your algorithm, you can move those concepts directly to LV.
    SubVIs should be logical groupings of code such as the smaller functions in your algorithm.  The entire algorithm could be contained in a subVI which has those functions as subVis in the algorithm VI.
    Lynn

  • Running two sub vis in parallel

    I need to run two sub vis of a main vi simultaneously in parallel.
    one sub vi is to run a demo and the other subvi is an application.The demo should run as a small window and the application should run in background

    As i said
    "If you have the demo vi as floating and the other vi as Default (not floating), the demo vi will allways stay on top"
    If you still have problems, just post your vis, (without any unnecessary code), or ask something specific
    Message Edited by Pnt on 04-21-2009 08:18 PM
    Attachments:
    Clipboard-2.jpg ‏44 KB

  • Is it possible to unlink sub VIs to prevent affecting other projects

    We are running a validation with different flavours of the same IC which require using the same set of VIs with slightly different settings. In order to avoid confusion for users who are running with one type of silicon we have decided to make a copy of the LabVIEW code in a different area of our project folder on our network. We are concerned that LabVIEW will still find VIs from, say Project A, and use them for Project B, which may or may not cause problems when re-running tests for Project A as some of the VIs may need to be modified for Project B.
    We have looked at creating different sub folders and unmapping network drives but are still concerned that LabVIEW will be smart enough to find the Project A files when it should pick up the Project B files. The issue is that we may need to edit some of the VIs for Project B but don't want them to be modified for Project A.
    Is there a "One-click" method of unlinking all sub-VIs for Project B and when we load the main VI for Project B we can then manually point to the correct files so that Project A will not be affected and we can still run the VIs for Project A in the same environment with the same network drives mapped?
    This is complicated to explain so let me know if you need clarification.

    I don't think there is an automatic way of doing this. (someone else may know better)
    I would do a "save as" on the project, duplicate all files elsewhere, then add a prefix to all of your VI filenames.
    I tend to do this for projects that re-use old code too. Add a project specific prefix to the VIs and then if I decide to modify things in the new project I don't break old code.
    Edit:
    Another thought: If it is just settings you want to change rather than the actual code, maybe you could use a config file of some kind to load in the values that are going to change with your different setups. Then you use all the same VIs but just change the config file between different setups.

  • Failed to get alias mappers sub context in the Portal Registry

    Hi,
    I have read a few posts on this error message (in EP6 SP12), but I am getting it in a context that has not yet been posted.  What I am trying to do is create a link using the EPCM.doNavigate('ROLES://portal_content...') navigation.  This seems to be working, but there is one problem, with a normal user, the detailed navigation disappears when they click my link.  This doesn't happen for me, but something still isn't working properly. 
    I know in EP5 I got the link to work and the detailed navigation would reflect what link I clicked, but not in EP6.
    Anyone know what I am doing wrong?  The det. nav. should highlight the link I clicked, and it should definitely not disappear after clicking the link.  It is not launching into a new window, just using the same one.
    This is the error message that I am getting:
    #1.5#0003FF515725007500000005000027EC00040146A10B242C#1127302767189
    #com.sap.portal.ivs.semantic.systemLandscape#sap.com/irj#com.sap.portal.ivs.semantic.systemLandscape
    #kschmidt#615####5d6b4b102a9411daae320003ff515725#SAPEngine_Application_Thread[impl:3]_6##0#0#Error#1#/System/Server#Java###Failed to get alias mappers sub context in the Portal Registry##
    Any ideas?
    Thanks and best regards,
    Kevin

    Hi Kevin,
    I am doing the implementation of E-Recruitment 3.0 and i m badly stuck in a problem as the client needs some demo. I have some problems so can you please mail me on [email protected] so that you can help me on this.
    regards,

  • Having a real problem getting my vi to work - great difficulty running sequence as desired

    Hi
    I am have a real problem getting my vi to work as required.
    I would like the my vi (EXAMPLE.vi in the vi library attached) to run continuously.  It should update the graphs on the front pannel and also save data to file when requested using the  save data to file button. (I have written a sub vi. to deal with this data handling and file saving which run in two while loops with the vi as can be seen on inspection of the block diagram)
    Now, what I would like is for the updating to pause whenever I change any of the settings on the front panel (which are controls in the first half of the sequence of the vi) so the hardware is reset.  As it is at the moment I have to stop the vi to change the front panel settings and then restart it in order for the first part of the sequence to run and re-set the values on the hardware.
    I guess I need to use some kind of event driven programming an event stucture or something like that. This is quite advanced and I don't know how to implement it. 
    Can anybody offer any Ideas. 
    Many many thanks
    Ashley
    Attachments:
    test library.llb ‏470 KB

    Hi,
    If you are new to event structures then you may find the following tutorial useful:
    Event-Driven Programming in LabVIEW
    http://zone.ni.com/devzone/conceptd.nsf/webmain/E5F8474BDA20C97786256B5A0066968B?opendocument
    A powerful New Tool for UI Programming--User Interface Event Programming
    http://zone.ni.com/devzone/conceptd.nsf/webmain/2a8ab43b28bbde1086256b830059875c
    Advanced Event Handling with LabVIEW 7 Express
    http://zone.ni.com/devzone/conceptd.nsf/webmain/aa79ff38336eb38886256d2b004aca49#1
    I hope this helps
    All the best
    Kurt

  • I have problems getting Adobe Download Assistant installed

    I had to remove it and know i'm trying to download the try version of InDesign, but the download assistant doesn't install automatically like it should do. When the installation it's almost done a window appears saying that it needs administrator's privileges in order to complete the installation, and since i am using the administrator account i don't know why this happens.
    PS. sorry the grammar errors, english is not my mother language

    Hi, Thanks for the advice, but i already know how to do that when i ALREADY HAVE the file, this is the thing, i'll show you some screens. To explain better my problem
      It's in spanish, sorry :)well, there is the link to download InDesign, then when I click the link
    then; since i don't have the downloader assistant, wich is supossed to install automatiacally. It start downloading
    Then when the process is complete this window appears. It says: There has been found these problems: Adobe Application Manager wasn't able to install. Other times what it says is that it requires administrator's permisson or something like that, so i moved my Adobe folder to another place, to my public files. Then i try to do the same download again and now this is what the windows says. I can't do the click right on the file because there is no file. The Assistant wich I need in order to get the InDesign run file desn´t even finish installing.
    Hope you can help me.And thanks again.Date: Tue, 6 Aug 2013 17:25:12 -0700
    From: [email protected]
    To: [email protected]
    Subject: I have problems getting Adobe Download Assistant installed
        Re: I have problems getting Adobe Download Assistant installed
        created by Romsinha in Adobe Creative Cloud - View the full discussion
    Hi Medulla.90,
    Please right click on setup file and run the program as administrator. If still the same error try to enable hidden admin and install from there: http://www.howtogeek.com/howto/windows-vista/enable-the-hidden-adminis trator-account-on-windows-vista/ .
    Regards,
    Romit Sinha
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5572533#5572533
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5572533#5572533
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5572533#5572533. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Creative Cloud by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Synchronization of two sub-vis!

    I am working under LV 7.0 and I have to acquire videos through FireWire. The cameras are included into LV via an ActiveX control. So far so good. Because I have to control 2 cameras I have to start the capturing simultaneously. I have written to sub-vis where I initialize the cameras and start the capturing. Now I am wondering how to synchronize these sub-vis because sometimes the files have different lengths, up to 5 frames or about one second. Is there a way to get this thing to work?
    Thanks a lot in advance,
    Henning

    Hi Henning,
    Please take a look at the example included with LV that can be found at
    Help >>> Find Examples...
    Optimizing Applications >>> Syncronizing Tasks >>> Rendezvous with SubVIs.vi
    The help for this VI follows
    This VI is a demonstration of using a rendevouz. It creates a rendezvous of size 3 and then calls three parallel subVIs using this rendevouz.
    These subVIs use the rendezvous to synchronize the beginning of their loops. Each one displays integers to a graph. Finally, they all use the rendevouz to exit at the same time.
    Please note that this will get sub-VI sync'd up at the begining of each cycle. I have to raise the concern that the actual interaction of the sub-VI's with their respective activeX service may end up se
    quential if they all execute in the user interface thread.
    The technique illustrated in my cited example should get all of your files sizes to match up.
    I hope this helps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to creat multiple sub VIs'

    I have a VERY large VI that finaly crashed due to the large size. What is the best way to create "Sub VIS"? I have almost 800K of code. Should I create all the sub vis and then add them to my Project? I want the program to call the sub vis automaticaly.
    Thanks
    Philip

    Hi Philip,
    Backups:
    As Lynn (johnsold) said, local backups are a minimum requirement.
    A service like Dropbox is better in case of computer crash.
    Note: Temporarily disable Dropbox syncing when doing builds in a Dropbox folder as this may cause builds to fail.
    The best solution is true source control like the free TortiseSVN.
    For sub vis I suggest:
    Identify code sections that perform one specific function. This makes a logical sub vi. If you can easily come up with a name to describe the
    section (like "Parse Input String" for example) then you are on the right track. With some practice you will be creating sub vis that can be used
    in other programs and save you time in the future. This is a good reason to NOT include unrelated code in a sub vi just because it will fit.
    Take note of the number of inputs and outputs in the code section. Ideally you want a small number of inputs and the same for outputs (3 or 4). Use clusters to reduce the number of I/O items.
    Standardize on a connector pane layout - this makes wires line up better. The 4224 pattern works well. When LabVIEW creates sub vis it only creates the number of inputs and outputs that are required. So you will normally have to change the connector pattern and rearrange the controls and indicators every time you create a sub vi.
    Include error in and error out in their standard places even if you don't need them for the particular application. When you use that sub vi later
    you may need them.
    Good practice is to use Type Defines for controls and indicators that go to more than 1 place. In your case, it is a jugement call if it is worth the trouble to do this on an existing program. Once you start using sub vis more, Type devs become very important. If you don't use them, changing a data structure will require manually changing every sub vi that uses that data structure.
    steve
    Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
    question. Give "Kudos" to replies that help.

  • Hi I tried to contact with Sydney Apple store but impossible so far. Actually I found my Visa card been conducted 4 transactions in 7th may. I am in Auckland that time. It must be wrong deduction. Can anyone help me solve this problem.  My card is visa t

    Hi I tried to contact with Sydney Apple store but impossible so far. Actually I found my Visa card been conducted 4 transactions in 7th may. I am in Auckland that time. It must be wrong deduction. Can anyone help me solve this problem.
    My card is visa the 4 transactions are:
    $19.48, $19.48, $12.98 and $ 25.97
    otherwise I need report to police.
    Also please forward it to the related department please
    Thanks
    Kathy
    Please
    <Personal Information Edited by Host>

    You are not addressing Apple here - this is a technical forum and we are all other users here.
    You should also not post private info in an open forum - it is too dangerous - I've asked the hosts to remove the financial info and your email address. Anyone on this forum will reply to this thread - no need for an email address.
    As for the activity: please call your credit card company immediately to report and question the activity. They can get in touch with the vendor (Apple). Calling the police will not be very helpful.

  • Will more function globals or sub vis slow down realtime DAQ or display

    I need to do high sampling rate DAQ with varient data process and display.
    Shall I intend to put all the code into one vi to accelarate the speed,  or can I use more function global or sub vis to make the structure looks more reasonable.
    Just worry how the compiler handle the data transfer when call function global or sub vis.
    Will it creat new data copy and slow down the speed. Thanks.

    The other 2 loops in charge of the data processing and display will keep checking the version of the 2 function global. 
    For high performance, you want to avoid this sort of thing. Basically, you're polling the functional global to see if it has new data. Polling will eat the CPU unless you include WAIT periods, but doing that slows your responsiveness.
    Consider using custom events.
    For the sake of discussion, let's say you need to process data in the TIME domain (1) and the FREQUENCY domain (2).
    You create two events: NEW TIME DATA and NEW FREQ DATA, each carrying an array of DBL (the time-domain data from the DAQ).
    The DAQ routine, when it gets a new data block fires both these events, feeding it the new data. 
    Your TIME DOMAIN loop (1) has registered for one event.  When that event is triggered, the code accepts the data, and does whatever it needs to do (filters the time domain, graphs it, writes to file, averages, whatever).
    Another loop (2) has registered for the OTHER event.  When THAT event is triggered, the code accepts the data, performs FFT on it, and  does whatever it needs to do (filters the frequency domain, graphs it, writes to file, averages, whatever).
    Or you could do the same thing with queues.
    When the use changes conditions, you change which event you listen to, or which queue you consume from. 
    The idea is that you want to avoid polling.  Let the system tell YOU when data is available. Don't be asking the system if it's available. 
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

Maybe you are looking for

  • �how can I resolve a "com.ms.security.SecurityExceptionEx"?

    I've got a problem. I've done a client/server application that extends from Applet. When I try to connect the client application with the server one, the Internet Explorer gives me this error: excepcion= com.ms.security.SecurityExceptionEx[ConexionSe

  • How to set audio hardware input channels for narration & to what?

    Searched forum - hope I didn't miss solution for the following: Using PE3 in Windows XPSP3 Tried for the first time to add narration to a project. Was using a stereo/microphone headset. Got nothing but noise. Could record in Windows recorder and Auda

  • IPod Nano data recovery

    Hi. I own an iPod Nano, and yesterday, I accidentally dropped it into a sink. It flashed a message about firewire connections and prompty shut off. Now, I tried to turn it on, about 5 times, and plugged it in once, so it's probably gone. But here's m

  • Web Services Server Connection Error

    Although I was able to add my printer to hpeprintcenter successfully, after a few hours it was showing disconnected.  When I pressed refresh I received a popup saying my printer had been removed.  After clicking ok on the popup my printer was still l

  • Make Find-on-page reposition at bottom of window again in v.15.0.1

    In previous versions of Firefox, Find-on-page (Ctrl-F) would reposition the page to place the found text at the bottom of the window. With version 15, Firefox positions the found text in the middle of the window. How can I make Firefox v15 go back to