Control/Indicator problem (double dependencies)

Hi!
Problem 1:
This is what I want to do:
I have two boolean controls, both has modes ON/OFF. If switch 1 is ON switch 2 should always be OFF but if switch 1 is OFF, switch 2 should can be ON or OFF. So, no problem with doing this right? Well, I also want switch 2 to remember what mode it was in if I go from On to OFF on switch 1.
Problem 2:
I have a "Exit" item in my menu and a local variable "Stop" (which comes from a STOP button). When the Exit menu event fires, it sets the local variable to true and the while loops should stop. It works fine except that I have to select Exit in the menu twice?? Hmm.
Huge thanks in advance,
/Thomas

Tobe a écrit:
>Hi!
>
>
Hi !
>Problem 1:
>This is what I want to do:
>I have two boolean controls, both has modes ON/OFF. If switch 1 is ON
>switch 2 should always be OFF but if switch 1 is OFF, switch 2 should
>can be ON or OFF. So, no problem with doing this right? Well, I also
>want switch 2 to remember what mode it was in if I go from On to OFF
>on switch 1.
>
I supose you are implementing this in a state machine - use shift
registers to keep memory of your control's previous value. It becomes
very easy to associate actions (like ensuring constant value of another
control or storing its value at the time of the change) with both states
and state transitions of a terminal.
>Problem 2:
>
>I have a "Exit" item in my menu and a local variable "St
op" (which
>comes from a STOP button). When the Exit menu event fires, it sets the
>local variable to true and the while loops should stop. It works fine
>except that I have to select Exit in the menu twice?? Hmm.
>
If a true token would really make it to the "end of loop" test it should
really stop. The contrary is miracle (while loop resurection, call it).
Did you actually see that in debug mode ?
oz

