Changing an output box in a case structure to an input box

Hi, I have been struggling with the following problem in Labview:
Hi, I was working on a wiring diagram in Labview and I was trying to
wire an absolute value symbol to the right border of a case structure.
The problem is that I get an output box (an white filled box with an
orange border) instead of an input box (an orange filled box). How
would I change the output box into an input box? I have tried Ray
Kong's method, which is to add a constant and that would make the box
solid. It worked only once but when I tried it on another output box
it did not work. Any suggestions would be appreciated. Please
include step by step instructions as I am still learning Labview.
Thank you
Muhammad Asfour

The box type will be appropriate for what you have wired to the box.
When you say you want an "input box", do you REALLY want an input box (ie, a
connection bringing a value from outside of your case statement to the
inside of your case statement) or do you mean that you want your output box
(a connection bringing data from inside your case statement to the outside)
to be solid orange? The output box will go solid orange when you have a
connection from EACH case to the box. Remember that a single output box
(usually on the right side of the case statement) must be connected to
something in each case of your case statement. It will be filled white
until all cases are wired.
Write back if this isn't clear of if I have mis-understood your situation.
Hope this hel
ps.
Jim
"Muhammad Asfour" wrote in message
news:[email protected]..
> Hi, I have been struggling with the following problem in Labview:
>
>
> Hi, I was working on a wiring diagram in Labview and I was trying to
> wire an absolute value symbol to the right border of a case structure.
> The problem is that I get an output box (an white filled box with an
> orange border) instead of an input box (an orange filled box). How
> would I change the output box into an input box? I have tried Ray
> Kong's method, which is to add a constant and that would make the box
> solid. It worked only once but when I tried it on another output box
> it did not work. Any suggestions would be appreciated. Please
> include step by step instructions as I am still learning Labview.
>
> Thank you
>
> Muhammad Asfour

