Consumer producer event control button top VI

I am trying to control the main.vi example that create the “create project wizard” called “Continuous Measurement and logging” from a top lever VI.
The problem I have is that, I will not start the main.vi unless it’s done by an event created by an operator. How can I control programmatically those buttons from another VI?
I am attaching the block diagram picture from the wizard and the simple top_level VI to control that VI. Thanks
Attachments:
mainVI.png ‏62 KB
top_level_VI.png ‏16 KB

That main VI is meant to act as a top level VI.  It is recommended you add on to that VI if you need more capability.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • Producer Consumer & User Events with user input windows

    Hello All,
    I am planning to build Labview code using the Producer Consumer & User events pattern, the application needs multiple user input windows for things like personal data, feature selection etc, there could be around 15 or 20 distincts screen/panels required.
    The main question from me is... Is there a best practive approach to navigating/loading from one window to another etc, and also providing a way to to retrun to the previous window.
    Also I may need need to be running some slow logging and control hardware in the background while navigating some of the screens, this seems like the producer consumer vi will be running in the background while the user input causes a load/display window event.
    A simple Producer Consumer multiple winjdoow example would be very welcome. Thanks.
    Regards Chris

    I will second Mike's suggestion to use a central VI with subpanel(s).  It is usually less confusing than multiple windows.  Typically, the selection/navigation mechanism is on the left of the main panel, global info (like help) on the right, and the subpanel(s) in the center.
    The advantage of subpanels/subVIs is that you can launch your subVIs and keep them active in the background, even though they are not being used.  This means they will keep their state information and load into the subpanel almost instantaneously the next time you need them.  For a short tutorial on subpanels, check out this link.  Scroll down to the fourth reply for working code.  The original code posted is broken.
    Communication between your VIs or loops is typically done with either queues or event structures.  State information in each should be shift registers in the respective VIs.  If you have the time, I would highly recommend you learn how to use LabVIEW classes.  The command pattern is tailor made for this kind of application.
    Finally, avoid global data if you can.  Global data is anything that you can get to from anywhere (globals, functional globals, etc.).  Use of these can speed your development, but can also lead to sloppy design which will cause you major problems later.  If you really need globally available data, use a data value reference.  It is unnamed and requires a reference, which tends to enforce better programming practice.  Yes, there are instances where you truly need globally available, named data, but they are fairly rare.  You should only use them if you are experienced and really know what you are doing.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Title & Menu Buttons not working correctly on remote control/ set top player but work in preview.

    Title & Menu Buttons not working correctly on remote control/ set top player but work in encore preview. This only happens for a Blu ray project. When a user presses the menu button it should go to the previous menu they were on but it goes to the main menu. When they press the title button they should go to the main menu but it doesn't do anything. My DVD projects work as expected.I've tried creating a new "test" project with different footage and still get the same undesirable results.
    Overrides grayed out and set to "not set" for timelines and menus.Project settings and build are set to blu ray. Also I've noticed when I preview a Bluray project the preview window shows a red colored disc next to the Title button when viewing the timelines and green when playing the menus but not so for a DVD project it displays red if motion menus and or timelines are not rendered/encoded. I'm not using motion menus and all the media is encoded according to the project specs.
    I've searched this forum but couldn't find the answer. Any help or redirects to a solution would be appreciated. Working with CS5. Thanks.

    I found out on my Samsung Blu ray player the remote has a tools button on it that brings up audio, angle, chapter selection etc.and also title selection which is actually the menus and the timelines unfortunately. It's not as easy or direct as last menu selected but it's a workaround at least. I also plan on using a pop up menu. I'll let you know.

  • Change a VI to a more sophisticated pattern (e.g. consumer/producer)

    Hi everybody!
    I have written a VI taking spectra from a triggered flash lamp and spectrometer. The whole systems works in a rotating device. So the triggering and exact timing is quite important. I finally got my Vi to work  but there are still some problems with the spectrometer. I think this is due to the fact that the spectrometer runs into a internal timeout but I don't know why. Furthermore there is still a lot of false triggering when changing to the next sample with a different delay.
    So it's really time to take a deep and think about my program. At the moment I have a flat sequence with some for loops defining the number of measurings as well as the while loops for the triggering...
    Well that's I want to do:
    1. All the necessary data comes in a cluster from a different vi
    2. Initialize: Create folders, calculate positions for the step motor and move it to the initial position, open spectrometer and so on
    3. Start the speed measuring and calculation of delays
    4. Measure the spectrometer dark current
    5. Move step motor to the first position
    6. Start retriggerable task for lamp and spectrometer (the triggering occurs in a subvi, whereas the delays are updated continuously by a reference) 
    7. Measure at step motor position first sample, second sample and so on
    8. Move stepmotor -> 7
    9. Stop retriggerable task for lamp and spectrometer
    10. Save data and wait for a specified time
    11. Back to step 5
    12. In the end: Close the spectrometer, stop the speed measurement and so on
    Furthermore the data has to be displayed:
    1. The actual scan
    2. Step motor position dependent absorption for the actual scan as well as the former scans (by option)
    So much for the theory. I thougt that maybe a produce/consumer patttern would fit but I have no idea how to realize this. Of course I have read a lot but I don't know how to do the triggering stuff and so on.
    I have attached my main vi that you can see how I deal with this at the moment. Of course all the subvis are missing but the working principle should be clear. Please let me know if If you need any more information!
    I want to do two things. First I want to separate the data aquisition from the display and file I/O, second the data aquisition has to be seperated from the lamp and spec triggering.
    Especially the second point seems to be very important because my spectrometer runs into some internal timeout (not because there is no trigger) after some minutes or hours (the exact time is not reproducible, but it does happen) and crashes my whole system  as I mentioned before.
    I don't know why but I hope so much that a more sophisticated vi pattern will solve this problem.
    May you help me with this?
    Thanks!
    Attachments:
    radial_scan_v5.10.vi ‏293 KB

    If the vi runs without user intervention, then simple Enum based state machine architecture can be used.
    1. All the necessary data comes in a cluster from a different vi
    State -1
    2. Initialize: Create folders, calculate positions for the step motor and move it to the initial position, open spectrometer and so on
    State -2 Initialise state
    3. Start the speed measuring and calculation of delays
    This can be a Dynamically launched vi ( and can be launched in State-2) where it waits for the notification from State -2 to start Acquisision.
    This vi will also stop acquisiion based on another notification from the main vi states
    State-3 -> Set start notification for this cont. running sub vi
    4. Measure the spectrometer dark current
    State -4
    5. Move step motor to the first position
    State -5
    6. Start retriggerable task for lamp and spectrometer (the triggering occurs in a subvi, whereas the delays are updated continuously by a reference)
    This can also be another dynamically launched subvi, that is launched in State -2 itself.
    State-6 -> Send Notification to start the Retriggerable task
    7. Measure at step motor position first sample, second sample and so on
    State -7.Measurement
    8. Move stepmotor -> 7
    9. Stop retriggerable task for lamp and spectrometer
    State -8 Send stop notification to stop the Retriggerable task.
    10. Save data and wait for a specified time
    State -9 - Log the Data
    11. Back to step 5
    State 10 .. Check for completion.if required again redirect to state -5
    12. In the end: Close the spectrometer, stop the speed measurement and so on
    State -11 Send stop ACQ notification for all the dynamically launched vis, stop those vis..close  all instrument refs .. stop main vi
    If the states are dependent on user intervention then Event based producer consumer can be used where, the producer will control when to start the whole process and when to stop the process( Using queues).The consumer can be Queue driven Enum based state machine

  • Open folders in same window (in toolbar control button mode)

    Hi, when I set a finder window to hide the toolbar from view, using the toolbar control button in the top right, the folders open a new window when clicked.
    Is it possible to set them to open in the same window?
    Thanks

    Hi, when I set a finder window to hide the toolbar from view, using the toolbar control button in the top right, the folders open a new window when clicked.
    Is it possible to set them to open in the same window?
    Thanks

  • Can we control the top level navigation in portal from a java application

    Hello,
    I am having a scenario where User logged in to portal and assigned with 2 roles (HOME , ISA(Java application)). When user opened a form in ISA (Java application) and tried to enter the data in form and moved to another tab (e.g. HOME) in top level navigation.
    When user come back to ISA (Java application) TAB , we show the page where he left earlier. I would like to know if user click any other TAB in top level navigation (Role assigned to him) while working on a page in ISA(Java application) is there any way we can catch that event before he leaves from ISA (Java application JSP page) to other TAB?
    How can we control the top level navigation events in the portal from a java application .Since Top level navigation is seperate par file.
    Thanks,
    RN

    Dear Rajesh,
    Top Level and detailed navigation values comes with iteration in the respective par file.
    Please check the par file and based on the value (i.e tab name) selected, you can write your code.
    Best Regards
    Arun Jaiswal

  • Qosmio G35-600 - Control buttons and card reader don't work

    Hi,
    So I recently installed windows XP on my Toshiba Qosmio G35-600 and I found all the drivers except for two. If anyone out there could help me find them that would be great.
    1) The first driver I cannot find is for the Toshiba control buttons at the top of my keyboard (I believe that is what they are called). Quosmios have 12 buttons on the top above the F keys, and currently only my power button, the brightness up and down buttons, and the dolby sound buttons work. The analog TV button, the media center button, play, stop, previous, next,record, and s-video out buttons don't do anything anymore. It would be cool if i had an s-video out ability again but mostly what i want is the play, previous, and next buttons to work.
    2)The second problem I am having is with my built in SD card reader. A few times I thought I found the correct driver but after installing it the SD card was not showing up in my computer.
    A preemptive thanks for the help,
    Xamboni

    Hello
    I think you should install the Toshiba controls for Windows XP that you can find on the Toshiba website. Check this!
    http://www.csd.toshiba.com
    The driver for the SD card slot you can find on the Toshiba website too.
    What SD card have you tried?
    Try it with an other SD card and use the Toshiba SD card utility to format the card.
    Greets

  • Common control buttons for animation+video

    I wan to be able to embed an animation like one of these http://http://www.texample.net/tikz/examples/tag/animations/, which has its own control buttons,
    alongside a regular video, and have both of them run by a common set of control buttons for play/pause/rewind.
    For example, the video could be a video of an actual object or a ball falling, and the animation could be the animated drawing of some math formula related to the fall of the object.
    Message was edited by: Maesumi

    (1) Is it possible to put 3 buttons, say A, B, C, on a PDF page so that pressing A  will be equivalent to pressing B and C?
    (2) And would Adobe Pro allow one button to be placed  on top of another one?
    The simplistic idea here is to manually perform what a program would do. So I will use A as the master control  and place B on top of the control  button for the video and put C on the control button for animation. Then when I click on A it is as if I have pressed B and C simultaneously.

  • Window Control buttons are grey

    Installed Yosemite, and now my window control buttons (cancel, minimize, maximize usually red, yellow, green) are greyed out.  Is there a fix for this?

    Hey there Darrel,
    It sounds like the top left 3 buttons still function but are gray in color. The symptoms indicate to me that the Appearance setting in System Preferences is set to Graphite rather than Blue:
    General preferences - Mac Help
    Appearance
    Choose the color you want for buttons, menus, and windows
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • Trouble getting banner rotator control buttons to line up. Please help!

    Hi guys,
    I had some help making a banner rotator and it all works fine but I can't get the control buttons to line up with each other properly.
    You can check my example by clicking here.
    Basically the left and right control arrows should align with the lights. Does anyone know how I can get them to line up?
    Thank you,
    S

    Spindrift wrote:
    I tried what you said and it kind of worked but I more want to bring the <ul> up to the level of the arrows, rather than giving the arrows a top margin to bring them down, if that makes sense. I want the black box to be a thin strip.
    Any other ideas?
    Add margin: 0; to your 'banner-rotation ul' css selector (as shown below)
    .banner-rotation ul {
        float: left;
        padding: 1px 0 0;
        width: 148px;
    height:11px;
    margin: 0;

  • Reset control button

    Can I reset a control button programmatically?  Specifically, I'm wanting to switch a Boolean button back to a false state in response to certain events/conditions. 
    For example, consider the attached VI.  (It is un-finished, because I don't know how to finish it.) The user can make the counter count by clicking the count button.  What I want to do is stop the counter at some number (10) and reset the count button, so the user has to re-click for a new count. 
    Solved!
    Go to Solution.
    Attachments:
    counting_example.vi ‏12 KB

    This is one of those times some additional functions can be your friends.
    Events, Property nodes and Feedback nodes should be loaded into any developer tool-box ready to replace the "Screw-Hammer" when a better tool exists.
    Count Value change event selects either -1 or 100 for timeout
    Stop value change sets the exit condition
    I renamed Count (I32) to Counts since its not very good to have two objects with the same label
    EDIT:
    I think he wanted the "Count" button to remain pressed in-  I read that too since the true string is "Counting" Still the Local is less desirable since a Val(Signalling) can be beneficial in this case
    Jeff

  • How to make New Events appear at TOP of page, not Bottom?

    When I import photos, they are automatically put into a new Event. That's great. But that Event appears way at the bottom of my long events list, even though my Events are shown chronologically with the most recent events right at the top. I have to drag the new event all the way through dozens of older events in order to bring it up to the top, where I can figure out which other event folders those new images might belong (ex: "family photos, Fall 2008").
    This isn't the biggest problem in the world, but I'd love to know how to set iPhoto to create the new event at the top of the list instead of the bottom. Any help? Thanks.

    Welcome to the Apple Discussions. In the View->Sort menu select Descending. However that will also have the photos in the Photos mode be sorted descending. In the Event mode you can sort the events in one direction and the photos in those events in the other. In the Photos mode both the Events and photos are sorted the same direction.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There's now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • The green button, top left corner of a pop-up screen on MACbook, it's supposed to enlarge the pop-up to full MAC screen size, correct?  Mine does not.  Sometimes it makes the pop-up screen SMALLER.  Appreciate someone solving this for me.

    the green button, top left corner of a pop-up screen on MACbook, it's supposed to enlarge the pop-up to full MAC screen size, correct?  Mine does not.  Sometimes it makes the pop-up screen SMALLER.  Appreciate someone solving this for me.

    Are you talking about the green '+' button in the top left corner? That technically doesn't enlarge it. It switches the window from the default window size to the custom size you made. You can enlarge the window by moving your mouse to the bottom right corner of the window, and dragging until you get the size you want.
              MacBook

  • Crystal Report/STRUTS: Error (404) when clicking on Control Buttons (Print, Export, Next, Previous, etc...) on report viewer

    Post Author: jwenny
    CA Forum: Deployment
    Need help badly!!!
    We are using the crystal reports plugin for STRUTS.
    We are able to display the report in the crystal report viewer.  However, when we click any control buttons (print, export, etc...), then we get:
    JSPG0036E:  Failed to find resource /Report-viewer.jsp
    We then moved Report-viewer.jsp to the WebContents folder (root directory) and got a different error when we clicked any control button:
    Error:  400 page not found
    Does anyone know how to solve this problem?  For instance, is there a setting or parameter that needs to be set?
    Greatly appreciate any help!

    HI,
    Whenever we print the viewer does an auto postback, I believe due to this some of the values are getting missed. Moreover we are referring to the viewer and reportdocument object, it seems. So can you try this simple code in an application to see if it helps:
    ReportDocument rdoc = new ReportDocument();
    rdoc.Load("C:\TASKECrystalReports\Intraday.rpt");
    rdoc.SetDatabaseLogon("uid","pwd");
    rdoc.SetParameterValues("parameter name","value");
    CrystalReportViewer.ReportSource = rdoc;
    Helps?
    Thanks.

  • IPod Shuffle 4th Generation's control buttons not working.

    My iPod Shuffle 4th Generation's control buttons are not working. Sometimes it works after formatting it stopped again.. Please give a solution ASAP...

    Hello.. When I switch on the iPod Green light appears. after 10 - 15 secs 3 times orange light blinks... After that I wont be able to increase / decrease the volume nor change the song. If I need to change the song, I should switch off n switch it on back. Actually I washed the iPod. It was in my jeans pocket.. Put in the washing maching without knowing that iPod was in the pocket. Charge also not staying long...
    **Warranty is there for the iPod. Unfortunately it has two dents, so its not eligible for the replacement..

Maybe you are looking for

  • Dvi and s-video

    Hi guys. I have a setup that uses two monitors, the one attached to my TiBook being my music program, and the additional monitor to watch the video along with it (i'm a film composer). As I'm attempting to upgrade monitors (from post-production boxy

  • Installing 11.5.10.2 on Oracle Unbreakable Linux

    I downloaded and did a full instalation of the Oracle Unbreakable Linux from edelivery site. But when checked, I found that following packages are NOT installed which are required for installing 11i. compat-gcc-32-3.2.3-47.3 compat-gcc-32-c++-3.2.3-4

  • Sub-pages opening in new windows

    I have all my links and pages opening in the same tab, but one of my sub-pages opens in a new tab and I cannot find out why. Any suggestions would be greatly appreciated. Thanks

  • Cisco Communications Manager 9.1

    We have a CCM installation on a UCS chasis.  Can someone tell me how to find the serial number of the CCM installation? TIA

  • Xorg crash with Intel GPU / Gnome 3

    Hi, Running 2.6.39-ck and Gnome 3 via GDM on a Thinkpad T510 I just had an xorg crash; lspci | grep VGA 00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02) dmesg (probably unrelated to the crash