Similar Messages

  • Is it possible to rotate a control/indicator in the panel?

    I'm using labview 6.0
    I tried customizing the control/indicator but I don't know how to do it...
    Thank you.

    I think I'm not explaining the problem well...
    What I want to do is something like the image attached.
    (I know where is the "costumize control" window, but I don't know how to rotate controls).
    Thanks for your answers
    Attachments:
    Rotated_controls_2.jpg ‏32 KB

  • Price Control Indicator inconsistant

    I am getting this error message at time of Goods Movement (Transfer Posting store to store two step Mvt 313) for a particular material.
    M7315 - Price control indicator inconsistent:
    The problem is I have not created Accounting views for material i have only enabled accounting view in back end configuration.
    I have also checked material twice in MM03 accounting view is not created. I cannot understand why sap is giving this message if accounting view is not created.
    Any help would be useful.

    Hi,
    Before transfer posting store to store, 1st check material type of material master in t.code:OMS2 and find price control in it.
    Now use t.code:MM03 and search material status with views for each storage location individually with plant.
    If material properties are same for two storage locations- why cannot you try with 311 movement type-Transfer posting storage location (one-step)
    Regards,
    Biju K

  • Change price control indicator from standard price to moving avg price.

    Hi All,
    There is a material which has a negative stock for the previous period and the previous period is already closed.
    When i want to change the price control indicator from S to V for that material in the current period, it shows an error that "negative stock is there, unable to change price indicator".
    Kindly help me to solve this issue.
    Thanks,
    AK

    the price control indicator can be changed  from standard price to moving avg price at any time .......with some restrictions.
    And one of these restriction is the one you see.
    You must not have negative stock.
    Hence you have to make the negative stock zero
    Since your negative stock is in the previous period, you either have to allow posting into previous periods (trx MMRV , of course Finance has to allow this as well)  first. Then you can post e.g. a 202 movement with previous period date  which has a quantity that equals your negative quantity. then you change your price control, then you do a 201 movement (again with previous period date), finally you can restrict posting into previous periods again in MMRV.
    or you just wait a few days, then with the month end closure your curent period becomes previous period and hopefully you will not have negative stocks again. then you can change the price control without any problem (I usually take care that moving average and standard price are equal befor I change the price control)

  • Codes of control indicator monitor

    I have a monitor model HP p1230. Shut off the screen and the light began to shine 7 short and 1 long interval. I guess this is the problem code. Can you tell me what this code means.

    Peter Parker wrote:
    I'm just wondering if there is anyway to set the preference in how label of a control/indicator to appear to the right of the control in a block diagram.  I'm doing a lot of routine copying and pasting of controls and indicators, and the labels always appear at the top of the controls/indicators.  Thanks for the tip.
    If you copy&paste a control, the label will jump back to the default location for the pasted control.
    There is a better way! It makes copying a control faster and retains the label location:
    select the control you want to copy
    hold down the [ctrl] key and drag the terminal to a new place.
    You will have a copy of the original control at the new location and the label position is the same.
    (Darren would probably call that a Nugget© )
    LabVIEW Champion . Do more with less code and in less time .

  • Can you programmatically change the width of columns in a table control\indicator

    Is it possible to programmatically change the width of columns in a table control\indicator ie to fit to width of the data or in my case the header information.

    Create a property node (or reference) and use the 'Active Cell' property to select which column you want to change and then use the 'Cell size'--> 'Width' property to change the size.
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
    Attachments:
    table.vi ‏33 KB

  • Table for control indicator in inspection characteristics(QP03)

    Hi
    can any one tell me in which table " Control Indicator " data is stored?
    in QP03 there is a control indicator tab for MICs in that i want Long term inspection details for ALL MICs
    can any one tell me the control indicator table?
    Regards
    Smitha

    Refer the reply given by Gaint in QM Gajesh Nagesh
    Re: Control Indicator field in Inspection plan characteristics
    This will solve your perpose .....use Bapi
    iNSPECTIONPLAN_DISPLAY
    INSPECTIONPLAN_CHAR_DISPLAY
    this will at least give you some idea...........

  • Control indicator for PO type

    the field BSAKZ in table EKKO represent the control indicator for PO type.what is control indicator and from which field in the PO,value is stored in BSAKZ

    Hi
    this field (length - 1) takes only two values either (T - transport or R - purchase requisiton for outline agreement)

  • Change of Price Control indicator.

    Hi,
    Under what conditions a maerial price control indicator can be changed from 'S' to 'V" and vice versa.
    Regards,
    R. Dillibabu.

    Hi,.
    If the material is split valuated you can ONLY change the V to an S on the accounting views that have a valuation type specified.
    You CANNOT under ANY circumstances change the V to an S on the "higher level" accounting view of a split valuation managed material (the higher level accounting view is the one where you do not specify a valuation type.).
    The reason you cannot is due to the fact that each valuation type below this higher level can have a different price and different stock quantities and so the higher level HAS to be an AVERAGE of the lower levels, managed by the system.
    There is no reason why you would ever want to change the higher level view from a V to an S because this view is not used for anything. It simply stores the average price and total value of stock across all valuation types. It is not used in any business transactions.
    Why do you want to change it from a V to an S?
    Steve B

  • Price Control Indicator

    Hi,
    We noticed that one material with wrong price control indicator as "S" instead of "V". It's impacting the overall Inventory valuation. We intend to update the MAP prices for these part no at our end to reflect the correct Inventory but can proceed only once the price control indicator is corrected appropriately.
    How can i acheive this issue?
    Note: Material contains open po's and stock.
    Thanks & Regards
    Anilkumar Dalai

    Hi
    The price control indicator in the Material master can be changed any time if it is allowable to change.
    As previously you had price control S - & standrda proce maintained
    when you change it to V  - The Mocving average proce will be overwritten by the Standard price thus keeping the valuation same
    Thanks & Regards
    Kishore

  • Set default to Classic style control/indicator

    Is it possible to set default to "classic style" control/indicator so that when I create a control/indicator from the block diagram, I will have a classic style control/indicator on the front panel?
    Somehow, I still like the classic style control/indicator more. Many times, after I create a control/indicator from the block diagram, I have to replace the new style control/indicator with a classic style control/indicator from the front panel. It can be done, but it would be nice if I can create what I want from the block diagram directly.
    Thanks.
    Ian Ren

    Well, to manually place a classic control, you would just go to the classic palette, no settings needed.
    Have you read the detailed help for this option? Maybe it's not exactly what you think it is.
    "Control Style for Create Control/Indicator—Changes the style of the control or indicator LabVIEW creates when you right-click a terminal and select Create»Control or Create»Indicator from the shortcut menu."
    LabVIEW Champion . Do more with less code and in less time .

  • Changing price control indicator and posting difference to sperate account

    Dear Guru's
    Need your advice on how to handle the following scenario. Company wants to change the Price ontrol indicator in a material from V(moving price average) to S(Standard cost).However there is stock in the inventory for this item.Additionally they also want to change the price of the item with the difference posted to a seperate balence sheet account.

    Hello
    While changing the price control, the moving average price becomes the standard price, which is then used for valuation.
    You change the type of price control by overwriting the price control indicator in the material master record with the new indicator.
    Changing the type of price control for a material does not change the value of the material stock, since in both cases the current price becomes the new price.
    For changing the material price, use revaluation MR21.
    At the time of price change, for a material subject to standard price control, the material debit or credit is posted to a price difference account. The offsetting entry is made to an income or expense account. Consequently, a material debit or credit for a material subject to standard price control does not lead to a revaluation.
    Regards

  • Control indicator

    can u please explain once again?
    basically, control indicator allows the differentiation between the various kinds of purchasing document.
    It makes a distinguish between a standard PO and a stock transport order?
    For model specification and outline agreement req. the control indicator----R?
    Does R belongs to standard PO?
    other puchasing documents like EC,FO,IN,NB are blank(that means these are
    stock transport orders)?
    I haven't understood the control indicator concept?
    please explain me once again?

    Hi,
    this has been answer on another recent question.
    There are many document types for POs etc. and they all are treated in exactly the same basi c way EXCEPT for STOs and so the system needs this flag to identify the document types that are to use the STO process as opposed to the normal PO process.
    BLANK means that they are NOT transport orders.
    For requisitions the same applies except that there is a special  requisition type for contracts and this again usess a different process to normal requisitions and so the system needs this flag to indicate if this special process applies (especially if you have created new document types)
    Steve B

  • Price control indicator and valuation class

    All SAP Gurus,
    Is there any relationship between price control indicator (V and S) and valuation class?
    We want to change the price control for certain materials from V to S and for certain materials from S to V.
    Regards,

    HI ,
    There is no direct releation between valution class and the Price control.
    Yes but a indirect relation.
    it is by the maeterial Type .
    in OMS2--we define the default Price control indicator.
    in OMSK -we define the Material type and the Valution class linkage.
    Know the Price control Indicator always triggers your value .and the way it has to be posted.(on a default value or a Purchase value on a weighted average basis)
    and valuation class triggers ..where it has to be Posted.( GL account)
    so it is how.
    But there could some other implication of the chase of the Price control..becoz.your Previous period price and current period would implact.
    you stock valution would impact.
    so check all these before you Proceed
    hope so it helps
    Regards
    Anjanna.

  • Price control indicator for finished material

    Dear Experts,
    Any one can please clarify on this..
    Can we maintain price control indicator for Finished Product <b>V</b> as well as <b>S</b>
    Out of the above two either one may be statistical.  Considering <b>S</b> as a statistical I need to update price which is having control as <b>S</b> by releasing the std.cost estimate.  Is there is any configuration for this.
    Please help on this.
    Thanks and Regards
    Sivakumar Subramanian

    Hi Siva Kumar,
    Generally we maintain Finished material at Standard price . In turn system will update also moving average price for the same material . so both can be achieved by maintaining standard price in material master.
    Best Regards
    Ashish Jain

Maybe you are looking for