Multiple booleans controlling one boolean input for a case structure

Hello,
I have four boolean buttons and a case structure with a boolean input. I would like to write the program so that whenever any one of the four boolean button changes value, the case structure reads true for one loop interation, and then returns to false.
I have tried all sorts of things and can't seem to figure it out.
Ultimately, the ideal function of the program is so that whenever you push any one of the four boolean voltage controllers, that voltage case is chosen in the case structure, the time in seconds is written to a file, and the elapsed time timer is reset.
I have attached my program. Let me know if you have suggestions. Thanks.
Attachments:
Volt_Control_And_Time_Counter.vi ‏71 KB

Zappow wrote:
However, with this setup, the time counter still doesn't work.
The event structure for all four buttons has a true boolean constant connected to my file-saving case structure. If I connect this to my elapsed time express VI reset button, the timer doesn't count.
The timer does not count because you have not wired a timeout to the lower event structure. The default timeout is -1, so the lower loop never spins via timeout
It is useless to have a wait in a loop that also has a timeout case. Just wire an approriate timeout value to the timeout terminal and remove all waits. It is also not necessary to have a 1ms ttimeout if your timeout values only displays to 100ms resolution. Can you explain why you think you need two loops and all that extra code?
Attached is a quick rewrite that solves some of the problem. Since I don't have any hardware, I replace the voltage out with a meter.
You have way too many FP controls and indicators. Use arrays!
Let me know if yo have any questions. Modify as needed.
LabVIEW Champion . Do more with less code and in less time .
Attachments:
Volt_Control_And_Time_CounterMOD.vi ‏63 KB

