sous-schema

Hi all

I have a question about the "business structure."

I want to use a control "Tab" to select different sous-schemas in the structure of the case, and each sous-schema is labeled by string, such as 'tension', 'current' and 'power '.

But it always shows errors:

Structure of the case: selector values have bad type

Structure of the case: no case for selector values.

I was wondering how to solve this problem. Thank you.

Well, you don't really have to do it either. A tab is an enum, and all you have to do is connect to a switch case. Do not type anything in the value box. He will automatically name the cases.

Tags: NI Software

Similar Questions

  • order of sous-schema label z

    Is there a way to put the order of labels sous-schema plan? I realize threads I create will run under them, instead of course, leaving a Visual 'pause' in the thread.

    I'm sure that there is no way to change it... subdiagram labels will always be on top of son.

  • the label of sous-schema multiple line bug?

    Label sous-schema not be retractable at the time where the deletion of a line. I am doing it wrong or is this a bug?

    I've just updated to Labview 2013SP1

    Yes, looks like a bug... perhaps.

    Of course, you can simply grab the handle in the middle of the lower edge of the sous-schema label and resize it to where you want.

  • Block of sous-schemas to run in parallel

    I'm still new to LabVIEW, if this question is very probably stupid. But I am a little confused by the basics.

    We have a hypothetical test facility. To begin a measurement of what I need:

    1. turn on a couple of power supplies;

    (2 light up a cold room and set the temperature);

    3. While the temperature is defined but strictly after turning on the power supplies I need to do some upgrading/calibration with a couple of generators and a couple of power meters, and I want orders for such equipment must be sent at the same time.

    Well, LabVIEW is good in there, there are many structures I use to run this sequence: power meters installation... then other equipment orders. I can use the sequence of dish. Can I use nested case structures. But my question is: is there some way to just combine some sous-schemas to make them run together?

    To be more precise: I like the "place structure" for his appearance and behavior, but the description in the help leaves confused me a bit, if it's a good fit. Maybe there is a structure better?

    There are some ways more enjoyable to do things become more complicated, but essentially, this is what it looks like.  You can group certain Interior set VI a structure like below to ensure that they are made together.

  • Permutation of Interfaces of child object in a sous-schema control

    Greetings!

    I'm working on a project where I am trying to use a LVOOP magic.  My code is still a mess and accountable, so I'll try and keep this post direct and precise.

    My class tree is farily simple.  A parent class holds all the screws needed to replace and some common database information.  Each class of the child needs its own User Interface to run because each will have its own set of controls.  These controls to manipulate the internal settings of the object, and when the town 'Generate.vi' is called it displays text that the rest of my program then uses to complete the operation.

    My thought was that I could do a 'User Interface.vi' and 'Get User Interface.vi' as substitute it in my parent class.  Versions of these files children would then contain the necessary user interface, and the Interface.vi of the user would happen the reference to the Interface.vi of the user which would be then sent to the Sub panel and allows to get values in the final of the Interface.vi of the user when the user clicks on the "Generate" button in the Interface.vi of the user.

    This seems like a reasonable approach?

    I'm not sure I understand what you want, but this might be relevant.

    http://forums.NI.com/T5/LabVIEW/an-experiment-in-creating-compositable-user-interfaces-for/m-p/12623...

    http://forums.NI.com/T5/LabVIEW/A-more-successful-experiment-in-creating-compositable-user/m-p/12768...

    In addition, click on the links to see some more relevant info.

    Note that in general, it is claimed that classes should not export ISU because you can have different user interfaces (location, options, etc.).

  • How to save two sous-schema data two in one file?

    Hello

    I have a VI tensions from different measurement channels one after the other. How could save the average data two in one file in two columns? The vi is attached. Thank you!

    Watch the context-sensitive help and help for function file writing worksheet to know each connector for then detailed.  You have several things hanging and some things wrong.

    The entrance to the lower part is a Boolean value to append data.  You want it as a True constant since you want to write constantly new data in the file to each iteration of the loop.

    You can't 1 d and 2D connectors at the same time hung.  It is there to give you options.  If the 1 d link has it who uses data, otherwise it uses the connector 2-D data.

    What you want to do is to take the 3 pieces of data and integrate it to a 1 d table and that wire in the 1-D connector.  Connector 2-D leave blank.

  • different sous-schemas of a case of structures Concat strings

    I use a case structure, which has about 8-10 different cases and each case has a string constant. I want to show the strings in a single indicator. Suppose that if 3 cases runs first, then second and third then. Then, the indicator should show

    "first case".

    second case

    third case.

    initially the indicator should be empty and then as soon as the first case runs indicator should show "first case".

    After completing the first case, when the latter is running then the indicator should show

    "first case".

    second case. "

    and so on... Please help me.

    $agar wrote:

    Here, it is attached with 3 cases...

    Well, who does not seem very useful. Try to scale of 10 Boolean values!

    Here's a quick draft how this could be done. Modify if needed.

  • Machine simulation

    Hi, I create the program for the control of the machine. Process of debugging applications is not easy, especially because this could be done with the computer only. I would like to create a simulation machine VI. It takes all the outputs of enforcement, calculate the reaction of the machine and set the entries of the application accordingly. (The algorithm of simulation will be not perfect of course but for the very useful initial test.) If I can make the most of easy debugging without machine.

    Aaand now my problem: how to read the results of the application and write entries to the application (/ o variables both)? Another problem is that with the variables of e/s I'm not able to run the application on the development computer.

    ALIAS solution: all the "inputs" and "outputs" in the application are of unique process variables. Special simulation VI read "exits", makes the simulation and writes "inputs". The debugging process is finished I remove VI simulation and define all the types of variables in variable e/s alias. But it is quite intensivewith of hundreds of IOs work, especially if you have go to the debugging of simulation and back several times. Is it possible to change the type of variable of many variables at the same time?

    I want to know all the ideas, experience etc how do better... Another way...

    Please remember that my time to 'scan' app is about 1-5 MS the solution need to be light performace.

    is - it possible easily switch between e/s variables and system simulation somehow?

    The short answer is YES, if you have organized it correctly.

    DISABLE CONDITIONAL structure will do it for you.

    Basically, it's like a structure of the CASE, except the case SELECTOR is a symbol that is determined at COMPILE time.

    In your project, pop up on the TARGET, and then select PROPERTIES.

    Choose the category SYMBOLS PAROLEES DISABLE.

    Enter ENGINE SIMULATES or something in the box AGAIN SYMBOL and TRUE in the NEW VALUE box, and then click Add.

    You now have a new symbol to use.

    Place a box CONDITIONAL DISABLE on your code, around the part that needs to be disabled if you are simulating.

    Who will be your default code--the part NOT simulated.

    Pop - up on the structure, and then choose Add SOUS-SCHEMA AFTER.

    The STATE must in this case be SIMULATED ENGINE == TRUE.

    Now put your simulation code in this case.

    You can have as many of these as you want - they all empty when you change the value of SYMBOL.

    Don't forget, this isn't COMPILE, time of RUN time, your code will contain ONE case or the other, but not both.

    You don't want to put one around each variable I/O, which clutters just to the top of the diagram.  Put all your macros in one place and condition that put all your outings in another place and that condition.

  • Change the condition in the structures of the event

    Hi all

    I am a student doing a project. I am very new to labview and I don't really know much of the function in labview. In any case, I have this timer made by using the structure of the event if I'm not mistaken (I downloaded this timer among the post on this forum). This timer will start at 0 sec, count up to 20 years, then stop. So what can I do to change the time of the end of this timer? Let's stop at 50?

    The program is attached. Please please explain or change the program and attached as a response. I tried to understand the help function, but still do not understand.

    I thank very you much in advance!

    Hello

    Thanks for your inquiry. The attached VI uses programming structures: while in the loop, the structure of the event and structure of the case. You'd have to change is in fact the case structure. Before going to, let us go through the different structures. Open the block diagram by going to the Menu bar of the front panel and go to the window-> open diagram.

    The while loop resembles a Do loop in text-based programming. It runs until a condition is met. Since the attached VI, it stops running when you click the exit button.

    The event structure is a structure that consists of sous-schemas. The structure meets the interactions with the objects of the front panel. For example, if you click Start or stop in the façade, the structure of the event will be a case that corresponds to this interaction. In the attached VI, the case, which corresponds to the interaction with the button start or stop, called 'Start', 'Stop': change the value. Each box contains an event handling routine.

    Structures of the case are like spending statements in the programming of text. Take a look at the 'Start', 'Stop': value change event. It contains a routine which consists of a box structure. The case structure meets the called Start input terminal (which is in fact the Start button on the front panel). The case structure switches between cases according to this entry. To display the different case just browse the structure of the case by clicking the left and right buttons. There are only two cases: true or false, as the entrance is a Boolean value.

    Now let's take a look at the VI. Take a look at the case "Timeout" of the structure of the event. This is where the change should be made. Change the structure of matter by editing the case. Change the numbers in the structures of the case: ... 20000 to ... 50000 and 20001 at 50001 This should do the trick.

    Kind regards

    Alan Bong

  • Structure of cases only the execution of a case

    (Again), I'm trying to control steps ThorLab, LTS300 and MTS50-Z8. I wrote the attached program for this. The program essentially starts communication with stadiums, made a few moves with them, then disconnects them. I have asked me to include a button 'CANCEL' or 'STOP IMMEDIATELY', just in case where something goes wrong with the stages, that termiantes of the communication with the stages immediately. Stop key immediately in the vi below done stop the program when you press on, however, I was expecting the program to run the routine of movement when the button has not yet been activated. But nothing happens. Could someone explain to me where I'm wrong. I've also included images of the case of true/false for the button and the sous-schemas that should trigger the button. I'm afraid that it is very simple...
    Thanks in advance

    bockdoug wrote:

    Makes no sense to me!

    Rules of data flow:

    1. no code can run until it has all its entries

    2. no code will display anything up is finished running

    3. a loop cannot go through all that she has not completed running

    So what happens is you have an addiction to data between the loop and the structure of the case.  The structure of the case cannot run until it has an entry in the loop.  But the loop will not release its value up is finished running.  And the only way to stop this loop (and authorize his release must be sent) when the termination of the loop is set to TRUE.

  • delay on the program

    When she gets the value I want, the program stops, but the robot continues to go for a second, then stops completely, how to get rid of this delay?

    Hello

    The image you set does not provide much to go off of, but it seems you could use LabVIEW for Lego Mindstorms.  If this is the case, I recommend posting on specific Mindstorms forum here:

    LabVIEW for LEGO MINDSTORMS and LabVIEW for education

    http://forums.NI.com/T5/LabVIEW-for-LEGO-MINDSTORMS-and/BD-p/460

    Providing the VI you use rather than a picture of the block diagram will allow people to offer the best advice.  It seems that your VI is built to stop when the sonar function returns exactly '40', but there is no way to discern what your program will do when this happens since the screenshot you provided because the sous-schema hidden within the structure of the case.  Try to post the code you have written as well as a clear description of what is the current behavior of your robot and you want it to do.

    Kind regards

  • several mode sequential slave modbus w/r

    Hello

    Looking for a few good tips.

    I use the library or labview modbus RTU mode, using a USB converter to 485. The library works very well as expected and performs all read/write operations that are implemented in the library.

    I'm trying to design an application to control 20 slaves to perform a simple operation, read a record of each slave, assess the value and increment a counter, if the value read is a '1 '.

    Now the application must be automatic, kind of push button 'Start' and then run sequentially writing to each slave, wait 5 minutes to perform the operation and then read each one updated register, day the meter... and vice versa... continuously until you press "stop".

    I started to prepare the application with a flat sequence structure, with a first diagram of sub containing the operation of writing and then wait 5 minutes and the second overtime scheme would undertake reading and update counters.

    (1) first problem I encountered is very stupid, how to increment the registry value to treat slaves sequentially in the sous-schema first effectively.

    Counsel on how to do it?

    I tried a loop (see table) and the use of the index of the iteration to try to increase the address register, but I struggle to convert the data type... is there an easy way to do it, for example to ensure I send the command twice to each slave?

    Ideally I would like to send command to #1 slave and the slave then #2.etc... but I don't know how to do this.

    (2) how to stop running for 5 minutes to let the slaves work and then proceed to read?


  • Display different results with if statements

    Hello

    I'm doing a very simple logic but can't figure out how to do visually in LabView. Please take a look in the file. As you can see on the right, I have a group of 9 possibilities, each of them being true I want the COMPOUND NUMBER indicator to show a different result. I tried to use the structure of the case, but I could not the icon of the indicator in other sous-schemas. I also thought about putting the results in a table and choose the element whereby the possibilities.

    But I'm sure there is an easier way. Help, please.

    Thank you

    LD

    You put the indicator of terminal outside the structure of the case.  Then each case son its respective result in the tunnel leading out of the structure of the case to the indicator.

    (Alternative, but not recommended, use a local variable of the indicator in all other cases, if you use the terminal in one of the cases.)

  • stop the loop inside while loop

    Hi all

    Is there a way to stop a loop within a while loop? Error-free program will stop running when you press the stop button, but I want to while loop continues to run in and only for the loop stops when the condition is met.

    Thank you!

    Hi TayAus 1.

    If you want to run the execution once? Maybe something like below? The code inside the structure of events can only run when the event source is triggered. For example, the code in the digital works only when it detects a change in the numerical value (just an example).

    When the button is selected, it should raise the event to stop as shown below:

    If you want to create the event source, create the structure of the event > right-click on the frame and select edit events dealing with this... > This should open Edit events.

    The example below is that I put the event source for the change in the value of x and x 2.

    So when x or x 2 value is changed, executes the code in the sous-schema event shown below.

    Warm greetings,

    Lennard.C

  • How will I know which encryption scheme is used for a partially encrypted connection?

    When you access a site that contains unencrypted items, technical details by just looking at says "Connection partially encrypted". Although it is useful to identify it, is what I would really like to know which encryption scheme is actually used for the encrypted page elements. Is there a way to do it, and, otherwise, it would be something that could be considered as a feature?

    The images show joined the difference in the information available for encrypted partially connections.

    It will be possible to inspect this information via the "network monitor" in the development tools of firefox in a next version of the browser (on firefox dev edition which is already implemented).

Maybe you are looking for

  • eHome IR transmitter fails to wake from sleep

    I am running Windows 7 64 bit on an HP box bought less than a year ago.  A Hauppauge 2250 tuner card is installed.  The tuner card is connected to my Comcast Cable box by an IR transmitter.  The system worked well for months, but now I find that the

  • How can I stop an update that is frozen?

    the update has suspended on 3 on 3 to 0%. I turned off my laptop, running down the battery, but it has no effect.

  • The computer crashes when I plug in the ethernet cord

    I'm having a problem with my laptop. It will start and run fine without the ethernet cord. As soon as I plug it to the computer, a window appears and tells me that Windows has experienced a critical error and stops. If I unplug the power cord, it wor

  • Number of characters for text areas

    Hello I was wondering if it is possible to add a number of characters (in the corner of a text box), as does the native application of Twitter, but so that it shows the number of characters that are in the text box, as it is typed. Is it possible to

  • can we have more than 1 object persisted in the blackberry application

    Hi all I am a beginner to the notion of persistent object please can I know if may be have more than on an object for an application, as in the concept of RMS us would create more RMS 1: an application with a different name, so in the same way that w