How do I alternate an output value between 2 settings at a prescribed rate?

I would like to simplify a sine wave into simply a saw tooth with a single point at the top and bottom of the wave. My external system cannot keep up with the rate I need for the sine wave so it is useless feeding it all that extra data. I basically want to set the value at say 50 wait a second then change it to 0 then wait a second then change it to 50... etc.
I don't know how to wire more than one thing to a channel. I assume I need a loop of some sort.
Thanx for the help.

DO "Serach Examples" for Continuous Analog Output.
One of those examples "Function Generator"? Gives you a triangle wave output.
Crank down on the update rate, Bingo you are done.
If you care to look, you will find a loop on the diagram when you are done.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • How table GLT0 work? (Different value between GLT0 and BSAS)

    Anyone know about how the table GLT0 work?
    After checked in sapenote sapnote 100273 which said "For an FI posting (for example, with Transaction FB01),
    the balances resulting from the posting are updated twice in the G/L Account Monthly
    Debits and Credits (table GLT0)."
    So, Any change amount value of items in accounting doc. This problem should to update, correct?
    For any change of amount value in item of accounting doc and currencies is change.
    Need to reupdate this  table with new currencies? or any logic
    Now, I found a problem is "Account balance" value in currency group (USD) in transaction FS10
    and total sum of "USD Amount" in transaction code FBL3 (If click to sum by currency)
    are different for 17.79 USD.
    I tried to get a logic of this 2 transaction code and found detail as below:
    FS10 : Get data from table GLT0 and for group currency report. Program select data
    from field KSLVT and KSLXX to display in report.
    FBL3 : Get all data until selected period in table BSAS and sum total amount from field BSAS-DMBE2
    (Amount of USD Currency)
    Actually, This 2 report should to have the same account balance.
    So, My question is
    1. When the table (GLT0) update?
    2. Can have a problem with the data in GLT0 (field KSLVT and KSLXX t)
    and sum of amount USD curency BSAS-DMBE2 are differenct?
    If can have, how is occur?
    Many thank in advance.

    Hi,
    Did you find any relationship between the data (sql data and Essbase)?
    While you are loading fresh data, there is no discrepancy.
    You find discrepancy at the time of incremental loading.
    It might be possible in incremental loading data can be added to already existing value in dimension.
    In that case you will find your Essbase data is 2times or 3 times more than base data (sql).
    Then check there might be some setting.
    Thanks
    Dhanjit G

  • How can I pass a var value between MovieClips?

    New week, new question.
    I haven't been able to find the answer to this: I'm working with a var defined in the main timeline var score:int; , wich I use in 10 different movie clips using var score = MovieClip(this.root).score;
    Everything works perfect on the first MovieClip, but when the next one plays score does not keep the value assigned in the previous MovieClip therefore the score is lost.
    The clips are questions and they are place on the main time line in different frames and main time line actions layer which only contains this:
    stop();
    var score:int;
    nextQuestion.addEventListener(MouseEvent.CLICK, newQuestion);
    function newQuestion(evt:MouseEvent):void {
        nextFrame();
    covers each frame with every different MovieClip.
    What I need to know is how to make that value pass to the next Movie Clip?

    Hi Ned,
    I had defined the score var in the time line but to add the score from each question (MovieClips) I have to call it to the each MovieClip and I assume that whe I call the score var in the second MovieClip will keep the score from the first, but is not the case:
    This is the time line actions layer:
    stop();
    var score:int;
    nextQuestion.addEventListener(MouseEvent.CLICK, newQuestion);
    function newQuestion(evt:MouseEvent):void {
        nextFrame();
    and this is the code from the first question (MovieClip)(all the questions will have the same code except for some specific things like the value that each answer adds to the score and stuff like that)
    stop();
    var score = MovieClip(this.root).score;
    var answersArray:Array = new Array();
    var strikeCount:int;
    var sucessCount:int;
    var messageBox:TextField = new TextField();
    messageBox.text = "" + score;
    addChild(messageBox);
    messageBox.textColor = 0xFF0000;
    messageBox.width = 200;
    messageBox.height =100;
    messageBox.x = 285.5;
    messageBox.y = -32.9;
    this.strikeOne.visible = false;
    this.strikeTwo.visible = false;
    this.strikeThree.visible = false;
    this.flipQ1One.visible = false;
    this.flipQ1Two.visible = false;
    this.flipQ1Three.visible = false;
    this.flipQ1Four.visible = false;
    function answListener(evt_obj:Event){
    if((strikeCount >=3) || (sucessCount ==4)) { nextFrame();
    }else if (answersArray.indexOf(answ_input.text) < 0){
        if(answ_input.text == "5"){
        score = score + 61;
        messageBox.text = ""+ score;
        this.flipQ1One.visible = true, flipQ1One.play();
        sucessCount = sucessCount +1;
        answersArray.push(answ_input.text);
        answ_input.text = "";
        else if (answ_input.text == "3"){
        score = score + 25;
        messageBox.text = ""+ score;
        this.flipQ1Two.visible = true, flipQ1Two.play();
        sucessCount = sucessCount +1;
        answersArray.push(answ_input.text);
        answ_input.text = "";
        else if (answ_input.text == "4"){
        score = score + 8;
        messageBox.text = ""+ score;
        this.flipQ1Three.visible = true, flipQ1Three.play();
        sucessCount = sucessCount +1;
        answersArray.push(answ_input.text);
        answ_input.text = "";
        else if (answ_input.text == "2"){
        score = score + 3;
        messageBox.text = ""+ score;
        this.flipQ1Four.visible = true, flipQ1Four.play();
        sucessCount = sucessCount +1;
        answersArray.push(answ_input.text);
        answ_input.text = "";
        else {answ_input.text = "";
              strikeCount = strikeCount + 1;}
    answ_input.addEventListener("enter", answListener);
    function strikesListener (evt_obj:Event) {
            if ((strikeCount == 1) && (answ_input.text != "5", "4" , "3" , "2")) {this.strikeOne.visible = true;
            else if ((strikeCount == 2) && (answ_input.text != "5", "4" , "3" , "2")) {this.strikeTwo.visible = true;
            else if ((strikeCount == 3) && (answ_input.text != "5", "4" , "3" , "2")) {this.strikeThree.visible = true;
            else {}
    answ_input.addEventListener("enter", strikesListener)

  • How can I use the output value from SIMPLE PID to write something to the serial port?

    I am working on my Senior Design Project that requires the use of incoming compressed air, propotional valves, continuous servo motors, and a serial servo motor microcontroller.  I have figured out how to send byte sequences to the microcontroller through LabVIEW using the VISA serial write function.  The motors are attached to the valves to control the flow rate.  I have created my own simple feedback system using a bunch of case structures but I realized that I am basically trying to recreate the wheel (I basically was writing my own PID VI).   I have an older version of LabVIEW (7.0 Express) and theres no way to upgrade or buy the PID toolkit, so I am stuck using the Simple PID VI.  Also, the only way the motor works is sending an array of bytes to tell it to turn on/off, direction, and speed.  Is there any way I can use the Simple PID VI in conjunction with the VISA SERIAL write function, or is there any other way I can communicate with the serial port using this pid vi?  Any information would be appreciated.

    Hi gpatel,
    you know how to communicate to serial port, but you don't know how to send a value from SimplePID to serial port???
    You know how to communicate, but then you don't know how to communicate???
    You should explain this in more detail...
    Edit:
    From you first post you know what values your motor driver is expecting. You know which values the PID.vi is providing. Now all you need is a formula to reshape the values from PID to the motor. It's up to you to make such a formula. Unless you provide any details we cannot give more precise answers...
    Message Edited by GerdW on 02-28-2010 08:35 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to sum row level multiplication values between two measure?

    Hi All ,
    In the CUBE i want to create a calculation , which in SQL Server is = sum(calldur*callind). The calldur is a measure which has numeric values. Callind has values of 1 and 0 (factless fact ). please see the below datasets.
    calldur callind sum(caldur*callind)
    54 1 54
    0 0 0
    25 1 25
    58 0 0
    31 1 31
    300 0 0
    297 0 0
    but what the cube is doing is (call dur is selected as sum measure) and i selected (callind as max value)
    adding all the calldur which is 765*1, where as the value should be sum of sum(calldur*callind) which is 110.please need help.
    Thanks
    SV

    The simplest way to do this is to do the multiplication in the query that you are using as the source for your measure group or to add a calculated column in your DSV.
    Another solution would be to use a measure expression in the cube, but this has much worse performance as it effectively forces the storage engine to alway scan at the lowest level.
    http://darren.gosbell.com - please mark correct answers

  • Passing values between methods in the same class

    Hi,
    How to pass internal tables or values between methods in the same class.
    How to check if the internal method in another method is initial or not.
    How to see if the method has already been executed.
    Thanks.

    Just declare the internal table as an attribute in the class - that way every method in this class has access to it.
    Since any method has access to all class attributes you can easily check if the internal table is initial or not.
    I am not aware of any standard functionality if a method has already been executed or not, one way would be to declare a class attribute for each method and set it once the method has been executed. That way every method in that class would know which method has already been executed or not.
    Hope that helps,
    Michael

  • In BADi , How to pass the values between two Method

    Hi Experts,
    We have two methods in BADis. How to pass the value  between two Methods. Can you guys explain me out with one example...
    Thanks & Regards,
    Sivakumar S

    Hi Sivakumar!
    Create a function group.
    Define global data (there is a similiar menu point to jump to the top include).
    Create one or two function modules, with which you can read and write the global data.
    In your BADI methods you can access the global data with help of your function modules. It will stay in memory through the whole transaction.
    Regards,
    Christian

  • How to pass values between views in FPM - GAF

    Hi Experts ,
    i have a doubt in FPM how to pass values between views .
    For Example:  i am having 2 views -  1 ) overview , 2 ) edit  using  the GAF
    in 1st view (overview ) i have a table displaying the employee details , i will select a single employee from that table for editing .
    how to pass the selected employee details to the 2 nd view (edit ) .
    Thanks & regards
    chinnaiya P

    Hi chinnaiya pandiyan,
    Please follow below steps:
    1. To achieve this u need to create two context nodes in the component controller.
    2. Say one is EMPLOYEE_DATA and other is SELECTED_DATA.
    3. Set the Cardinality of EMPLOYEE_DATA to 0..n and SELECTED_DATA to 1..1.
    4. Add same attributes to both nodes. (probably all those fields that are required in table and/or in edit view.
    5. Map both these nodes to OVERVIEW view.
    6. Map only SELECTED_DATA node to EDIT view.
    7. Create table in OVERVIEW view based on EMPLOYEE_DATA node.
    8. Create edit form in EDIT view based on SELECTED_DATA node.
    9. While navigating from OVERVIEW view to EDIT view, read the selected element of EMPLOYEE_DATA node and copy it to an element of SELECTED_DATA node. This should be written in PROCESS_EVENT method of component controller inherited from FPM component.
    10. Now u got the selected data in SELECTED_DATA node which will be displayed in EDIT view.
    Regards,
    Vikrant

  • How to pass value between two forms.

    Hi all,
    how to pass value between two forms(using :parameter),...
    Thanks
    Rajesh

    To use parameters, create a parameterlist with the named parameters
    DECLARE
      pl_id PARAMLIST;
      pl_name VARCHAR2(10) := 'tempdata';
    BEGIN
      pl_id := Get_Parameter_List(pl_name);
      IF not Id_Null(pl_id) THEN
        DESTROY_PARAMETER_LIST(pl_id);
      END IF;
      pl_id := Create_Parameter_List(pl_name);
      ADD_PARAMETER (pl_id,'MYPARAMETER',TEXT_PARAMETER,:BLOCK.VALUE);      
      CALL_FORM('MYNEWFORM', NO_HIDE, DO_REPLACE, NO_QUERY_ONLY, pl_id);
    END;In the new form you can then just access the parameters via :PARAMETER.MYPARAMETER;
    An alternative is the usage of globals:
    :GLOBAL.MYPARAM:=:BLOCK.VALUE;
    -- call the emp-form
    CALL_FORM('MYNEWFORM', NO_HIDE, DO_REPLACE);and in the new form use:
    DEFAULT_VALUE(NULL, 'GLOBAL.MYPARAM');
    IF :GLOBAL.MYPARAM IS NOT NULL THEN
    ...The advantage of gloabls is that they can also return values back to the calling form, which is not possible using parameters

  • Forms6i- how do i pass values between two forms

    Forms6i- passing values between forms
    I have two forms. FORM1 does a call_form to FORM2.
    How do i send values from FORM1 over to FORM2?
    I want the 2 values in FORM1 to be passed top FORM2 and displayed as a TEXT ITEM.
    But i don't know what is involved in passign vales between forms.

    Define Parameters in Form2, and pass parameters with the same name from Forms1 with the parameter list option of your call_form built-in.
    It is in the online help.

  • How to Pass values between one webdynpro application to another

    Hi ,
        I know How to Pass Values Between the Application by URL But For My Requirement NO need The Pass in URL Rather Than That Please any one TEll me How to GEt VAlues BEtween the application......
    Thanks
    ANANTH.

    If you dont want to pass values through URL, then you must have to use component Usage with interface node.
    Or you can try like this,
    by appending field value to url,
    Data w_url type string,
    w_value type string.
    get the url of calling aplication
    call method cl_Wd_utilities->construct_wd_url
    exporting application name = name of second application( to which u want to pass parameter )
    importing out_absolute_url = w_url.
    ***Make the value type compatible that has to passed with url.
    w_string = lv_pernr
    ***Now attach the parameter and its value with url that have to passed to 2nd application
    call method cl_http_Server=>append_field_url
    exporting name = 'pernr'
    value = ' w_value'
    changing url = w_url.
    then popup window for 2nd application with above url
    lo_window = lo_window_manager->create_external_application ( url = w_url ).
    lo_window -> open( ).
    ***now in wddoinit of 2nd application
    data lv_param type string
    lv_param = wdr_task=>client_window->get_parameter( ' pernr ').
    Now you can use lv_param in 2nd application.
    Regards
    srinivas

  • How can I share values between different jsp pages?

    Hi,
    I'm doing a jsp, bc4j application (JDeveloper 9.0.3), and I need to share some values between different jsp pages. To do this,
    I have used the tag <jsp:usebean.....></jsp:usebean> in this way:
    on pageone.jsp
    <jsp:useBean id="param" scope="session" class="MyPackage.Parameters" ></jsp:useBean>
    on pagetwo.jsp     
    <jsp:useBean id="param" scope="session" class="MyPackage.Parameters" ></jsp:useBean>
    and so on, in order to refer to the same instance of the class "Parameters".
    After deploying, the application works well only if the client is the same pc where the AS resides, otherwise the variables of "Parameters" are null.
    Please, could you help me?
    Thanks
    Nunzio.

    I am seeing an indication on 9.0.3 that static includes are not static, but instead always dynamic. The compiler generates a call to the included page, and doesn't include the content in the calling page as it should.

  • How to asssign output value in the CSV file for the specific header

    Hi,
    I am using OpenScript 9.10. The problem I am facing is that, to Write the Output value captured from the application, When i am trying to use the methods "Appen String to File" i am unable to write / assign the out put value below the specific header. Can any one please look into this and post the methods related to Write the output vaues in to the CSV files under specific headers.
    Thanks in Advance.
    Thanks.,
    Siva

    Hi Alex,
    Thanks for your reply.I need to write the output value under specified parameter name.
    for example after creating the sales order,the order number have to write in the CSV file under
    OrderNumber column.I tried with appendStringtofille() method,by using this able to write the value under
    first column.But i need to write output value under specified columnname(means Header name in the cSV
    file).can u please give a reply for the above problem.
    Note: In that Csv file i am taking the input vales and also need to write the output values under
    specified column(header)
    Thanks,
    Siva Thota.

  • How to pass value between models?

    Dear all,
    I use VC 7.0 composer to create dashboards. That include one overview dashboard (model) to show seven KPI in one screen and I also have seven detailed dashboards (models) to show the detail of each KPI.  Each dashboard has their own iView .   User will only need to pick a plant once at the overview dashboard and I expect the plant value will be passed to other seven detailed dashboards.
    Since those dashboards are saved in different models, I just wonder is it possible I can pass the value from the overview dashboard model to the separated detailed dashboard models? The reason I donu2019t put all dashboards in one model because I need to have different reports assigned on the left of the screen for each dashboard in portal. If I need to accomplish this in portal, I believe I need separate iView(model) for each dashboard. Please correct me if I am wrong since I am new to portal development. Thanks.

    I think it is possible to pass values between models.
    Just creat on "Write-RFC" and one "Read-RFC"
    The RFC has just the function to write/read a value into an customer table...
    ^^ We have tried this scenario and it works perfect.
    Regards
    Florian

  • How Do I Pass A Value Between two Spry Tabs?

    I am using the Adobe Spry framework to develop an webpage
    with 3 tabs. I want to be able to pass a value between tabs.
    More specifically...
    In Tab1, the user will click on a link that declares a
    variable called "groupID" with a value of "999"
    Tab 2 Should then open up and have "groupID" available for
    use. It will be used as a hidden form field.

    I think I get what your talking about.
    Thing to remember is that all the data is loaded on the same
    page still so you can just pass it over like you would using JS.
    I did a little example let me know if this is what you are
    looking for.
    You will see that I added a function at the bottom that will
    tell spry what panal to open as well as pass your "groupID" the
    function is call on the onclick even.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    <script language="JavaScript" type="text/javascript"
    src="js/SpryTabbedPanels.js"></script>
    <style>
    .TabbedPanels {
    clear:none;
    float:left;
    width:100%;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    .TabbedPanelsTabGroup {
    margin:0px;
    padding:0px;
    .TabbedPanelsTab {
    -moz-user-select:none;
    cursor:pointer;
    float:left;
    font-family:Verdana, Arial, Helvetica, sans-serif;
    font-size:11pt;
    font-size-adjust:none;
    font-stretch:normal;
    font-style:normal;
    font-variant:normal;
    font-weight:normal;
    line-height:normal;
    list-style-image:none;
    list-style-position:outside;
    list-style-type:none;
    position:relative;
    top:0px;
    background-color:#FFEEEE;
    height: 25px;
    width: 161px;
    margin-top: 2px;
    margin-right: 15px;
    margin-bottom: -2px;
    margin-left: 0px;
    padding-top: 8px;
    padding-right: 10px;
    padding-bottom: 4px;
    padding-left: 10px;
    color: #ebe3cb;
    background-repeat: no-repeat;
    vertical-align: bottom;
    text-align: center;
    .TabbedPanelsTabHover {
    .TabbedPanelsTabSelected {
    background-color:#EEEEEE;
    height: 25px;
    margin-top: 2px;
    margin-right: 15px;
    margin-bottom: -2px;
    margin-left: 0px;
    padding-top: 2px;
    padding-right: 10px;
    padding-bottom: 9px;
    color: #46483c;
    .TabbedPanelsTab a {
    color:black;
    text-decoration:none;
    .TabbedPanelsContentGroup {
    background-color:#EEEEEE;
    clear:both;
    .TabbedPanelsContent {
    padding:4px;
    border: 1px solid #000000;
    text-align: left;
    background-color: #FFFFFF;
    .TabbedPanelsContentVisible {
    .VTabbedPanels .TabbedPanelsTabGroup {
    background-color:#EEEEEE;
    border-color:#999999 rgb(153, 153, 153) rgb(204, 204, 204)
    rgb(204, 204, 204);
    border-style:solid;
    border-width:1px;
    float:left;
    height:20em;
    position:relative;
    width:10em;
    .VTabbedPanels .TabbedPanelsTab {
    border-left:medium none;
    border-right:medium none;
    border-top:medium none;
    float:none;
    margin:0px;
    .VTabbedPanels .TabbedPanelsTabSelected {
    background-color:#EEEEEE;
    border-bottom:1px solid #999999;
    .VTabbedPanels .TabbedPanelsContentGroup {
    clear:none;
    float:left;
    height:20em;
    padding:0px;
    width:30em;
    </style>
    </head>
    <body>
    <div class="TabbedPanels" id="tp1">
    <ul class="TabbedPanelsTabGroup">
    <li class="TabbedPanelsTab" tabindex="0"
    >Tab1</li>
    <li class="TabbedPanelsTab" tabindex="0"
    >Tab2</li>
    <li class="TabbedPanelsTab"
    tabindex="0">Tab3</li>
    <li class="TabbedPanelsTab"
    tabindex="0">Tab4</li>
    </ul>
    <div class="TabbedPanelsContentGroup">
    <!---We include the 4 tabs--->
    <div class="TabbedPanelsContent" >
    tab1
    </div>
    <div class="TabbedPanelsContent1" >
    <a href="#" onclick="tabtest(3,999);">test</a>
    </div>
    <div class="TabbedPanelsContent" >
    </div>
    <div class="TabbedPanelsContent" >
    <form name="myform">
    This number was passed from tab 1 <input name="mystuff"
    /></form>
    </form>
    </div>
    </div>
    </div>
    </body>
    </html>
    <!---we add this so the tabs will work--->
    <script language="JavaScript" type="text/javascript">
    var tp1 = new Spry.Widget.TabbedPanels("tp1", { defaultTab: 0
    function tabtest(tab,groupID)
    var tp1 = new Spry.Widget.TabbedPanels("tp1", { defaultTab:
    tab });
    document.myform.mystuff.value = groupID ;
    </script>

Maybe you are looking for

  • Error while uploading Transport request

    Hi friends, Error while uploading transport request to the transport directory, we downloaded the trasnport request from one sap system which have a set of developments for example downloaded files are; control file: K900470.SAD and Data file: R90047

  • Odd urxvt focus behavior

    urxvt has not been focusing the past day or so. when I open it, it comes up unfocused. I havent made any changes to .Xdefaults nor is there any entry other than color-scheme. I have looked in rc.xml (openbox) and pypanelrc and I dont have anything in

  • What can I remove from a new installation to free up space

    I use Retrospect to backup 10.4.6. I only use the Mac for Logic Audio - and I've got 20GB of files on a new installation. This seems a bit high? Is there a way to cut down the total size of the files by 5GB - or some significant amount?

  • Unable to install the "Maven Integration for Eclipse" plugin

    I am having trouble trying to install the "Maven Integration for Eclipse" plugin. The tab Installed list the plugin with an Install button activated. Then when I click on Install, I get the following log: Your original request has been modified.   "m

  • Oper status down

    HI, I recently bought a Cisco 2504 Wireless Controller and a couple of access points (Cisco 1600 Series). Initially the controller had the 7.0.x.x firmware and from what i read on Cisco website it seems that this version is incompatible with my acces