Similar Messages

  • How to change the case structure to string input?

    Hi,
    I have the inner case structure that it will decide to set "DC Voltage" or "DC Current" mode. The "Output Function" contained the selection of function "DC Voltage" or "DC Current". So far it only work with DC Voltage not DC Current. My question is how do I change the case structure to string selector? When the output function is selected to DC Voltage then the case structure is selected DC voltage case. Please help Thanks.
    Attachments:
    test.vi ‏35 KB

    You don't really need to convert the value to a string? The problem is that the value of the individual ring items are not 0 and 1, as you assumed. The values generated by the controls are:
    DC Voltage: 1006
    DC Current: 1007.
    You can find this out by viewing the properties for the "Output Function" and going to the "Edit Items" tab.
    So, all you need to do is change the 0 to 1006 and the 1 to 1007 for your case items.
    By the way, your sequence frame serves no purpose.

  • How to implement Case Structure for multiple inputs to Pic Ring?

    So I have a reasonably simple program which I am almost completeed with. Basically the data of an array is read and then is indexed and a new array is created from the indexed data. And then I use Match Pattern to see if elements in the new array match certain words. And if they do then a number value is allocated to a Pic Ring at the end. And depending on the final number value the Pic Ring changes from one pic to another.
    However, I have the problem that I will be using multiple Match Pattern functions to compare elements in the final array, but I can't attach multiple Match Patterns and their subsequent logic statements to a single Pic Ring, only one. I've been trying to work this out by implementing a Case Structure or Event Structure. But the Event Structure isn't working and with the Case Structure, it is very messy with multiple True/False Case Structures inside of each other. Anyway, hopefully this all makes some sense. I'm attaching the VI program to this post. Thanks.
    Attachments:
    ArrayTest2.vi ‏495 KB
    ArrayTest2.vi ‏495 KB

    Obviously, you can only display one picture.  So then the question becomes which picture to show.  Therefore, you will have to create some sort of preference of one pattern over another.
    I would use a FOR loop so that you can loop through your available patters and their possible results.  Use the Conditional Terminal on the FOR loop so that you can stop the loop on the first match.  Then you just wire up the selected value for the ring outside of the loop.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Why FSK demodulator output different bitstreams in case of the same inputs of different lengths?

    Hi everyone,
       Recently I was trying to do FSK demodulation with Labview and my USRP2.
       I did the following two tests, but found a strange phenomenon:
       In the first test, I use the demodulator to demodulate a waveform of 18399 samples, where the signal occupies about the first 12000 samples, and the FSK demodulator outputs a bitsream of 1116 bits.
       The input waveform is shown in the following figure.
       In the second test, I use the demodulator to just demodulate the first 12000 samples of the waveform,  and I found that the demodulator outputs a bitstream of 705 bits.
      The input waveform is shown in the following figure:
       According to my understanding, as the input of the 2nd test  is the same as the first part of the first 1st test, the output bitstream of the 2st test must be equal to the output of the 1st test. However, they looks very different. In the first test, even the sync  sequence of bits cannot be found. 
        Can any one  help me explain why?  Thanks in advance!  
       In the attachment, I post the program and my test data.
    Attachments:
    questions.zip ‏506 KB

    Hello Anthony F,
       Yes, I use the modulation toolkit.But I encapulate it into a subvi. Sorry for that I forget to attach it.
    Attachments:
    sub_demodulate_FSK_data.vi ‏21 KB

  • How to get a case structure to execute only once in a loop

    I have a while loop that is monitoring temperature. Once the temperature meets or exceeds a given setpoint I want to start a timer. At this point I don't want to monitor the temperature anymore. That is, if the temperature should drop below the setpoint, I don't want to execute the case structure again when the temperture meets or exceeds the setpoint(the temp may oscillate about the setpoint for a given period of time). In any event, I need the case structure to execute only one time, not every iteration of the loop.

    You can put a local Boolean variable "Flag" inside that case structure and
    set "Flag" to False. Outside the case structure, use an "AND" function
    output to control the case structure. The "AND" function has two inputs. One
    goes to the comparison results between real temp and setpoint. The other
    inputs connects to the "Flag" variable. In this way, once you entered that
    case structure, the "Flag" will be turned to False, and then in next
    iteration, you won't get into the case again because the "AND" function will
    be False as your "Flag" is False now.
    Hope this helps.
    Rentian
    1. Inside the case structure, put a
    "BB Herman" wrote in message
    news:[email protected]..
    >I have a while loop that is monitori
    ng temperature. Once the
    > temperature meets or exceeds a given setpoint I want to start a timer.
    > At this point I don't want to monitor the temperature anymore. That
    > is, if the temperature should drop below the setpoint, I don't want to
    > execute the case structure again when the temperture meets or exceeds
    > the setpoint(the temp may oscillate about the setpoint for a given
    > period of time). In any event, I need the case structure to execute
    > only one time, not every iteration of the loop.

  • Feedback node from case structure

    checkLED.vi is my first rev of this. Then I realized I can incorporate the 345/348 selection into the case structure, which resulted in checkLED2.vi. However as soon as I did this, the feedback loop inserted itself. I don't understand why this happened and what it means. The string coming from the case structure is an INPUT to the two 34970 vis. There is no feedback going on here. If Labview sees this as feedback, why didn't it insert the feedback node in checkLED.vi?
    Attachments:
    checkLEDs.vi ‏23 KB
    checkLEDs2.vi ‏23 KB

    Look at the dataflow you have created by moving the strings into the case statement. The case statement requires data from the iteration terminal and from the VI in the sequence structure. The sequence structure requires data from the switch VI which in turn requires data from the case statement. This is a clear feedback situation that you did not have before.

  • How do i output multiple arrays from a case structure to create one larger array

    I currently have a vi that has one hardware input that i needed to take a measurement then be moved and take a similar measurement at a different point.  To accomplish this i used a while loop inside a case structure.  The while loop takes the measurement  and finds the numbers i need while the case structure is changed per the new measurement location.  I want to take the data points i have created in each case and output them into a single table.  I assumed to do this the best way would be to get the data from each case into its own built array and build a larger array but I cant get the information out of the case structure so that it all inputs at different places.
    thanks for your help
    Attachments:
    Array.vi ‏30 KB

    Hi Ross,
    attached you will find a solution for your table building problem.
    I would suggest thinking about program design - having the same case content in several cases doesn't make sense. I also would not want my user to press several stop buttons depending on choosen measurement...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    Array.vi ‏45 KB

  • I want to display strings which are in case structure ,into one text box

    hi,
    i am writing a vi, which has event structure inside that a
    case structure.
    i problem is , i have two cases,
    1) when the value is true it executes the true case, first it reads the string constant and second is the string indicator which is my out put.
    2) in the false case it does pritty much same.
    i want to display the inputs and out puts of different cases into the same text box that is one for input and one for output.
    Can some one help me.
    Solved!
    Go to Solution.

    Did u tried as Ravans suggested.
    Put the indicators outside of the case structures.  Wire across the borders of the case structure.  It creates "tunnels".
     I am not getting
    but it displays both result at a time. but i want
    to display the instruction first, to the user, so that they act
    according to the instruction and ,than i want to display the result.  
     Try this VI.
    Balaji PK (CLA)
    Ever tried. Ever failed. No matter. Try again. Fail again. Fail better
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
    Attachments:
    string display-1.vi ‏22 KB

  • Why does Labview insert quotations in the case structure selector box?

    I was building a case structure with an array of strings.  So, I copied the strings from the array on the FRONT PANEL directly into the SELECTOR LABEL.  My 3 strings have the form; to me, these are 5- character strings with spaces, or 7 characters if you count the spaces as string characters 
    A, B, C   
    A, B, D
    A, B, E
    So, when I copied and pasted them directly into the selector box A, B, C appeared as "A", "B", "C" and A, B, D appeared as "A", "B", "C" and then I got an error for selector values not unique.  Why didn't it appear as "A, B, C"?
    Why did it transform the string I pasted and insert the quotation marks?  I used no quotation marks in my array.  Does the selector label interpret commas as functional characters that require quotation marks??
    Thanks,
    Dave 

    dav2010 wrote:
    I was building a case structure with an array of strings.  So, I copied the strings from the array on the FRONT PANEL directly into the SELECTOR LABEL.  My 3 strings have the form; to me, these are 5- character strings with spaces, or 7 characters if you count the spaces as string characters 
    A, B, C   
    A, B, D
    A, B, E
    So, when I copied and pasted them directly into the selector box A, B, C appeared as "A", "B", "C" and A, B, D appeared as "A", "B", "C" and then I got an error for selector values not unique.  Why didn't it appear as "A, B, C"?
    Why did it transform the string I pasted and insert the quotation marks?  I used no quotation marks in my array.  Does the selector label interpret commas as functional characters that require quotation marks??
    Thanks,
    Dave 
    Actually in CASE STRUCTURE, any frame can have multiple values as 'Case Selector value' and these are separated by a comma. Also if you choose to operate a CASE STRUCTURE using string, it will automatically prefixs & suffixs quotes (") to that string.
    But you can enter  "A, B, C" manually and it will remain as it is. But if you copy and paste A, B, C, the CASE STRUCTURE will automatically change it to "A", "B", "C".
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.

  • Disable labview changing a constant that was wired to a Case structure

    Hi,
    When upgrading from Labview 7.1 to 8.2 I get the following warning:
        - LabVIEW 8.2 changed a constant that was wired to a Case structure to a hidden control to maintain compatibility with LabVIEW 7.1 and earlier.
    I have read the post describing why this happens:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=258528&query.id=18820
    Typically I have used a constant wired to case structures to comment out code, and therefore don't really care if the compiler doesn't load into memory.
    Is there anyway to stop Labview 8.2 converting constants wired to case structures into hidden controls?  E.g. As an import option?
    Thanks in advance

    I don't think there is a way to disable that upgrade feature, but it does not really matter, because the function remains the same. Just ignore the upgrade note.
    To disable code, you should now use the "diagram disable structure". It has the big advantage over your solution that the disabled code can be broken and the VI is still runnable. 
    LabVIEW Champion . Do more with less code and in less time .

  • White tunnel in a case structure at every output

    I´m working with a TCP READER in a case structure. But every output fron the case get white tunnel. What`s happening?

    A white tunnel on an output of a case structure indicates that the tunnel is unwired in at least one case. If you're using LabView 6.1 or 7, one option is to right-click on the tunnel and select Use Default If Unwired. But I prefer to wire to the output tunnels in every case: it removes any question about what value is presented to the case outputs.

  • How to make wave graph restart when the condition of case structure is changed?

    Exp: Condition of case structure a<b ( a: control, b: constant). A wavegraph puts inside a while loop , in True condition (a<b). How can I make the wave graph restart if a is changed?

    Aren't you confusin waveform graph and waveform chart ? If this is the case, you can clear a chart using the History data property node, fed with an empty array.
    Message Edité par chilly charly le 11-08-2007 01:57 PM
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Example_BD.png ‏1 KB

  • Case structure no false output

    Hey guys,
    To start off, I am very new at Labview.  I have posted about this project before but my professor has changed the assignment slightly.
    - Generate a random set of N points (x,y) between 0 and 100
    - Find the closest point to each point
    - Calculate the number of points with a closest point of less than D
    - Graph the points with the points with a closest point of less than D clearly marked
    So far I have manged to get everything done except for the last part, at least completley.  My approach was to create a case structure with < D as the requirement, if true build array if false I wanted it to do nothing, but I can't seem to do that.  I tried using a number ourside of the array size but that doesn't seem to work either.  Then I tried using a a shift register to do the same thing but had the same problem.  I could use some help if at all possible.  I have posted both codes below.  1_9 is the case structure alone and 1_10 is the shift register approach.
    Attachments:
    Assignment 1_10.vi ‏27 KB
    Assignment 1_9.vi ‏31 KB

    Not bad- monor tweaks set off with some color attached.
    NOTE use BD comments. Watch your data types (point closest should be an Integer type not a double) use increment rather than adding 1. kill the iteration indicators you are outo indexing off of an array generated with the Number of Points(N) control- there is no need to write N number of times to each indicator.  why you CHOSE to cross the wires into and out of the fourth loop baffles the mind
     EDIT: the SR should be initialized with an EMPTY array I just noticed that it has 1 element. that is a bug
    Jeff
    Attachments:
    Assignment 1_10_MOD.vi ‏26 KB

  • Case Structure Based on Changing Input Controls

    Hello. I am trying to create a control VI for a quad-copter. Right now I've managed to build a basic program that gets input from some sliders and transforms and sends it to the quad-copter motors through I2C and virtual serial port.
    The problem that I'm having is that I want to be able to control the engines either individually or in pairs, so I can achieve motion in all directions. But since I can't have multiple inputs at the same time for each engine, I think I might need a case structure. What I would like to do is have a scenario where depending on whether an input changes and how (either for an individual motor or a group), the case structure switches to that case and takes the inputs specified for that particular case. What I'm thinking is having 10 or so sliders, 1 for each engine, and then 1 each for groups like 1 & 2, 3 & 4 and 1 for all, and depending on whether they change and how, switch to the case where only those particular engines change speed.
    Can you please help me out with that? Thank you. 

    That is one way to accomplish it. I would probably use the event structure. It is not that difficult to use. It is very similar to the case structure.
    I would also caution you on comparing two floating point numbers. Due to rounding it is possible that you will subtract two values which are essentially equal but return a non-zero result. You should use the "In Range" VI and set some tolerance value which indicates the numbers are equal.
    One last item, do you want your shift registers to be unitialized? If they are unitialized they will retain the values from the last execution of this VI. You may not want that since I assume you would want your motors to be off in the initial state.
    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

  • HOW CAN I CHANGE MY CASE STRUCTURE ?

    I know that my case structure will bring in these results:
    SELECT
    DISTINCT CASE WHEN (V.LCL_ER_RECV_DT - ADD_MONTHS(V.IND_ER_PER_END_DT,3)) BETWEEN 0 AND 30 THEN '1-30 DAYS LATE'
    WHEN(V.LCL_ER_RECV_DT - ADD_MONTHS(V.IND_ER_PER_END_DT,3)) BETWEEN 31 AND 60 THEN '31-60 DAYS LATE'
    WHEN(V.LCL_ER_RECV_DT - ADD_MONTHS(V.IND_ER_PER_END_DT,3)) BETWEEN 61 AND 90 THEN '61-90 DAYS LATE'
    WHEN(V.LCL_ER_RECV_DT - ADD_MONTHS(V.IND_ER_PER_END_DT,3)) BETWEEN 91 AND 9999 THEN '91 DAYS+ LATE'
    ELSE NULL
    END DAYS,
    NVL(LCL_PERM_NM,'UNKNOWN')TOR
    FROM NCOER_STATS_VIEW V, LCL_ER_TYPE L
    WHERE L.MIL_CD(+) = V.LCL_ER_TYPE_CD
    AND v.lcl_er_form_cd = '4'
    and NVL(v.lcl_omit_from_stats_ind,'N') <> 'Y'
    AND v.psc_cd = '&&psc'
    and V.lcl_er_recv_dt > ADD_MONTHS(V.ind_er_per_end_dt,3)
    and nvl(v.lcl_omit_from_stats_ind,'N') <> 'Y'
    and v.lcl_er_type_cd not in ('G','Y')
    AND v.lcl_er_recv_dt >= to_date('&&rec_orig_dt','MMYYYY')
    AND v.lcl_er_recv_dt <= LAST_DAY(to_date('&&rec_orig_dt','MMYYYY'))
    DAYS TOR
    1-30 DAYS LATE ANNUAL
    1-30 DAYS LATE CHANGE OF RATER
    1-30 DAYS LATE RELIEF FOR CAUSE/EER SPECL RPT
    31-60 DAYS LATE ANNUAL
    31-60 DAYS LATE CHANGE OF RATER
    61-90 DAYS LATE ANNUAL
    61-90 DAYS LATE CHANGE OF RATER
    91 DAYS+ LATE ANNUAL
    91 DAYS+ LATE CHANGE OF RATER
    However how do I change the query or case structure to count each record?
    I want a count for each line. Do I need a group by clause?

    You can use something like
    SELECT days, count(days) FROM
    SELECT
    DISTINCT CASE WHEN (V.LCL_ER_RECV_DT - ADD_MONTHS(
    GROUP BY days

Maybe you are looking for