Fix labview variable to control input

Hi,
I am using the Simulation Interface Toolkit to send variables to Simulink. What I would like to have is a control that is coupled to the value of a text file. In other words the value of the text file will be the control input to Simulink sent via Labview. I can read the variable into Labview and save the local variable. I also have a slide control interfaced with Simulink that can send data. However, I have no idea on how to connect them together - make the slide track the variable I defined. Does anyone have any ideas?
Thanks,
Andy

Hello Andy,
I'm a little shaky on the transfer mechanism you are describing- would you be able to post a small example VI or screenshot of how you are handling the file-to-control data transfer?
Based on your reference to the other forum post, it looks as though you may be using an event structure to update your simulation, in which case you may find the Value (Signaling) property useful.  More information on this property can be found here:
KnowledgeBase 4J3DI2MA: Event Structure Does Not Capture the 'Value Change' Event When Values are Programmatically Changed 
http://forums.ni.com/t5/LabVIEW/fix-labview-variable-to-control-input/m-p/2174476
LabVIEW Help: Value (Signaling) Property
http://zone.ni.com/reference/en-XX/help/371361H-01/lvprop/ctrl_value_signaling/
I hope that helps, and if you're able to provide an example I might be able to give more specific advice.
Tom L.

Similar Messages

  • Fixed Cost & Variable cost in Production Order

    Hi  ,
           I have maintained the fixed cost & Variable cost in  KP 26 for the activity type .
    for 1 hr
    Fixed cost : 1
    Variable cost :1
    Operation duration is 1 hr , when i check the Planned cost it shows total plan cost is 6.92 ,
    Fixed cost as 3.46 and variable cost as 3.46 ,
    How the system calculates 6.82 ,
    I have maintained the valuation Variant for the activity type is Plan price for the period .
    As per my understanding system has to calculate the Planned cost as 2 (1 for fixed + 1 for Variable )
    Can anybody explain me why the system calculated the price as 6.82 ...
    Thanks in Advance ...

    Dear,
    Please check the following :
    1.Goto CR02-Slect the Costing tab -Check the Formula Key assinged in the Work Centre costing tab .??
    2.Please note that variable cost is dependant on quantity, where as fixed cost is independent of quantity.
    For example, if you have updated Rs.300 in variable and Rs.200 in Fixed cost fields and you quanity of activity type consumed is 100 minutes.Your fixed cost will be Rs.200 and variable cost will Rs.300/minute * 100 = Rs.30000
    3.What s the currency in Controlling area ??
    Regards
    JH

  • Range selection for Fix value variable in BPS

    Hi,
       When create vaiable, there is a fix value variable, under selection condition, we can choose either multiple single value or range, however if we choose the range, let say mtareial number from 1 to 100, when we run the BPS application through UPSPL, the value for material variable will be populated with value 1 to 100, when I try to change the value to a single value,it's not allowed me to change,  while the user define value type, we can change the value, Is this supposed to be?

    JW,
    BPS variables does not allow the choice of multiple single values, you can choose a single value OR a range of values. This issues has been brought up with SAP Development.
    If you need single values or a complete range of values, you can add each single value as a fixed value and the range as another fixed value that can be selected. You can select each single value individually or the whole range (or any subranges you specified) but not multiple selections of single values.
    In user definted variable if you check input allowed by users, you can add some values and the users can add more but then they could potentially go into material numbers they should not get access too.
    Hope this helps,
    Mary

  • LabVIEW and custom controls

    Hi all,
    I'm an italian PhD student working with Polytechnic of Bari.
    I'd like to submit to this forum a question about LabVIEW and custom controls in form of ActiveX components.
    Some introductory word about my problem will be helpful: in the past few months here at Polytechnic of Bari my colleagues and I developed some useful ActiveX controls with custom functionalities to use in LabVIEW.
    For example we developed a "contraves", an
    "endless knob" and a useful counter with a scale very similar to that of standard gazometers or energy counters.
    However we are experimenting some difficulties with the integration of these controls in LabVIEW; the controls are correctly imported in our VIs with using the ActiveX Container but...
    in the block diagram they appear as ActiveX references and we must use property nodes to access even their most useful property (value).
    Please, do someone of you know if (and eventually how) is it possible to integrate more deeply the controls in the LabVIEW environment?
    Do someone of you know if it exist an hypothetical "Custom Controls SDK" for LabVIEW more advanced of that integrated in LabVIEW 6.0?
    Any hint would be appreciated.

    > Please can you specify in more detail how I can obtain the ActiveX
    > refnum input automatically wired to a constant (I have observed this
    > behaviour with the 3D-Graph control as you suggested). I haven't found
    > any reference in the LabVIEW on-line help about the topic "merge-VI".
    >
    The first step is to build a VI that contains the panel and diagram
    elements that you want to drop all at once. In your case, drop the
    ActiveX control at a good size, and on the diagram, you can wire it to
    helper VIs, property nodes, etc. The VI's icon and name are important
    as that is what will show up in the palette menu representing your
    control. The connector pane isn't used.
    With the VI constructed, you want to add it to the palette menu. In the
    Tools menu, Advanced, there is an item about half way down for
    Customizing the Palette menu. You will need to build a New Palette Set
    using the ring and name it whatever you like. You can now add your VI
    wherever you like. Most likely you will want to right click to add a
    new subMenu in the Controls palette and place it in a new .mnu file. In
    the subMenu, right click to add Control. The file dialog will open
    allowing you to select a control file to add to the palette. By
    changing the filter from .ctl to all, you can insert VIs into the
    controls palette.
    All VIs inserted into the Control palette will act as merge VIs, meaning
    that when dragged to a panel, the panel elements will be merged into the
    destination panel, and the diagram elements will be merged into the
    destination diagram.
    For others that want to have these on the Functions palette rather than
    the Controls, you add the VI to the Functions palette, then popup on the
    palette item and check the menu item to make it a Merge VI.
    When it comes time to distribute, you will want to give out your .mnu
    file and the VI of course. Easiest is to place both of them in
    user.lib. If you want the items to go at the top level of the palettes,
    then you can add them to add-ons inside of vi.lib, but this causes more
    upgrade challenges.
    Hope that helps.
    Greg McKaskle

  • [svn] 954: Fixed ASC so that Context.input can be null.

    Revision: 954
    Author: [email protected]
    Date: 2008-03-27 08:02:13 -0700 (Thu, 27 Mar 2008)
    Log Message:
    Fixed ASC so that Context.input can be null. This will be the case
    when the AST (abstract syntax tree) is generated.
    checkintests Passed: YES
    Needs QA: NO
    Needs DOC: NO
    API Change: NO
    Code-level description of changes:
    asc/semantics/CodeGenerator.java
    Added checks for a null context.input before using it.
    asc/parser/SelectorNode.java
    Made class abstract, so SyntaxTreeDumper can be sure that it
    doesn't have to handle this class directly, only it's subclasses.
    asc/parser/PackageIdentifiersNode.java
    Made IS_DEFINITION_FLAG private and added isDefinition() for use
    by SyntaxTreeDumper and toString().
    asc/embedding/LintEvaluator.java
    Added checks for a null context.input before using it.
    Modified Paths:
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/embedding/LintEvaluator.java
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/parser/PackageIdentifiersNode.java
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/parser/SelectorNode.java
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/semantics/CodeGenerator.java

    I have already set it to FALSE. The solution to this will be some different OSD Task Sequence variables or a statement that it can't be made to work.
    I believe that setting defines what volume will be the BOOT / OS Drive Letter. Some people were getting D:\WINDOWS as their boot volume drive letter. Setting to true means whatever was the System Drive letter (usually C) in the image will remain as such
    after it was was applied, setting it to false will make the system have the same drive letter arrangement as what Windows PE detects. In my case I set it to false so that no matter what the new VHD file setup as drive C will be the system drive. I'll set it
    to true on the next deployment but I expect there to be no difference, because in both PE and the WIM the installation volume is the C:.
    We are talking about the DRIVE LETTERS Windows PE SCCM OSD is using for it's temporary files - and how we can manipulate these locations using OSD Task Sequence Variables, so the Apply OS doesn't try and clean up files that are not there
    - and fail with an error if you have added a VHD Native Boot volume.
    This OSDPreserveDriveLetter setting isn't having any effect on the problem here.
    I believe that Format step is setting some task variables used by the OSD Deployment process - telling it where to store it's temporary files. However between the Format Disks and Apply operating system steps the OSD Task Sequence isn't picking up on the
    fact what was the C:\ after Format HDD step is now the D:\ .
    A developer who has an understanding of how the OSD boot process executes in order would be able to see what's going on here.
    MCSE,MCNE,SCO,Sair Linux/GNU, Open source-enthusiast.

  • Fixed and Variable Breakup of Actual Cost

    We have implemented Material ledger and also activated actual cost component split. We are getting the actual product cost at month end. In the costing cockpit we get the Peiodic unit price(Actual cost) as well as std price of the material. But In costing cockpit we are not able to get the breakup of Fixed and variable. Whereas we are getting Fixed and varible breakup when we check cost component report in ckm3. But there, we can see individual material wise fixed and varibale breakup.
    Can anybody help me so that I can see the Actual Fixed and variable cost for all the products at a time?
    With regards
    Mukesh Poddar

    Fixed price, is the fixed costs - I usually see it in relation to Overhead..
    Fixed costs remain, whether you manufacutre or not.
    Say you are deciding whether to out-source an assembly,  If you outsource, VARIABLE cost will be saved, Material, labor for that assembly, Overhead representing fringes for that labor, the electricity to run that specific machine.  However, you will still have fixed costs of: Management Salary (although some of that can be variable); insurance on the building; heating and cooling for the building; realestate taxes.
    If the cost to make "in house" is 150 each and the vendor is going to charge you 100, thi is only a true saving if your fixed costs are less than 50.
    SAP allows you to separate fixed and variable costs so that you do make/buy analysis, budgeting, etc
    Hope this helps
    Edited by: Althea Madigan on May 12, 2010 2:11 PM

  • How do I program Instrument I/O Assistant to read a variable in the input string?

    How do I program the Instrument I/O Assistant to read a variable in the input string? I can manually type in the string using the Instrument I/O Assistant using the "Write" or "Query" tools but I do not know how to send a variable input to the Instrument I/O Assistant so that variable can be used inside the "Write" string. For example, I have a power supply whose current I want to set to X Amps. I can type the command "PC10" to program the current to 10 Amps, however I want to be able to program it at any arbitrary current. How do I feed the value X into the code for this purpose?

    You can't. The assistant was designed to be a quick and dirty way to do some basic communication with an instrument. You can turn it into a VI (right click and select Open Front Panel) and modify it so that your write string is an input to the VI or use it as a template and create your own code with VISA Read and Write primatives.

  • Budget Report to show the fixed and variable split for Materials

    Hello Gurus,
    Could you tell me if there is a budget standards report that will show the fixed and variable split for Materials? Example: Labor, Equip., QC and Overheads? 
    I need it for the correctly rolled-up 'final material number' step.  The report that does this now (without fixed and var split) is the Indented BOM Comparison (sret - cost mgmt-product costing - cost mgmt-customized reports - cost estimate comparison - costed multilevel compare rpt - Indented BOM Comparison).
    Thanks,
    Jefferson

    one simple way is in your final itab declare a slno type i field
    data : begin of itab occurs 0,
    slno type i,
    <other fields>
    end of itab.
    after filling the data in itab.
    loop at itab.
    itab-slno = sy-tabix.
    modify itab.
    endloop.
    in fieldcatalog also you have to define that slno field as the first column.
    but it will change its order if you are sorting the output or filtering the output.
    regards
    shiba dutta

  • Add 2 container variables in control step BPM

    Hi All,
    I have a scenario where I need to add 2 container variables in control step under AlertMessage and I am using under exception branch
    Control Step
    StepName: XXXX
    Action      : XXXX
    AlertCategory: XXXX
    AlertMessage: ?
    I am successful putting one container variable in alert message with &AAAA& but I want to add another variable values &BBBB& as well.
    When I tried to keep variables as &AAAA& and &BBBB&..I can return code 99 in sxi_cache.
    How can I achieve this with BPM..I am using sap pi 7.0

    may be i need to explain more clearly..
    I have 2 container variables with simple type which holds 2 different payload values.
    Under exception branch I have a control step to throw alert. In this I need to pass alert messages with these 2 varaibles.
    As I said earlier I am able to pass successfully one container variable value but when I insert the second variable it is not picking up and when I check sxi_cache the IP return was 99 which means some error occured while assiging these values.( I tried in different ways)
    But when I inserted has &AAAA& and &BBBB& then reuton code was 0 but whn I run scenario it is not populating both values
    Can anyone please help me how I can populate 2 variable values in alert message under control step.

  • Problem with customer exit variable that is input ready as well

    Hello all,
    I'm facing an issue with a customer exit variable that again has been defined as input ready. I'm not sure why it is working incorrectly and I#m wondering if this is a bug or if I do s.th. stupid.
    The problem is that in the exit program ZXRSRU01 this varibale does not go into the program code I have prepared for this variable. I have added entry points for all three i_step values 1,2,3, but the code will never be touched and in debugging I can see that it simply pypasses the code for this variable.
    I have tried to enter a value or to leave it blank, no difference.
    When I run another test by just using a customer exit variable w/o input ready capability, then I have no issue, the exit does exactly what I have coded.
    Does this mean, that a customer exit variable along with input readiness dows not work ?????
    You may ask why I need this variable. Well, my intention is to use the input value of this variable A to derive other values for a complete different variable B. Afterwards I want to erase the input given into variable A to have it blank.
    Any comments are appreciated
    Thanks

    Hi Heiko,
    I assume A & B variables are defined on different Characteristics. If you wish to derive B based on A, you can create the Query Characteristic Restriction on B & have a dummy RKF restricted on A whose processing is by Manual Input; where processing of B is by Customer Exit. In istep 2 you can check for B, read A & derive B. There would not be a need to blank out A since the Query would not be restricted on A - you can hide the dummy RKF from showing in the output. Just a thought.
    --Priya

  • How to implement autotuning pid in labview in flow control process????

    I tried the same way as Example available in LabVIEW..... that is general auto PID simulator... But that didn't worked out for me.....

    The 'General Auto PID Simulator.vi' example uses the technique "PID Relay" feedback where it tries to calculate the PID values based on the relay feedback, but using the PID also in the loop:
    (http://zone.ni.com/reference/en-XX/help/370401H-01/lvpidmain/pidrelay_alg/)
    This technique works, but it requires initial PID parameters that will make the relay setpoint stable and it is able to obtain the results you are expecting.
    Now, for flow control, you can try the most classic techniques. Please use other shipping examples that start with "autotuning" and in special this:
    C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\control\PID\Autotuning PID Online.vi
    In this VI, you can choose other techniques like open-loop step response, closed-loop step response and the original 'relay feedback' where it doesn't have a PID inside the estimation loop.
    Anyway, here you have more information about those techniques http://zone.ni.com/reference/en-XX/help/370401H-01/TOC4.htm.
    One more thing: keep in mind that depending on the plant parameters, a PID could not be suited for your application and a more complex controller need to be developed.
    Hope this can help you...
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

  • Bex variable ready for input not displayed in webi

    Hi,
    I created bex query with some variables.
    Variables are defined as "optional" but "ready for input". On productive system the prompts are all displayed, but when i transported the webi report to dev, some prompts are not displayed.
    we are on BW 7.31 and BO 4.0. I also tried with BO 4.1. but the problem is the same.
    I have no idea what's wrong here! Attached you can find some screenshots on my current settings.
    thanks,
    Katharina

    Hi,
    yes the reports are based on BICS and I moved them from prod to dev.
    I already checked, the query panel does not show these variables!
    I copied query and saved under new name, and i also created a new webi report upon this query, but some variables ready for input are still not displayed.
    Regards,
    Katharina

  • Overview report cost estimate (fix and variable)

    Hello
    anybody knows a overview report  where i can see for the current valid cost estimates
    per material
    costs splitt between fix and variable costs
    Alternatively it would be sufficient if this is just shown for a costing run
    In CK40N and all other reports i know i have the complete costs but to see details an extra click to the between fix and variable costs is needed and i can not extract to excel.
    Or is the only option an query on KEKO,KEPH, CKIS?
    Cheers
    Tim

    Hello
    @Sachin: Thanks for the report but the output is not that good - but helpful
    @Eric: Thanks this report solved my problem )
    Cheers
    Tim

  • Product costing - Fixed and variable cost.

    HI,
    I like to know how the cost is divided into fixed and variable at the cost compent level.
    as there is only one setting available at Define Cost Component Structure.
    Kindly let me know how this is done and possible forward the Product costing document and setting.
    my e-mail :[email protected]
    With Regards
    Krishna Singareddy
    Edited by: krishna singareddy on Feb 26, 2008 8:26 PM
    Edited by: krishna singareddy on Feb 26, 2008 8:27 PM

    Hi,  FICO MOH ,
    Do u have any logic if a coast element has 100 how do u divide it among the fixed and variable.
    what is the persentage or based on what it is defined .
    can u put some example pls
    with regards
    krishna

  • Fixed and variable cost component break up in PCA

    Hi,
    Is it possible to get fixed and variable cost component break up and contribution report in PCA at each product group level and lower level of node. I think this requires development. As my client requires the report to have cost break up into fixed and variable in PCA at each line item level. Can anyone solve this

    Hello
    You can get the report by using the  report painter, no development will be required.
    Regards
    Madhav

Maybe you are looking for

  • How To Use Activity Monitor

    Is there a tutorial or something on using Activity Monitor? For instance, I'd like to find out what processes are going on to prevent my G4 from shutting down at the scheduled time. (The shutdown deal has been ongoing since first going to OS X.)

  • Are there jumpers on a Mac g4 Mdd

    I am swapping from a 867 Mirror drive to a 1.25 ghz processor on a Mac g4 MDD. Are there any jumpers that need to changed??? Please Help Thanx

  • No entry stored??

    THis has me greatly perplexed.  I have an entry for "John Doe" with all his numbers in it.  I use BB voicedial and say "Call John Doe", BB: Did you say John Doe? and on screen it has text 1.  John Doe  2.  Jane Doe, I reply "yes" and then it comes ba

  • Preserve element in vector

    I am working on a small application in which a array keeps a list of character names. This list is used a parameter creating a drop down menu in a "JComboBox". i my primary class (the one creating the different parts of the app) i create a Vecter tha

  • Scroll to the bottom

    Hey im writing simple chat app for school and I have such problem I have a list that displays messages and I would like to make it scroll to bottom every time someone sends msg. also im using flex 4 thanks in addition