Conditional terminal options?

Hi guys,
Sorry if this has been asked before, I couldn't phrase it in a way that produced results in the search.
I want to be able to have a conditional input on a SubVI. You can have the terminal being "Required", "Recommended" and "Optional" but I want one terminal to be "Required" and if that is true then another terminal will be "Required" but I don't want it to be "Required" for general use.... Is there a funciton that does this within labview?
Added a poor picture to try and demonstrate what I mean.
I could write some default things in the code to get around it not being wired, but thought it would be good to have this option?
Many Thanks
Pete
Pete
Systems engineer (CLAD LV2013)
Attachments:
Terminal example.PNG ‏6 KB

Is this for your programmers? If so, I would just make two VIs, one with the terminal required and one with it optional, just label the icon so the programmers can easily choose which VI to use (since they would be the only ones to see the code, anyway).
Is it for the users? If so, I'd make a parent VI in which the determining terminal leads to a case statement leading to one or the other of the above VIs. This would lead to a division of functionality into a VI and a subVI, but that may make things easier on you, anyway. One good thing about it is that you can make the subVIs have slightly different front pages where, in the one which needs no input that particular control is either invisible or just not there.
Cameron
To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.
To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
LabVIEW Unit 1 - Getting Started
Learn to Use LabVIEW with MyDAQ