Similar Messages

  • Combine 4 stops for 4 case structure

    Hello everyone!!
    I meet a problem in my project, I knwo it's not difficult but we are all beginners for labview.
    We need to control 4 batteries, each battery needs a life cycle calculator. I try to connect 4 life cycle calculator(case structure) in my while loop, but there are 4 stops for 4 case structure and 1 stop button for the whole while loop....I don't know how to handle with these four extra case structure stop buttons....
    As the battery charging and discharging, the life cycle part keep working so actually it's no need for stop button for each case structure , can we just get rid off the stop button for each case structure?? Is there any problem with the life cycle calculator if we do not use the stop button???
    Really Thank you for help !!!!
    here I attach our vi, you can configure it directly !!
    Attachments:
    PR2.vi ‏78 KB

    The main problem is code architecture. Once you fix this, your current problem will vanish automatically.
    You seem to be spending way too much time rewriting basically the same code over and over. You need to modularize the code and make it scalable. You have four instances of basically the same code. Are you planning to later scale this up for a few hiundred batteries? Would you then simply make it a diagram that is millions of pixels hight? Once you combine all the functionality for one battery into scalable code, you can scale it up for an arbitrary number of instances.
    Same for the front panel. Make the controls for one battery into a cluster and then make a 2D array of such cluster (2x2 in your case). Suddenly, the entire code will be the size of a postage stamp and easy to maintain. If you currently want to change an error in the algorithm, you need to make identical changes in four different places. If you forget one place, bugs will be very had to find.
    LabVIEW Champion . Do more with less code and in less time .

  • Using an array of references to boolean controls as an input of a subvi to modify propierties from the passed controls.....

    Hello,
    I have a cluster of checkboxes and I want them to be exclusive an to change the visible objects of my vi when I change their state. To keep my code clear I decided to create a subvi that implements this functionality. My subvi recives an array of references to the objects from which I want to change the visibility, an array of references to the checkboxes (to be able change it's values to make them exclusive when one of the checkboxes change it's state), and an array of the values of the checkboxes in the last iteration (to be able to detect which one has change to true and set to false the other ones).
    The problem that I have is that when I use a property node to get the actual values of the checkboxes in the subvi (to compare them to their previus state and detect changes) I obtain a variant type and not a boolean. I've tried to set the mechanical action of the booleans references used as input in the subvi as switch but this doesn't seem to work. I understand that is cause the subvi can't know type of booleans that will recieve and asume the worst case....
    Is there a way to do what I want?
    I hope I've explained myself... Thanks in advance!
    Solved!
    Go to Solution.

    There are a few ways to deal with this, but it would help to see your code. Are you sending a reference of the Cluster into a VI, or individual references of the checkboxes? It sound like you are not using a strict reference. The workaround, since you know the datatype, is to use Variant to Data and change the variant to a boolean, but this shouldn't be necessary. Again, post some code so we can be more help.
    edit: It sounds like you are trying to hard code Radio Buttons. You do know that LabVIEW has Radio Buttons now, right?
    Richard

  • Input for nested data structure service

    I plan to use a service which require some header-information and additional 1...n item-information.
    The data structure of this service is nested, means there is only one input-port for the header AND the nested items.
    Is it somehow possible to create a UI consists of two inputs like one input form for the header and one input table for the items on the inputport??
    The main problem is that either the header or the item information is transported to the input port of the service, never both as required by the service. Tried to solve it using a data bridge (or as it called in Ehp1 for 7.1 "data share") without any success.
    Solved it by myself Just forgot to check "Control Buttons" in the Configure tab of the table.
    Edited by: Stefan Witschel on Nov 18, 2008 1:47 PM

    Yes, I still used it.
    In Ehp1 is a feature that automatically add a data share if you drag and drop the input port of your servce with nested structure anywhere on the screen. On this data share you can add another input form or table for the nested elements. Both forms/tables than are connected at the input with the share.
    Finally you do the data mapping for the nested structure and define an action to call this connection.
    Actually my problem was that I couldn't input data in rows of a table for the nested structure. I solved it by enabling the table controls which allows you to add an delete rows.

  • One Communication Channel for two XML-Structure

    Hi to all!
    i'm Newbee in XI.
    i register one Communication Channel to recieve two different XML-Structure and when i sent second structure there was a Mapping error, because XI waiting for first XML-Structure.
    I'd like to ask if there are any additional condition that i must tune up to make it possible or just it's impossible?

    Hi,
    Please refer below links
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/121b053d-0401-0010-539f-f9295efb7bad
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3a913f71-0601-0010-7a83-dfd3208a9a0b
    how to find the URL of deployed Web services?
    Creating .NET Web service
    http://www.15seconds.com/issue/010430.htm
    Also refer SOAP Framework to generate the common wsdl for both the messages with single SOAP CC
    http://help.sap.com/saphelp_nw04s/helpdata/en/bb/ddb33d2ae46b3be10000000a114084/frameset.htm
    Thanks
    swarup

  • Multiple currencies under one company code for contracts

    Gooday!
    We have a new schenario ( In RE-FX) where we have a couple of contracts which were negotiated with the landlord that needs to be settled in Rand, whilst the company code are setup for another currency, which is dollar (caters for the bulk of the contracts). So each time you create a new contract the currency is already greyed out (Dollar), which obviously means that it cannot be changed there.
    Apparently the company code can be setup in FI to accommodate secondary currencies, however, this seems not to be the case in RE-FX.
    My question is this, is it possible to have multiple currency contracts under one company code in RE-FX, and if so, do one set it up in FI or RE-FX?
    Any assistance would be greatly appreciated!

    Conditions in Foreign Currency (New)
    As of SAP ECC 6.0, Enterprise Extension Financials, Enhancement Package 2 (EA-FIN 602), Business Function Real Estate (RE_GEN_CI_1), you can enter conditions for contracts, rental objects, or contract offers that are in a currency that differs from the local currency of the company code.
    You can enter the currency directly when processing conditions. You can also enter a currency translation rule in the posting term. The rule is then used for all conditions to which this posting term is assigned.
    You specify in Customizing which currency translation rules are allowed for each contract type and usage type.
    See SAP Note 123819.

  • Help with Multiple libraries and one storage location for files

    I cannot get an answer to this question anywhere and was really hoping that The [H] would be able to help.
    Here is my current set up that allows my wife and I to have completely independent libraries and ratings, but use the same files:
    -Shared folder with MP3s on a network drive.
    -Two PCs, each with it's own Ipod associated to it with individual libraries but all pointing to the same network share for MP3 Files.
    -Each PC is using the SAME Itunes account for downloads.
    -Each account has it's own library folder also on a network share.
    Now to my question(s)/problem with downloaded content:
    (1) Is there any way to have a file that is downloaded from Itunes be automatically placed in a shared location accessible to both Libraries? (Say if I download the latest Jack Johnson album, can it automatically show up in my wife's library and vice versa?)
    (2) Is there any way to share the album artwork versus having two copies of everything(one for each library)?
    So my goal is to have two libraries with a central location for ALL files, including anything downloaded from Itunes by each individual user. Is this possible?

    Have your wife transfer all purchases from the iPad into iTunes, backup her iPad and then sync with iTunes. Everything ... All media and other content will be available in that iTunes library and she will have a current backup.
    Assuming that your son will still be sharing your wife's Apple ID (he is too young to have one of his own) .... When you set up his iPad, restore the iPad from your wife's backup and then select only the content that you want your son to have on his iPad in the iTunes library and then sync that iPad with iTunes.
    The game progress is stored in the backup and should transfer onto his device when you restore from your wife's backup. You can always delete any content (apps, movies, music) that you don't want your son to have on the iPad, if you missed it when you synced with iTunes after setting the device up for him.
    You can set your sync preferences - any way that you want to - for both devices and still use the same iTunes library for both iPads. So ... Yes you can sync any apps that you want to his iPad and any apps that your wife wants to her iPad. You just need to restore your son's iPad from your wife's backup in order to get his game progress onto his iPad.
    In case you need these....
    Transfer purchases.
    http://support.apple.com/kb/HT1848
    How to backup and restore from a backup
    http://support.apple.com/kb/HT1766
    Remember to have your wife backup her iPad just before you restore his iPad from the backup so that his most recent progress will be available in the backup.

  • Multiple Reports In One Region - Question For Denes Kubicek

    Denes,
    I looked at what you've done on your demo app 31517, Page 152
    (http://htmldb.oracle.com/pls/otn/f?p=31517:152), in which you place several reports in the same region. It is nicely done and a great example of something I
    need to do at my work place.
    I have two questions.
    1) In your explanation link (takes me to your blog) you say you made changes to a copy of the Report Template and placed this copy into a copy of the Standard Page Template. However, I see that your reports are set to "No Template".
    I've probably missed something here, but don't know what.
    2) A more general question ... I'm intrigued in how you get tab item in, say, your Section 4 Tab Set (or any of the other Tab Sets) to "Stand Out" in bold letters
    when clicked on. How are you doing this?
    Thanks very much for your help. Yours is one of the great sites to learn from.
    Elie

    Apex v4. has parent and child regions (subregions) where child regions display inside the parent. If you make the child regions with no template, they will probably appear as if it's just two reports in one region.
    Problem is, they display one above the other, not side by side. But there's been a recent thread on working around this just in the past few days on this forum.

  • Newbie trying to combine multiple clips on one video file for iDVD

    I just bought my Mac and and starting to make home videos. I have 20 .mov clips I imported from my HDD camcorder into the events section on Imovie 08. I could not find a way to combine these clips on Imovie 08 into one large clip. I imported these movies to iDVD in attempt a uninterupted movie. I have not found a way to do this. All I can do is add the the clips into a chapter screen, but then each clip stops after it end. How can I combine these .mob clips in either iMovie, iDVD, or any other software program that came with a normal Mac book?

    I am not familiar with iMovie 08, but I am with the HD6 version. This is the one that you will be able to download using the link provided by SDMacuser.
    You can use iMovie HD6 to combine your clips into a movie that will either play straight through or stop at the end of each clip if you wish. First, import your clips into iMovie to create your new movie project. Add audio, titles, effects, etc., and, if desired, chapter markers. Chapter markers will give you the option to advance to different parts of your movie, like a scene selection menu.
    From iMovie Help, *Setting Chapter Markers*:
    To set chapter markers:
    Move the playhead to the point at which you want to start a new chapter.
    IMPORTANT: You cannot add a chapter marker to the very beginning or end of your movie. (iMovie HD automatically adds an initial chapter marker at the beginning of a movie.) It's also a good idea not to add a chapter marker within a transition, or within one second of a transition or other chapter marker. If you do so, other applications may have trouble recognizing the chapter markers.
    Click the Chapters button, and then click Add Marker.
    Tip: To quickly add a chapter marker, you can also choose Markers > Add Chapter Marker.
    Type a chapter title next to the thumbnail that appears in the Chapters pane.
    Good luck.
    iMac Power PC G4 Mac OS X (10.4.11)

  • What is the best way to pass a controllin​g signal out of a sub vi or more than one layer of for loop, while the sub vi or for loops are still running?

    I have a vi that runs through two for loops and a while loop, then after a certain number of iterations on the inner while loop it is supposed to pass a trigger to a case stucture to start measurement. I have tried using a local variable attached to a boolean control which in turn is attached to the true case of the case structure involving the measurement sub vi. What is happening is that the boolean control will light on the front panel at the correct # of iterations in the while loop, as if true, but the measurement is not taken, and the boolean control never goes back to false. It remains lit. Am I u
    sing the local variable incorrectly? If so, where am I going wrong.
    Attachments:
    GL_Flicker.vi ‏118 KB
    Take_Measurements.vi ‏147 KB

    Hello planar,
    There are multiple ways to pass control information between loops and VIs and each one has its place. For simple VIs like your example, a local variable will be fine.
    The main reason the subVI is not running is that the case structure is not continuously polling the Boolean control. This is because the case structure is not inside a loop and as such will only read the Boolean value once and execute once. Encasing the case structure and control inside the while loop should solve the issue of the subVI not running.
    You may find the following links of help in creating more robust and advanced VI architectures.
    Application Design Patter
    ns: Master/Slave
    LabVIEW Application Design Patterns
    Keep up to date on the latest PXI news at twitter.com/pxi

  • How can I have multiple inputs into the selector terminal of a case structure

    Hi everyone
    I have a question on how to wire multiple inputs in to the selector terminal of a case structure. 
    Currently, I have three switches, each switch determines different case. So if I switch the switch 1 is on, the numeric indicator will show 1. If the switch 2 is on, the numeric indicator will show 2, so on and so forth. However, the selector terminal will not allow me to wire multiply inputs into the case structure, I tried Bundle by Name, Bundle and Array to Cluster, but they did not work. I set the case structure with 3 cases, they are 1, 2 and 3.
    Could someone help me please. I have attach an image and the VI of the work I did so far.
    I have another question, is there a function which can toggle other switches to off when there is a switch has been toggled on.
    Thank you very much
    Tommy
    Attachments:
    Trial - Case Structure.vi ‏7 KB

    Tommy, attached find a cheeseball way of doing this that has given me a LOT of mileage over the years.  IT lends itself nicely to a couple of really good practices that NI recommend, but I have given you the bare-bones to "see under the hood".  
    The recommended practices:
    1. You can make this a nice tight sub-vi where you can put it into a core library of routines that you'll use over the years, even extending the logic to look only for changes, etc.
    2.  If you are thinking about Front Panel design considerations, you'll want to use arrays of controls where possible, as that's a nice neat way of containerizing your switch for both the FP and Block Diagram.
    Have fun.  I have TONS of these types of things, so feel free to PM me if you have any other needs.
    Wes
    Wes Ramm, Cyth UK
    CLD, CPLI
    Attachments:
    Boolean Switch Logic.vi ‏11 KB

  • Multiple functions in one button

    Good evening,
    Is it possible to run multiple functions with one button?
    For example: With a button to open and close an object?
    Thanks 

    Hi Rinku,
    This is an example for you:
    A Piano Key Control in C#
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Re: Multiple users on one home computer wanting to...

    Can a windows PC (Windows 7) be set up such that each User Account has its own (automatic) log in to Skype where ONLY that User's Skype details are visible, including their Contact List and settings, no-one elses?

    Hello Cosiena,
    And welcome to Apple Discussions!
    There are several ways to manage multiple iPods with one computer. For more information on these different methods and how to accomplish each, see this Apple support document.
    [How to use multiple iPods with one computer|http://support.apple.com/kb/ht1495]
    B-rock

  • HT204053 Link multiple devices to one account

    How do I link multiple devices to one master account for purchases with multiple usernames

    Hello,
    This is a great tutorial using a couple of free DW
    extensions.
    Check out the "Finished Gallery" example.
    You can easily change the settings so the images all appear
    in the same
    place.
    http://www.projectseven.com/tutorials/images/showpic/index.htm
    Take care,
    Tim
    "serestibi" <[email protected]> wrote in
    message
    news:fpiloc$ruf$[email protected]..
    > Hi, beginner here, can you tell?
    > I am trying to link multiple images (thumbnails) to one
    big picture frame.
    > So if you click the thumbnails, each will blow up in the
    same frame.
    > The easy solution would be to link them to a table, but
    it doesn`t seem
    > linkable.
    > I tried different slide viewers but I can`t personalize
    them enough.
    > Can I do something within dreamweaver to get this
    affect?
    > Please sombody help me!
    > Thanks , Tibor
    >

  • 4) Numerial input for a group of data

    LookoutDirect 4.5
    4) I have a table of hundreds of data, and all of them need a input. How can I make only one numeral input for all of them? That means I click any data in the table I can get to the same numeral input popup window and enter a number and it goes to the object I clicked on?

    Ryan,
    It doesn't work. See the attachment below.
    I tried many different expressions of the links, even I directly used DL1.V3100, none of them worked.
    I noticed that in some expressions the link wouldn't show up in the selection list of the Pot2 remote URL, mycomputer\process1; and if I click on mycomputer\process1 under network, the Lookout itself became dead, and I got to shut down lookout.
    If you have a PLC (may not be the same DL260 as I used) Please try to make this test program work. I doubt the dynamic link will work in this way.
    If it doesn't working in this way, please find another way to help.
    Thanks.
    Attachments:
    Process1.JPG ‏35 KB
    process1.lks ‏4 KB

Maybe you are looking for

  • How to get rid of finder bar in secondary display on Mavericks

    I'm use the secondary display but I don't want the finder bar to be shown how do I delete that option?

  • How do I keep track of dialog boxes?

    If I have a three question test, How do I keep track of the answers?

  • ITunes file processing erorr

    I downloaded an TV show from iTunes and it downloaded fine, but when it was trying to save the file to TV Shows (computer said processing file), it crashed iTunes. I e-mailed iTunes support and they put it back in my items to be downloaded, but it di

  • Displaying photo in J2ME

    Hi, I'd managed to use JSR-75 to open up the photo i took with a mobile device. The image is loaded into a byte[] array.... but when i try to create the image object using the createImage function, the application would hang there for a very long tim

  • Cannot set autotrace

    Hi all, I want to set autotrace on. So first I set following parameters in parameter file; sql_trace=true timed_statistices=true then I run the plustrce.sql in sys schema, and grant the role to rbi user. Later I Created the explain_table in rbi schem