Change the parameter in the formula by Labview?

I need to set up a formula (Since I need to analysis data, so everytime have differece formula, but I can't build up a new VI everytime),for example sin(a*x)*exp(b*x). If a & b & the formula are fixed, I can do it. But now, I need to make the a & b to be a set of values, like "a" is 0:1:10 and b is 50:0.1:100. That means when "a" is 0, "b" will go from 50 to 100 with step 0.1. And I need to be able to use the same VI for other formula. I try a few different way but still not able to come out the answer. Please help
====================
=Labview 7.0 & 8.0 & 8.5=
=====================

Hello asd,
for a & b parameters you have to use 2 nested loops with your formula inside and you get a 2d-array with results.
You can also change the formula if you use the "Eval Formula Node" in Analyze->Mathematics->Formula (not in base package). But I recommend to use this for not too big loops, because this function is slow...
Best regards
Gerd
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • How to use mathscript node in server side with the parameter from the client side

    I tried to develop a server/client system with some algorithms written in matlab. So I included a mathscript node on the server side. The client will send the parameter to the server. According to these parameters, the sever will call the matlab functions to do some computings and then send the results back to the client. The server has to wait for all parameters received before the computings. How do I know this since I only connect the parameter variables to the inputs of mathscript node on the server. The sever cannot know whethere these parameters are the new ones or old ones since the client may send parameters multiple times?

    It seems to me you have two perfectly good options to start with. You could send all possible parameters in a single packet from the client to the server. This could be in the form of a cluster or an array of values. If by server/client you mean you are sending data over the network, then you could flatten this data to string before sending and unflatten it on the other side. Since all parameters come in one packet, you know all the data is valid every time you send data.
    The other option is to send the parameters individually, but include some extra information such as a timestamp or iteration count. The server keeps reading and storing parameter values until a packet arrives with the next timestamp. Alternatively, you could include some information such as an end-of-parameter-list boolean that is sent with every parameter. It would be false until the last parameter packet.
    Give it a thought. There are lots of solutions.
    Jarrod S.
    National Instruments

  • How to pass wild card '%'  value from the parameter to the query

    Hello everyone,
    I have following 2 problems
    1) I was trying to do some thing like below
    select * from emp
    where ename like 'J%'
    for this i have used the following code
    select * from emp
    where ename like :P_ENAME
    and before running the query in the parameter box i entered J%. But my report returns an error which says INVALID PARAMETERS REQUESTED.
    2) I have a req of passing both comma separated and wild card for the same parameter. If we take the same example as above,
    user should be able to enter
    a) JASON, SMITH, JOHN OR b) J%
    I have used comma separated value option of the parameter for the csv values and its working fine, but i need to add the wild card feature also to the same parameter.
    Can anyone please help me with these things?????
    Thanks in advance!!
    Raghu

    Hi Raghu,
    I guess you are in older version, You have to get into latest version to use %, it should work well
    you should use where ( ename like :P_ENAME ) or ( ename in (:P_ENAME)) for both the condition to satisfy.

  • Why does the parameter of the paintComponent method have....?

    Why does the parameter of the paintComponent method have type Graphics and not Graphics2D?

    masijade. wrote:
    Additionally, it is, however, normally, a Graphics2D object's reference value that is passed around....which means most painting code starts out by casting the Graphics object to Graphics2D. You know what they say: death, taxes, and cruft... :P

  • Change the parameter in the titlebar

    Hi Everyone,
    I have pop up screen, where in it changes the titlebar accordingly on which grid it is. Now is it possible to pass a variable in the titlebar which keeps changing accordingly based on the columns of the grid.
    Any help will be of great use to me.
    Thanks,
    Prabs.

    Hi
    Insert & in your titlebar, and then when you set it:
    SET TITLEBAR 'XXX' WITH TITLE.
    The system'll replace & with the value in TITLE.
    So:
    If .......
      TITLE = ....
    else.
      TITLE = ....
    endif.
    SET TITLEBAR 'XXX' WITH TITLE.
    If you want to manage more variable part, you can insert &1 &2 ... &5 in titlebar (I believe 5 is max, but i don't remember), and so:
    SET TITLEBAR 'XXX' WITH TITLE1 TITLE2.....
    Max

  • Get the parameter from the URL

    Hello
    I have a problem. I want to know the id that is in the url of an extern site. For example http://www.example.com/employer.jsp?id=1234
    Does anybody know how I can get the value 1234 fom the url. I have no idea but it is very important for me.
    Please help me,
    Henk

    oic. If the document location according to the browser is that URL with the id or whatever, then you could use Javascript to set the value of a hidden form field:
    <body ... onload="document.forms['myform'].submit();">
    <form name="myform" ... onsubmit="this.url.value=document.location.href; return true;">
    <input type="hidden" name="url" />
    Of course, that'll submit the form on load, you can change that part if you want.
    If the page is in a frameset and you want the top page's location, you can do:
    <form name="myform" ... onsubmit="this.url.value=top.document.location.href; return true;">
    But, the browser is going to have the location of whatever page it thinks it's viewing, and if it got there by a redirect, it'll show the page it is on, not the page it was redirected from. For forwarding, it'll still think it is on the page that did the forwarding, not the end page. In other words, whatever you see in the brower's location bar should be what you'll get.

  • How to pass the parameter in the where clause of the select statement

    Hi All,
    Iam getting one of the value from the Input otd and using this value i need to query one of the tables in oracle database and selected the table using the oracle eway otd like shown below .
    otdRISKBLOCK_1.getRISKBLOCK().select() .
    where clause in side the select takes a string parameter as Iam getting the string parameter from the input otd and passing this to where clause by creating a string literal after deployment it is giving an error saying "ORA-00920: invalid relational operator".
    can any one throw some input on this .
    Thanks in Advance
    Srikanth

    You will see this error if the search condition was entered with an invalid or missing relational operator.
    You need to include a valid relational operator such as
      =, !=, ^=, <>, >, <, >=, <=, ALL, ANY, [NOT] BETWEEN, EXISTS, [NOT] IN, IS [NOT] NULL, or [NOT] LIKE in the condition. in the sql statement.
    Can you throw some more light on how are you designing your project?

  • Can the parameter in the url be invisible?

    hi,
    I want the parameters in the url to be invisible. That is if the url is
    http://localhost:8080/index.jsp?create=12 , so in the url bar it has to be displayed like
    http://localhost:8080/index.jsp. But the parameters should not be displayed. Is it possible?
    If possible how? Can you send the code?
    Thanks in anticipation
    Deepa Datar

    Greetings,
    if the username & password is right the user has to be
    redirected to the index.jsp page, where the usernameHow are you "redirecting", with sendRedirect? This method adds an HTTP 'Location' header to the response which instructs the browser to "fetch the response" from the given URL (including parameters, if any). Unfortunately, the browser uses a GET request on the next resource so, "no", its not possible to make the (GET) parameter(s) invisible - this is a limitation of the HTTP protocol. However, it seems what you really want in this case is not to "redirect" but to "dispatch" the request. Request dispatching allows your servlet to forward the request to, and/or include responses from, another resource on the same server without the overhead of redirecting the client. Additionally, the original request and response objects are maintained which can be modified with additional ("invisible") attributes:
    // In service thread...
    request.setAttribute( "client", "12" );
    RequestDispatcher rd = request.getRequestDispatcher( "index.jsp" );
    rd.forward( request, response );I hope this helps.
    Can any one help me out? Its actually urgent.
    Thanks in anticipation
    Deepa DatarRegards,
    Tony "Vee Schade" Cook

  • Passing the parameter in the Function module MESSAGE_SEND_AS_MAIL

    Hi all,
    I have to send the same message to five different mail ID's using the Function module MESSAGE_SEND_AS_MAIL
    How to pass this five mail ID's in the Parameter Reciever of the Function module
    Regards
    Ajay

    see if this helps
    REPORT  Z_MESSAGE.
    data receiv type standard table of SOMLRECI1 initial size 0.
    data wa type SOMLRECI1.
    wa-receiver = 'email address in caps'.
    wa-REC_TYPE = 'U'.
    append wa to receiv.
    wa-receiver = 'email address in caps'.
    wa-REC_TYPE = 'U'.
    append wa to receiv.
    do so more more three
    CALL FUNCTION 'MESSAGE_SEND_AS_MAIL'
      EXPORTING
        msgid           = 'Z_ZZZ_CA_MESSAGES'
        msgno           = '000'
       MSGV1           = 'material'
       MSGV2           = 'MAT'
       MSGV3           = 'MM'
       MSGV4           = 'MMM'
      tables
        receivers       = receiv[]
              COMMIT WORK AND WAIT.
    then u can go to SOST transaction and see that the mail has been or is yet to be sent. It worked for me. The message comes in an PDF form to the mail box.
    Edited by: Biswadeep Ghosh on Jun 25, 2008 2:28 PM
    Edited by: Biswadeep Ghosh on Jun 25, 2008 2:30 PM

  • How to display the parameter in  the xmlp report ouput.--Urgent Requirement

    Hi All
    I have requirement of developing a report using xml publisher.Report has 10 parameters, I have to display the values of all the parameters in the report ouput.
    Thanks in advance

    yes using <?param@begin:PARAMETER_NAME?> will be good
    solution.
    when you use this,there will be no need of disturbing
    your RDF,no extra formulae columns,no exxtra summary
    columns.Hi All
    Thanks for the reply, it is working fine with <?param@begin:PARAMETER_NAME?>.
    Earlier I use to write all the parameters in the select clause and use it in rtf template.
    I think <?param@begin:PARAMETER_NAME?> this is the exact solution for displaying parameter values in the report.
    Thank you very much.
    Regards
    Srini.

  • Ho to disabled the parameter on the selection screen

    Hi all,
    I have a parameter (p_matnr)  and two radiobutton b1 and b2 on the selection screen. Now what the requirement is if user selects radio button b2, the parameter should get disabled. I know it can be done by <b>loop at screen</b> and then modifying the screen but in this case start-of-seection is to be called. In my case as the user selects the radio button b2 the parameter should be appear disabled. the code which is given below will work in that case where user selects the b2 and then press F8. Bu i don't want the user to pres F8. He will only select the b2 and will find the parameter (p_matnr) disabled.
    Please suggest something.
    AT SELECTION-SCREEN outpu.
    IF b2 = 'X'.
    LOOP AT SCREEN.
    IF screen-name cs 'p1' .
    screen-input = 0.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    ENDIF.
    Thanks,
    Annup.

    Hi,
    Try this i have used this in my code
    SELECTION-SCREEN BEGIN OF BLOCK b_0 WITH FRAME TITLE text-002.
    SELECTION-SCREEN BEGIN OF BLOCK b_1 WITH FRAME TITLE text-000.
    PARAMETERS:      rb_img    RADIOBUTTON GROUP rad1 user-command rad.
    PARAMETERS:      rb_invo   RADIOBUTTON GROUP rad1.
    SELECTION-SCREEN BEGIN OF BLOCK b_2 WITH FRAME TITLE text-001.
    *PARAMETERS:      rb_img    RADIOBUTTON GROUP rad1.
    PARAMETERS:      p_from    like bkpf-bldat modif id gr2,
                     p_to      like bkpf-bldat modif id gr2.
    SELECT-OPTIONS:  s_arobj  FOR   toa01-ar_object modif id gr2.
    SELECTION-SCREEN END OF BLOCK b_2.
    SELECTION-SCREEN BEGIN OF BLOCK b_3 WITH FRAME TITLE text-001.
    *PARAMETERS:      rb_invo   RADIOBUTTON GROUP rad1.
    SELECT-OPTIONS:  s_bukrs   FOR bkpf-bukrs modif id gr1,
                     s_belnr   FOR bkpf-belnr modif id gr1,
                     s_gjahr   FOR bkpf-gjahr modif id gr1,
    SELECTION-SCREEN END OF BLOCK b_3.
    SELECTION-SCREEN END OF BLOCK b_0.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-group1 = 'GR1'.   "Name field
          IF rb_invo  = space.
            screen-active = 0.
          ELSE.
            screen-active = 1.
          ENDIF.
          MODIFY SCREEN.
        ELSEIF screen-group1 = 'GR2'.
          IF rb_invo  = c_x.
            screen-active = 0.
          ELSE.
            screen-active = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    START-OF-SELECTION.
    Thanks & Regards,
    Judith.

  • Hide the parameter in the adress bar

    HI all i am using oracle reports 10G....
    now i want to ask that is there is way to hide the adress in the adress bar of internetexplorer
    like
    http://exam:8888/reports/rwservlet?report=exam.rdf&userid=atmsuser/[email protected]&destype=cache&desformat=pdf&P_VDSID=2&P_START_DATE=05/07/2003
    like it shows the whole adress in the adress bar and that is not good scurity wise......
    just in forms10G we change the formsweb.cgf file to hide the parameters in forms, Is it possible to hide in reports
    Thanks in advance
    Shayan
    [email protected]

    If you use IE then you have to add the following code in HTMLbeforeform script.
    <script>var windowHandle;function openWindowURL(URLString){windowHandle = window.open(URLString,"Forms","location=false,toolbar=false,resizable,scrollbars");windowHandle.focus();}function closeWindow(){if (windowHandle && !windowHandle.closed){windowHandle.close();}else{ }}</script>
    If you other browser then
         WEB.SHOW_DOCUMENT('javascript:window.open("TARGET=_blank>'||your_URLl||'","","fullscreen=no,title= "daybreak reports",titlebar=no,location=no,toolbar=no,menubar=no,status=no,resizable=yes");self.close()','_blank');
    Hope this will help you to resovle the issue.

  • See the value of the parameter in the oracle report

    Hi experts,
    Can you please tell me how can i see the value of any parameter in the report.I am sending one parameter from one form and i want to see it's value in the report.
    Is there any function like message in report.
    another thing can you please tell me that how can i make use of triggers in forms.
    Regards
    Rajat

    another way to see the passed value, create a temp/testing field with source of p_my_parameter.
    Forms Trigger Qs go Forms Forum.

  • Syntax error while using the parameter inside the badi method.

    Hello all ,
    I'm writing a code in the badi implementation . The badi is /SAPSLL/CTRL_MM0C_R3 . this badi contains a metthod API_CONTROL_MODIFY.This badi triggers while using MIGO transaction .
    It is having the following parameter .
    IT_MSEG     Importing     Type     SLLR3_MSEG_T .
    SLLR3_MSEG_T is declared as follows.
    TYPES: sllr3_mkpf_t LIKE mkpf OCCURS 0,
                sllr3_mseg_t LIKE mseg OCCURS 0.
    here i have to get the werks value that is populated into IT_MSEG whie doing MIGO .
    I have declared a local variable and assigned werks value from the IT_MSEG to the local variable as follows
    DATA:l_werks type werks.
    l_werks = IT_MSEG-WERKS.     
    But I'm getting the following error.
    "IT_MSEG" is a table without a header line and therefore has no
    component called "WERKS".
    How should i avoid this error. Please give me sample code on how to avoid this error.
    thanks in advance
    pavan

    Hi,
    Move the row from IT_MSEG into a work area and use it. Declare the workarea of required type.
    DATA:l_werks type werks.
    read table it_mseg into wa_mseg index 1.
    l_werks = wa_MSEG-WERKS.
    Regards
    Vinod

  • Set the parameter in the selection screen of a program from another program

    Hi ALL,
    I need to call the program RHALESMD from another program and the program RHALESMD takes from date as one of the input parameter.how do i set the from date from the calling program and call RHALESMD
    Thanks
    Bala Duvvuri

    i got the answer
    Program accessed
    REPORT report1.
    DATA text TYPE c LENGTH 10.
    SELECTION-SCREEN BEGIN OF SCREEN 1100.
      SELECT-OPTIONS: selcrit1 FOR text,
                      selcrit2 FOR text.
    SELECTION-SCREEN END OF SCREEN 1100.
    Calling program
    REPORT report2.
    DATA: text       TYPE c LENGTH 10,
          rspar_tab  TYPE TABLE OF rsparams,
          rspar_line LIKE LINE OF rspar_tab,
          range_tab  LIKE RANGE OF text,
          range_line LIKE LINE OF range_tab.
    rspar_line-selname = 'SELCRIT1'.
    rspar_line-kind    = 'S'.
    rspar_line-sign    = 'I'.
    rspar_line-option  = 'EQ'.
    rspar_line-low     = 'ABAP'.
    APPEND rspar_line TO rspar_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'H'.
    APPEND range_line TO range_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'K'.
    APPEND range_line TO range_tab.
    SUBMIT report1 USING SELECTION-SCREEN '1100'
                   WITH SELECTION-TABLE rspar_tab
                   WITH selcrit2 BETWEEN 'H' AND 'K'
                   WITH selcrit2 IN range_tab
                   AND RETURN.
    Thanks
    Bala Duvvuri

Maybe you are looking for

  • Beginner's question

    i started to work with labview newly, the task im tryin to do is the following : i have a microcontroller and i wanna know if it is alive or not .. simply am tryin to open a port (com) and to ping the microcontroller using the functions (.dll provide

  • Syslogd is always crashing ... :-(

    Hi all, for several days now I have a very high CPU usage on both G5 processors here on my PowerMac immediately after booting & logging in. From the Activity Monitor I learned that the syslog deamon was the one who ate all the CPU time. This behaviou

  • Would this external HD be recomended for my MBP?

    http://www.bestbuy.com/site/WesternDigital+-+My+Book+Studio+LX+2TB+External+FireWire+and+USB+2.0+HardDrive/9941284.p?id=1218198434013&skuId=9941284 it has the Firewire 800 cable, i believe thats the fastest way to transfer data/ video... am I correct

  • I can not reinstall Photoshop Extended CS6

    recently i reinstalled win7 in my computer. after that, i can not reinstall phototshop extended cs6.

  • Import into LR on a Mac

    I am a Canon shooter and a seasoned Lightroom user.  About a month ago my Mac stopped allowing me to import images from my CF card into Lightroom.  I have worked with Mac and Adobe to no avail.  At this point I know that my Mac can see the card and w