Similar Messages

  • While loop and for loop condition terminal

    Hello friends,
    I am using labview 8.6. The condition terminal of the while loop and conditional for loop is behaving in just the opposite way.
    When i wire a true to the condition terminal of my loop, the while loop continues to run when I click on run. when I wire a FALSE, it stops.
    Is there any setting change that I have to make it to get it work properly.
    Please suggest on this.
    Thanks and regards,
    Herok

    Please do NOT attach .bmp images with the extension changed to .jpg to circumvent the forum filters!
    Herok wrote:
    I am sending you the VI. I am not sure if this would help you because only in 2 computers this behaviour is seen. In others, it works as it is supposed to work.
    Whatever you are seeing must be due to some corruption or folding error. It all works fine here.
    To make sure there are no hidden objects, simply press the cleanup button which would reveal any extra stuff (which is obviously not there). Does it fix itself if you click the termination terminal an even number of times? What if you remove the bad loop and create a new one?
    Could it be you have some problems with the graphics card and the icon of the conditional terminal does not update correctly?
    Whay happens if you connect a control instead of a diagram constant?
    What is different on the computers where it acts incorrectly (different CPU (brand, model), #of cores, etc.) 
    LabVIEW Champion . Do more with less code and in less time .

  • Where condition with optional fields in select statement

    Hi,
    In a function module I have to fetch data based on 7 fields out of which 6 are optional.
    If we won't enter values for optional fields it will take default values as zeroes .
    So this is not fetching data. But for some fields some values has zero values.
    How to solve this condition?
    Regards,
    maha.

    Hi,
    For those import parameters for which its mentioned as optional, use like condition in the where clause of select statement in the function module.
    try like this,
    concatenate pfield2 '%' into pfield2.
    concatenate pfield3 '%' into pfield3.
    concatenate pfield4 '%' into pfield4.
    concatenate pfield5 '%' into pfield5.
    concatenate pfield6 '%' into pfield6.
    concatenate pfield7 '%' into pfield7.
    select *
    from db table
    into itab
    where field1 = pfield1 and
               field2  like pfield2 and
               field3  like pfield3 and
               field7 like pfield7.
    Now even if the optional fields are blank, data will be selected
    Regards,
    Vik

  • Repetitive PDF creation issue in PREVIEW (Terminal option to not save?)

    i have a real annoying issue in Preview which i generally find to be a model of efficiency. it is for pdf creation and goes like this:
    i scan 50 images into Preview in order to create a pdf to send to someone.
    i rotate them and make sure they are properly ordered and oriented.
    i select them all and go to print pulldown menu item
    then i select the pdf button at the bottom lower left (this is redundant and would be really nice to eliminate by providing a PRINT TO PDF pulldown)
    anyway, then i create the pdf and i try to CLOSE OUT of Preview.
    however - since i don't need the images any more i am not MANUALLY SAVING ALL THESE IMAGES by CLICKING SAVE on each of the 50 images (this is a pain too and would really be nice to fix)
    /instead/ what i have to do is to click DELETE on all 50 images in order to simply close out of Preview after having saved my PDF.
    is there a better way to do this and if so what is it.
    also, why isn't preview smart enough to not act like adobe software and to give me a "Don't Save All" or "Delete All" button instead of giving me carpal tunnel confirming this on each image.
    is there a Yes <> No switch in Terminal that will turn this off??

    You can open the PDF in Acrobat and save to Acrobat 4 compatibility, either through optimize or preflight. I would also ask the client why they want Acrobat 4 compatibility.

  • ViewObject : Conditional Join Option in ADF

    Hi,
    I have a viewObject A and B which are connect by viewLinks from 1 to * relationship. So it is certain that whenever i make a call to this view Object it will have join operation also been called. But my requirement or test is to have something that does conditional join when required. For example i have a search form with a checkBox that is for weather to include the join or exclude the join. and result is shown in the table below according to whether a checkbox in search form was checked or not.
    => I came up with Dynamic SQL query which might solve my test case but i am wondering if there is best adf ways to do that... Also i am concern about performance since i will be dealing with huge data.
    Thanks
    jdev :11.1.1.3.0
    Edited by: 896719 on Jan 9, 2013 12:47 PM

    Hi
    Excuse me,My English isn't very good.
    you can set bind variable through EL, you should add Depno from Dept VO to the page binding and then set it to the bind variable
    but After you choose Deptno you should run the second View Obj(Emp VO) through bean.
    Habib

  • Conditional Loop Terminal and Autogrow

    When changing a for loop terminal from indexing to conditional, the for loop and any containing structures expand even when they are not set to Auto Grow.
    When selecting multiple conditional tunnels and and choosing Vertical Compress from the Distribute Objects menu, the tunnels are compressed as if they don't have condititonal terminals.
    Are either of these bugs known or corrected in LabVIEW 2013?  I could not find anything on NI.com when searching for "conditional tunnel autogrow".
    Thanks,
    Matt
    Attachments:
    Conditional Terminal Auto Grow bug.vi ‏6 KB

    Matt,
    A Very nice example of unexpected behaviour!
    Steps to reproduce:
    Open Matt's attachment in LabVIEW 2012  (12.0f3 Windows 32 on Win 7 64)
    Right-click the loop and verify Autogrow is not checked
    Right-click the top output tunnel and select Tunnel mode>>Conditional.   Loop does not respect the autogrow setting! 
    Lasso both output tunnels and Ctrl+D (or optionally, click Distribute items>>Vertical Compress)  Conditional glyphs are not respected in allignment
    Select the "Top" tunnel and Ctrl+Shift+J (Move to back)  What kind of tunnel is that now? I'd really hate to debug that one.
    Really Really hate to debug that one! Run VI Analizer! No overlapping objects!
    Sounds like a small oversight-- but a deadly potential for breaking code that is impossible to find without a divining rod!
    BOLO (Be on the lookout) for this type of bug.
    Jeff

  • OBIEE 11g : Conditional formatting in Chart view based on different column

    Hi ,
    I would like to add formatting to the bars based on another column.
    Ex: I just want to highlight bars(metric) when it is less than target value.
    We have conditional formatting option in charts but , its working on the same column but not comparing with other columns.
    Thank you..

    Hi, If you have column A and column B , and for example you want the values of column A to get formatted if the the correspoding value of column B less than a specific value. You just go to Criteria -> Get to Column A -> Column Properties -> Conditional Format -> Add Condition -> Choose your Column B , and then make sure the condition is " Less than the value you want"
    Now, In case you want the values of your column A to be formatted if they are less to the corresponding value of colum B, Well, I don't think it is natively integrated, but still, here is an idea :
    You drag again your column B , so that in Criteria -> Selected Columns , you'll have the columns A - B - B , then, you go to the newely added B Column -> Edit Formula and modify the formula to be ColumnA Minus ColumnB.
    Then go back in selected columns to your A Column -> Column Properties -> Conditional Format -> Add Condition -> Choose now the new column ( ColumnA Minus ColumnB ), and then make sure the condition is " Less than the value *0* "
    You can later, go and hide the colum A Minus B from Edit View in Results.
    Hope this helps.
    Cheers
    Salma

  • Does Conditional Formatting does not work in HTML report editor - BO 4.1

    Hi
    I have just upgraded to BO 4.1 from BOXI 3.1
    I see conditional formatting option is grayed out for me in BO 4.1
    I dont have java installed and running launchad on HTML (Preference ->WEBI-> Modify Report -> HTML )
    Is there any relation between Applet option and Conditional formatting or is there anything wrong with Access which i need to correcr explicitly as compared to BO 3.1 ?

    Hi Saurav,
    This is expected behavior; We can modify the Conditional formatting only though Applet mode or using Webi Rich Client.
    For more feature differences between Viewers go through following link;
    http://scn.sap.com/community/businessobjects-web-intelligence/blog/2013/12/16/feature-differences-between-the-web-intelligence-clients-bi41-sp02
    Regards,
    Veer S.

  • Issue with Select options in select statement - ABAP Question

    Hi
    I am facing an issue with select options. Select statement is returning sy-subrc as 4.
    I wrote the program as below:
    SELECT-OPTIONS:
    s_kunnr FOR bsad-kunnr,
    s_lifnr FOR bsak-lifnr,
    s_gjahr FOR bsad-gjahr,
    s_bukrs FOR bsad-bukrs,
    s_saknr FOR bsad-saknr,
    s_budat FOR bsak-budat.
    In start of selection I have written the select statement as
    SELECT * FROM bsak INTO TABLE lt_bsak
    WHERE bukrs IN s_bukrs AND lifnr = s_lifnr AND gjahr IN s_gjahr AND budat IN s_budat AND saknr IN s_saknr.
    In selection screen I have not entered any values and executed the program. I am not getting any result. When I debug that, sy-subrc is 4 at above select statement. But table has records.
    If am removing the "lifnr = s_lifnr " condition in select then select is returning values.
    I am not getting where I made the mistake. Please suggest.
    Thank you
    Hanu

    Hi,
    The problem here with where condition select option lifnr = s_lifnr.
    Use below select query.
    SELECT * FROM bsak INTO TABLE lt_bsak
    WHERE bukrs IN s_bukrs
        AND lifnr     IN s_lifnr
        AND gjahr   IN s_gjahr
        AND budat  IN s_budat
        AND saknr  IN s_saknr.
    s_lifnr is a select option and you are passing it as parameter lifnr = s_lifnr.
    if you want to pass this s_lifnr as single vale then pass in below mentioned way.
    lifnr = s_lifnr-low
    BR,
    Vijay

  • BPM- Switch Condition ?

    Hi All,
    I have a question regarding the usage of Switch condition (Like Option) in BPM.
    For Example I want to give a condition such that I should pass all the messages starting with 'J' followed by any letter.
    Thanks in advance

    The Operator that you are talking about is the Contains Pattern...
    Have your Left Operand the node that you have to impose the condition on
    Middle Operand as the Contains Pattern
    Right Operand as Constant and it should be
    * J  (or J* )
    just check it not quite sure......dont have an access to 7.0 right now
    Check with this
    For more info refer: http://help.sap.com/saphelp_nw70/helpdata/en/67/49767669963545a071a190b77a9a23/content.htm
    Regards,
    Abhishek.
    Edited by: abhishek salvi on Jul 29, 2009 9:38 AM

  • Capturing data instantane​ously after condition is met using 2 DAQ cards

    Hi all,
    I am wanting to sample a pulse and a sine wave at a low frequency of 1 kHz point by point sampling and upon a condition being met - the leading edge of the pulse being greater than a certain value - I the want to take a certain number (here 270) of samples of the sine wave at 50 kHz, multiple samples. I am doing this within a case structure and using a separate DAQ card. 
    The problem is that when the conditon is met is does not capture the data at the higher frequency straight away. It misses part of the sine wave before commencing capturing the 'window' of the 270 samples of the sine wave at 50 kHz. I want to know if there is any way of speeding this up? I am aware that using an FPGA could help but I don't have access to one. 
    The other solution would to advance the condition, i.e advance the pulse train by a certain amount so that I compensate for the delay in activating the high freq capture. I would need to set up this advance of the pulse train so that, after the delay in activation, it captures the data exactly where it is required to. What would be the best way to do this? I could delay the pulse train by a certain number of samples/ or delay the sine wave, or I have read that you can use the sample timer/counter within the DAQ card to change the 'trigger of the pulse train'. How would I implement this?
    Attached is my vi. I would be very appreciative if you could help. 
    Attachments:
    2 DAQ cards Low and High Freq Sampling.vi ‏29 KB

    I do not have DAQmx or any suitable DAQ devices so I have not tested this.
    This is a start on cleaning and speeding things up. Note that writing to the front panel indicators at 1 kHz will not work because the screen update rate is on the order of 50-100 Hz. Also charts take a considerable amount of computation beacuse they need to (1) store data in the internal buffer, (2) erase old data if the buffer is full, and (3) (slowest) recalculate all the pixels in the display for the updated data. The cart should be moved to the parallel loop. The condition True boolean will only be true for about 5 ms out of each 100.  Look at the 5 ms boolean.vi  attached. It runs close to 1 ms per iteration. The boolean is true about 5% of the time but I never see it change. Remove that boolean from your VI.
    With continuous sampling on the pulse channel and reading 1 sample every millisecond (assuming you get that fast) when the high speed sampling occurs it takes 5.4 ms to acquire the 270 high speed samples. So, ten times per second the loop takes >= 6.4 ms for an iteration. The next sample it reads from the pulse channel is the one which was measured (acquired) at 1 ms after the previous sample. Thus, this data point is read ~5.4 ms after it actually occurred. The next time you detect a pulse, it will be 5.4 ms late. The second one will be 10.8 ms late. Eventually you will get a buffer overflow, but your data will be useless long before the error occurs.
    The Dual Sampler Simulator.vi shows a possible approach to the issue. It simulates sampling both channels at high speed.  I generate both a sine wave and a square wave and sample both at 50 kHz. It simulates reading 4000 samples at a time (equivalent to reading 12.5 times per second or every 80 ms). The square samples are then processed for the transition using the boolean Implies function. I do not recall whether the Conditional terminal was available in LV2012. I did not get an error when saving for previous version so I think it will be OK. The same thing can be done with a while loop with some extra logic.  This does not handle the case where the transition occurs at the boundaries of the 4000 sample segment. To handle those cases use a shift register on the outer loop to pass the needed samples to the next iteration. The 800 ms Wait makes it run slower than "real" time but allows you to see what is happening.
    Lynn
    Attachments:
    2 DAQ cards Low and High Freq Sampling.2.vi ‏26 KB
    5 ms boolean.vi ‏10 KB
    Dual sampler simulator.vi ‏15 KB

  • Reports - Passing checkbox values and conditional column visibility

    Although I've been using Oracle databases for many years, I've to admit I'm rather new to APEX. I'm building a first prototype project to convince our project leaders and managers of the usefulness of the product for future projects (as for visual Database interfaces where the accent is on forms and reporting, it will often be faster and less expensive to build an APEX application instead of a full blown Java or C# webapp).
    I'm however encountering some problems.
    Let me start with a quick description. I've the following parent/child structures:
    Provinces > Cities > Intersections > Loops > Loop Detections.
    I basically want to make a report on the loop detections. Now, considering we'll have many thousands of detections a day, I made kind of a drilldown structure. You first choose your province, then the city, then the intersection and finally the loop. I didn't use lists to make the selection. Instead I made a (classic) report for each part as this allows me to give detailed information for each part. In each report, I made a link on the identifier. For example, when I select a province (by clicking on the link), I pass the province identifier to the cities report and use it in the query to limit my report to those cities for the given province. I repeat these step for the different parts, which in the end, gives me the loop detections for the selected loop. The good news is all this works fine. The person who'll be using this application however made a suggestion and asked if it would not be possible to select different loops and as such get the detections for several loops (the rest of the application stays the same). This however means I cannot use the column link anymore. Now, I was thinking in the direction of a checkbox. The column link is still there, but the user would also have the possibility to select several items in the report. I managad to add a checkbox to the report, linked to the loop identifier column. That's not exactly difficult. I cannot figure out however, how I can pass the selected identifiers to the next report (detections for the selected loops) and use it in the underlaying query of this report. The problem is, I don't know how to pass the checked values to the next page and how to use these values in the report query of that page. I suppose this must be possible, but I couldn't figure out how. I tried playing around with APEX_APPLICATION.G_Fxx and such. Remember I'm a newbie and this seems to fall under more advanced features.
    I've uploaded images of the 2 concerning report pages for illustration:
    http://img96.imageshack.us/img96/1497/apex01.jpg
    http://img140.imageshack.us/img140/9868/apex02.jpg
    A second point that's bothering me is the following. In the loop detection report I show a colum link (I picked an icon instead of the column value) for each row. I also have a column that shows the number of detections for the given loop (and day). Now, for some loops, there are no detections for that given day. As such, there's no point in selecting this loop, as the result will be an empty report. However, I still want to show the loop in the loop selection report, as it's still present (it's not as if it suddenly disappeared). Sure, no big problem and most users probably have sufficient intelligence to figure this out. However, it would be nice if I could make the icon (colum link) visible only for those loops that have detections, or in other words, for those records where number_of_detections (underlaying column COUNT) is greater than 0. I couldn't figure out a way to do this either. The Conditional Display option for a column didn't really offer me a solution here.
    Before I forget, I'm using APEX 4.0.1 on an Oracle XE database.
    Any tips or suggestions would be welcome! :)
    Thanks.
    Erwin

    Hi,
    You mean something like in this sample
    https://apex.oracle.com/pls/otn/f?p=40323:55
    You can store checked values to collection and use it then in another report where clause
    See e.g. this post for how you can store checked rows to collection
    Re: Need help with APEX_Collection
    In sample DEPT report query is
    SELECT
      CASE WHEN EXISTS(SELECT 1 FROM emp e WHERE e.deptno = d.deptno) THEN
        APEX_ITEM.CHECKBOX(1,c.c002,'onclick="saveDeptChk(this,'||c.seq_id||')"','true')
      END AS row_selector,
      c.c002 AS checked,
      d.DEPTNO,
      d.DNAME,
      d.LOC
    FROM dept d,
      apex_collections c
    WHERE c.collection_name = 'DEPT_CHK_COLLECTION'
      AND d.deptno = c.c001And EMP report
    SELECT e.EMPNO,
      e.ENAME,
      e.JOB,
      e.MGR,
      e.HIREDATE,
      e.SAL,
      e.COMM,
      e.DEPTNO
    FROM emp e,
      apex_collections c
    WHERE c.collection_name = 'DEPT_CHK_COLLECTION'
      AND c.c002 = 'true'
      AND e.deptno = c.c001Regards,
    Jari

  • BADI for Me21N - Condition types

    Hi All,
    wat ever condition type given in the header should be copied to all the items in the item level. then they want to change the condition type at item level for one or two items rest all are same like header condition types.
    see we have a condition type optioned as header as well as item condition type So I have given this condition type in the header of PO . It will be automatically copied to all the items in the item level
    right
    Now for a selected item like let suppose third item i want to delete one condition type and want to give a new one for this it is not allowing me
    Is there Any BAdI / Screen Exits which will allow me to copy the header condition type to all the items in Me21N and also it should allow me to Delete or modify that in the Item level
    Awaits for the reply  .......................
    Its a high priority ticket
    Pls Respond
    Thnx in Advance
    Regards
    KAMAL

    Hi Kaml ,
    have u checked with ur functional pplz abt the possibility of doing it thru Config ?, i think they can do some value addition in this .
      if you want to access those condition data u can  try  in these user exits but i'm not sure whether they can help u out in this requirement.
    SPRO->MM-->Purchasing >Conditions->Enhancements.
    regards
    Prabhu

  • Oracle BI Answers Conditional Formatting

    Hi,
    Im using Oracle BI Answers and I am trying to set the colour conditioning function on the following graph:
    On the X axis I have company branches, on the Y axis I have sales figures. The two values that I have projected on the graph are sales figures for the current month (first bar - bar A) against sales figures of the same month last year (second bar - Bar B). My requirement is to condition the colours on Bar A so that for each branch if Bar A is equal to Bar B, the colour for Bar A should be amber, if Bar A is greater then Bar B for each branch the colour should be red and if the Bar A is less than Bar B, the colour should be green. The colour on Bar B is always grey. I tried using the "Format Chart Data" setting on the Chart, and when I try setting the condition for Bar A, the only options I am given are the numbers on the Y axis; I cant seem to set a condition for Bar A against another variable - Bar B for each of the divisions on the same chart.
    Any ideas how I can resolve that? Thank you in advance.

    Thank you very much for your suggestion. I am having difficulties with the fact that the helper column has different values for each branch/division, and the column A cannot be conditioned against the helper column as it is not a constant value, but several different values. Also, if I hide the helper column, its values would not be shown in the conditional formatting option.
    Do you have any ideas?
    Thank you in advance.

  • Dolphin -- Change Terminal from Konsole [Solved]

    I am running Openbox and using Dolhin as my file manager. I like the prorgram but I perfer Gnome-Terminal.
    So I wanted to change the shortcut to open a terminal from Konsole to Gnome-Terminal but I can't seem to find the configuration file to change. 
    Any ideas ?
    Thanks in advance for your resonse.    
    Last edited by jv2112 (2013-01-17 00:53:29)

    jv2112 wrote:
    Thank You both for your replies. I was actually looking to change the default terminal used by Dolphin itself not my openbox menu.
    Like in other file managers if you select the terminal option it opens in the directory you are in. In Dolphin it is F4 but there is no option to change from 'Konsole' to any other termnal. 
    PS :
    qinohe -- Cool Avatar
    You were not that clear..
    offtopic:
    Well thank you, it's Mimas, a moon circling around Saturn!
    If you want to know how this 'pacman' image arose,
    visit this site from NASA!
    P.S. Normally I won't react in a 'Solved', but now I had to..

Maybe you are looking for

  • N93 Display Problem

    Hi guys: I'm posting this message in hopes that someone out there will be able to give me a hand with my N93. I'll start the story RIGHT from the begining and in future will send people back to this location to read it as I'm fed up repeating it to d

  • OEM GRID AGENT

    hi, I have already installed OEM 10g Grid Control OMS on my linux sever which also has EBS R12.1. I want to manage our EBS 11i which resides on another server I downloaded the Linux_Grid_Control_agent_download_10_2_0_2_0.zip file from OTN, and put it

  • Configuring Disk for ASM in a Standalone environment

    Hi, I am attempting to install ASM for the very first time ! I am installing ASM in a Standalone Linux 6 environment. I am following CH3 of the 11gR2 Database Installation Guide. I have installed the Oracle ASM packages and have configured ASM. I am

  • Help!! order can not be carried out

    Hi all, I am trying to create a shoping cart with a shop on behalf ID and when I press the order button I receive the following error message: Line1: Partner Goods recipient not found and below that there is a warning message that says: The use of th

  • HT204368 No Bluetooth devises appear while IPhone is trying to detect, what's wrong ?

    No Bluetooth devises appear while IPhone is trying to detect, what's wrong ? In addition the Bluetooth sign on the upper part of the IPhone appears only when I enter the Bluetooth setting. Is this part of IOS 6.1 changes?