How create a variable that changes (by 0.05) on each iteration in a loop?

We are trying to control  New Era Syringe pumps using Labview. We want that those pumps could dispense different volumes on wells. For example 0.05ml in well one (using actuators we can move the wells),  0.1ml in well 2, 0.15ml in well 3 and so on. We think that we may need a "For loop" in which the number of iteration is the number of wells, but we do not know how to create a variable, inside the loop that can increase .05 on each iteration, and then we can use that variable as a "volume input" in our program.

Hi tbob,
multiple add operations with floats may induce more errors than a multiply/divide due to floating point representations (especially on numbers that can't be represented exactly, like 0.05)... The next step in this routine might be a comparison of setpoint and measurement value
Message Edited by GerdW on 05-10-2010 08:04 PM
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • How create a replice "Mass Change for Quotation" from the "Mass..for order"

    Hello everybody,
    How create a replica "Mass Change for Quotation" UI object from the standard "Mass change for Sales Ordesr" UI object...
    Way: SAP CRM==>Select a business role "SPL-Service part Management" ==> Sales ==> "Mass Change Sales Orders"
    It needs a replica with the title "Mass Change for Quotation" .
    Could you pleas help?
    Mit freundlichen Gruessen / Kind regards,
    Pavel Biarozkin

    Hi Howard Brown,
    Thanks for your suggestions about Windows user experience. Actually, we are glad to hear more feedback
     about Windows operating system so that we can improve Windows to make it be more easier to
     use.
    As a suggestion for your current situation, you can use Windows Charm Bar to search Apps, it is also easy to use.
    Alex Zhao
    TechNet Community Support

  • How to make 2 clients on same VLAN communicate to each other when tunnel-loop-prevention is enabled?

    Requirement:
    How to make two clients on same VLAN communicate to each other when tunnel-loop-prevention is enabled on tunneled-node configuration at controller?
    Whenever we enable tunnel-loop-prevention on controller while we configure tunneled-node, the communication between two tunneled-node client on same VLAN is blocked or dropped.
    If the tunneled-node clients are of different VLANs then they can communicate between them even when the tunnel-loop-prevention is enabled on the controller.
    Solution:
    To make two tunneled-node client on same VLAN to communicate between them, we need to enable "local-proxy-arp" for the interface VLAN on the controller.
    Once it is enabled now the tunneled-node clients on same VLAN can communicate between each other. 
    Configuration:
    To enable "local-proxy-arp":
    Get to the interface of the VLAN on the controller
    Example :
    (config)#interface vlan 5
    (config)#ip local-proxy-arp
    To enable tunnel loop prevention on controller
    (config)# tunnel-loop-prevention
    Verification
    Show commands:
    To check if tunnel-loop-prevention is enabled or disabled
    #show tunneled-node config
    Tunnelded node Server: Enabled
    Tunnel Loop Prevention: Enabled
    To check if local-proxy-ap is enabled:
    #show interface vlan 5
    Look for in the output "ProxyARP enable"

    streetfi8er wrote:
    Server ready,waiting for client:
    Exception in thread "New THREAD" java.lang.NullPointerException
         at server4$server4Thread.run(server4.java:88)
    Failed to accept client
    when i run the second client programme on different a console in the same system i get the error that:
    Unknown HostOK, I'm no socket programming expert; but I can see a few potential problems with what you've written.
    1. First off, which line is line 88? Line numbers would be useful. Also, indenting your code properly would make it easier to read.
    2. Your 'while(!str.equalsIgnoreCase("close"))' will always fail with a NullPointerException because 'str' is initially set to null.
    3. Your 'while(true)' loop worries me. How does it exit? Relying on an exception is usually very bad practise.
    4. You are not handling SecurityExceptions. While it's unlikely to happen on your machine; it could easily happen on another.
    5. It might be worth indicating the actual exception thrown in your "Failed to accept client" message. accept() can throw three different types of IOException.
    6. All the threads you create will be called "New THREAD", which doesn't provide much value.
    HIH
    Winston

  • How create a variable in the TVARVC that calculate the last week

    Hi Gurus,
    i need create a Variable in the table TVARVC that calculate which was the last week to run a Program in BW,  i have no idea how can i do it, where do i must start? please can you tell me step by step, i will really appreciate it

    This blog should help you create a variable in TVARVC table:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9075b11a-6e43-2c10-b7be-cfa0e97ec0cc?quicklink=index&overridelayout=true
    you can leave out the information broadcasting part. But can you elaborate what exactly is the requirement.

  • How do I create a variable that is a time?

    What I need is a variable that is a time such as 13:00 that can be used in an equation like 13:00 - 12:30 = 00:30 or 13:00 - 12:45 = 00:15 etc.
    I have no idea how to do this because if I use something like:
    var Onsite = 12:30
    var Offsite = 13:00
    I get the following message:
    Consecutive statements on a line must be separated by ;
    It is pointing to the : and that makes sense but if I use this:
    var Onsite = "12:30"
    var Offsite = "13:00"
    Then I can't use it as an equation because it is being treated as text.
    Any ideas?

    Look at the NSDate class if your using Objective-C (or Swift), it can be used to create points in time (date + time) and can determine the distance (in seconds) between to points, using the -timeIntervalSince* methods.

  • How to set variables that queries can use?(10g)

    I am using only ONE TABLE here for all queries. I have one query which pulls out a key and seven other queries that create seven different report sections based on that key. All queries access data in the same table.
    The first query ahould set a key so the other seven can use that key to get data. The key changes everytime all seven queries get executed and a report page is displayed, then the queries use the new key until all keys generated by the first query are used.
    Questions?
    How do I get the seven queries to check that key. Can you have (declare) variables in Reports Builder that you can assign a value in every iteration and then include a check (for that value)in a where clause of other queries? If yes how would I do that?
    In a programming language this is simple, you pass the same value as a parameter to several functions... Can you do something similar here and set a value that all queries can check against? Like a local or global variable.
    Thanks
    Mike

    Sorry, I guess there were a few typos in my last post!
    OK. All data is pulled from the same table. Here is how the report should look:
    KEY (a number)
    Data from query 1 that belongs to key above
    more Data from query 1 that belongs to key above
    more Data from query 1 that belongs to key above
    Data from query 2 that belongs to key above
    more Data from query 2 that belongs to key above
    more Data from query 2 that belongs to key above
    Data from query 3 that belongs to key above
    Data from query 4 that belongs to key above
    Data from query 5 that belongs to key above
    Data from query 6, same
    Data from query 7, same
    END OF PAGE 1
    (there is a maximum 45 possible data lines so data will not exceed the length of a page)
    Next Page:
    KEY (a different number)
    Data from query 1 that belongs to key above
    more Data from query 1 same
    more Data from query 1 same
    Data from query 2 same
    more Data from query 2...
    more Data from query 2....
    Data from query 3 same
    Data from query 4...
    Data from query 5.....
    Data from query 6....
    Data from query 7....
    END OF PAGE 2
    Other pages all look the same. Data from each query is based on the key on the first line and so on.
    Example:
    select ipseries from ipTable (possibly for query 1)
    select ipSeries,sum(ipvalue1+ipValue2+ipvalue3) from ipTable (query1) group by....
    select (sum(ipvalue1+ipValue2+ipvalue3)/3) from ipTable (query2)
    select (sum(ipvalue1*ipValue2*ipvalue3)) from ipTable (query3)
    and so on. Each query puills a set of values or sums a set of values.... etc.
    (please note that what I have not included is that somehow we need to relate each query with the key)
    Thanks a lot

  • Creating a button that changes with the images in a slideshow in Adobe Muse?

    Are you able to create a new button inside or outside of a slide show that changes with the images?  I want to have the images change and contain a title and link to the project they are related to.  Whenever the image changes, whether automatically or someone clicks the "Next/Previous" buttons, the button link and title will change with it.

    Sorry,  not sure exactly how to describe it.  I have a link to a page that uses this technique:
    www.roofstudio.tv
    The first page ("Featured" page) contains the what I am looking for.   The title of the project changes with picture but the link on the "view  project" button (probably just a new button in the same location) also changes.   So when the picture of project X is up the button will take you to project X's page.  When it changes to the project Y picture, the link will take you to project Y's page.  My problem is that I'm not sure how have my button or even the text to change.   Slideshows only change pictures not buttons.   Since it's a widget i can't seem to add any new buttons.  Hope this is a better description of my issue.

  • Is it possible to create a variable that tells you which slides the user has visited?

    Hi there.
    I'm working on a project where I want a slide to show a continue button and hide 2 textboxes, but ONLY when the user has already visited 2 other slides. I can only find variables that tell you the slide the user previously visited.
    Is it possible to set up a variable that does this?
    I want to create the following advanced action:
    If the user has visited slides 62 AND 87, show image_536 and hide text_caption_243 and text_caption_242
    I don't want the action to happen if only 1 of the 2 slides have been visited - it has to happen when both have been visited.
    Hope that makes sense.
    I'm using Captivate 7.
    Thanks.

    You will need two variables, it can be booleans. I'll label them v_one and v_two with a default value of 0
    Since I don't know how the slides are formatted, do you use a Next button or are all the slide frames visited? You'll need to have an event on those two slides to trigger an action:
    Assign v_one with 1     on slide 62
    And a similar action on the other slide to toggle v_two (do not use the toggle command, if the user visits a slide twice, it would be toggled back to 0).
    You didn't specify where those text containers have to be (please, label your objects and slides)? But you'll need conditional advanced action triggered by another event somewhere:
       IF v_one is equal to 1   AND
           v_two is equal to 1
      Show text1
      Show text2

  • How create a variable with not like 'Virtual'

    I'm creating a report and my requirement is to select all plant names wich does not have 'VIRTUAL' word in the name. Can you tell me how to do this?
    Can you tell me how to create a variable and what to have in it?
    Thanks,
    PV

    Dear P V,
    The variable processing types are,
    1)Manual Entry/Default Value
    2)Replacement Path
    3)Customer Exit
    4)SAP Exit
    5)Authorizations
    OverView
    http://help.sap.com/saphelp_nw04s/helpdata/en/cf/579b3c494d8e15e10000000a114084/frameset.htm
    Check this Link for more
    http://help.sap.com/saphelp_nw04s/helpdata/en/61/579b3c494d8e15e10000000a114084/frameset.htm
    Check this for Replacement Path,
    http://www.sd-solutions.com/documents/SDS_BW_Replacement
    http://help.sap.com/saphelp_nw04/helpdata/en/ca/5f9ac61a205a459d0e7ef313d10321/frameset.htm
    You can find details about variables here:
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a56a7e09411d2acb90000e829fbfe/content.htm
    You can see the following link for details on processing types .
    http://help.sap.com/saphelp_nw04/helpdata/en/61/579b3c494d8e15e10000000a114084/content.htm
    see the below links u can find examples as wel as good stuff
    http://help.sap.com/saphelp_nw04/helpdata/en/5c/8db07d555411d189660000e829fbbd/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/25d98cf6-0d01-0010-0e9b-edcd4597335a
    replacement path
    variables
    Hope it helps
    regards
    bala

  • How do I create a variable that uses Previous() and references itself.

    I am trying to create a crosstab with a number of meaures in it. I have a variable called opening stock and another called closing stock. The opening stock for day 2 is the closing stock for day 1 and is a variable [LV Opening Stock] defined as =Previous([closing stock];Row).  This works fine. But, the closing stock for day 2 is the opening stock plus production minus sales. So my variable has to reference the previous days closing stock.
    When it is defined as =[LV Opening Stock]+[Planned Production Qty]-[Forecast Daily Qty] it validates but when I try to save it I get the following message :  The formula for variable [LV Opening Stock] contains a reference to a variable with the same short name. You must use the fully-qualified variable name in the formula to remove this ambiguity. (Error: WIS 10040)
    How do I solve this? What is the fully-qualified name? Is it because it's effectively referencing itself?
    I'm using XI R2 sp4
    Thanks
    John

    Hi. I'm having the same issue. Please share with us if you find a solution.
    Many thanks.

  • How to create a workflow that changes display setting after opening a URL

    I have never used Automator before but I am guessing this workflow should be pretty simple, but I need your help because I am hungover and my brain has been inactive for the last week.
    I want to set 'Put the display(s) to sleep when the computer is inactive for:' to 'Never' when I click on a favourite in Safari. The URL is tvcatchup.com which streams UK terrestrial TV online.
    Can someone please explain how to do this? Thanks.

    Much easier merely to turn off sleep before watching streaming video.
    BTW, I realise that tvcatchup is still in beta, but I am severely unimpressed with it!
    You can't play full screen without expanding the window, and it grinds to a halt every 3 minutes!
    Try
    http://zattoo.com/
    which is also free and perfectly legal, and works a treat with OS X.

  • Create record variable that refers dynamic query assigned to a ref cursor?

    Hi ,
    Just explaining what I am trying to achieve:
    1) i have a hr.departments table that was loaded in hr schema on 1st oct 2012 with 4 columns(department_id, department_name, manager_id, location_id)
    2) now I have a new schema by my name 'rahul' and I have loaded departments table but now an additional column has come into picture,ie created_date, this table got loaded on 1st-Nov-2012
    3) Now going forward my columns could be dropped from the departments table (it can be a case), for example might be my departments table in my schema 'rahul' one day could comprise of only 3 columns(department_id,department_name,manager_id)
    4) Now in the next step, I have managed to extract common column names(in a single line where columns are delimited using a comma) from both the tables(hr.departments and rahul.departments) which are (department_id, department_name, manager_id, location_id) using all_tab_cols table and I have written a function for it which i will be pasting below.
    5) now going forward, using the above column names line with column names delimited using comma, I have used a ref cursor and assigned a query to it using the line of columns that I have extracted from the above point
    6) Now I want to create a record variable which refers to my ref cursor, something like we do when we create a record variable by reffering to an explicit cursor defination that we give in the declaration block.
    PS:
    1) I have been out of touch with plsql for a long time so I have lost a lot of mmeory regarding plsql.
    2) basically I need to compare data in hr.departments table with rahul.departments table for only columns that are common to both the tables, rest new or discarded columns information will go in one of the log tables that I have created(this is done already)
    Please help me, I did try searching on google for the same but it really confused me very badly, any kind of help is appreciated, please find my code below:
    Regards
    Rahul
    Code :
    ===================================================================================================
    create or replace procedure p_compare_data(fp_old_table_name in varchar2, fp_new_table_name in varchar2)
    is
    type ref_cursor_old_table is ref cursor;
    v_ref_cursor_old_table ref_cursor_old_table;
    --record_v_ref_cursor_old_table v_ref_cursor_old_table;
    --record_ref_cursor_old_table v_ref_cursor_old_table%ROWTYPE;
    Lv_all_column_names varchar2(2000);
    function f_fetch_common_column_names(fp_old_table_name in varchar2, fp_new_table_name in varchar2)
    return varchar2
    is
              Lv_all_column_names varchar2(2000);
    begin
              execute immediate 'select ltrim(all_column_names,'','') all_column_names_in_line from (select * from (select sys_connect_by_path(hr_e_column_name,'','') all_column_names from (select hr_e_column_name, rownum curr, rownum - 1 prev from (select hr_e.* , rahul_e.* , case when (hr_e_column_name = rahul_e_column_name) then 1 when (rahul_e_column_name is NULL) then 2 when (hr_e_column_name is NULL) then 3 end decision from (select column_name hr_e_column_name from all_tab_cols where owner ='''||substr(fp_old_table_name,1,instr(fp_old_table_name,'.',1,1)-1)||''' and table_name = '''||substr(fp_old_table_name,instr(fp_old_table_name,'.',1,1)+1)||''') hr_e full outer join (select column_name rahul_e_column_name from all_tab_cols where owner = '''||substr(fp_new_table_name,1,instr(fp_new_table_name,'.',1,1)-1)||''' and table_name = '''||substr(fp_new_table_name,instr(fp_new_table_name,'.',1,1)+1)||''') rahul_e on hr_e.hr_e_column_name = rahul_e.rahul_e_column_name) decision_table where decision = 1) a start with a.curr = 1 connect by prior curr = prev) b order by length(b.all_column_names) desc) all_column_names_in_line where rownum = 1' into Lv_all_column_names;
              return (Lv_all_column_names);
    end;
    begin
         Lv_all_column_names := f_fetch_common_column_names(fp_old_table_name, fp_new_table_name);
         --dbms_output.put_line(Lv_all_column_names);
         open v_ref_cursor_old_table for ('select '||Lv_all_column_names||' from '||fp_old_table_name);
    end;
    =====================================================================================================

    >
    6) Now I want to create a record variable which refers to my ref cursor, something like we do when we create a record variable by reffering to an explicit cursor defination that we give in the declaration block.
    >
    This thread is basically nothing more than a continuation of your original thread except now you are finally explaining what you are really trying to do.
    Re: passing table name to a procedure and then need to open a cursor ..
    In that original thread you said you found the solution
    >
    Well Mate thanks for your suggestion but I got it working through ref cusror, thanks for your time.
    >
    So I ask you to post your 'solution' and when you finally did it was clear that you hadn't solved anything at all. Your solution used a ref cursor all right but the code relied on a record ('record_employees') that was based on a table name ('employees') that was declared within the procedure. There isn't much point in passing in a table name if you have to hard-code the table name in the procedure.
    create or replace procedure p_ref_cursor(fp_old_table in varchar2)
    is
    type ref_cursor is REF CURSOR;
    v_ref_cursor ref_cursor;
    record_employees hr.employees%ROWTYPE;
    begin
    open v_ref_cursor for 'select * from '||fp_old_table;
    loop
    fetch v_ref_cursor into record_employees;
    exit when v_ref_cursor%NOTFOUND;
    dbms_output.put_line(record_employees.employee_id);
    end loop;
    end;Then sb92075 ask you the question that illustrates what I just said
    >
    what happens when you pass in "HR.DEPARTMENTS" ; besides throwing errors?
    >
    And you blew him off with this
    >
    Mate, departments never came in my context, in my prior message I explained what I was trying to achieve ... so I dont know what problem you are understanding reading my posts.
    >
    And now here you are asking how to get this to work for the departments table.
    It is very difficult to help someone that won't tell us what it is they are really trying to do so we can try to suggest some better ways of doing it. Hopefully, in the future, you wil start by explaining your problems instead of focusing on the solution you think you should use.
    Back to the issue -
    The first thing you should do is finish defining the requirements. Assuming the above actually works to identify columns that have different data what are you going to do with that information?
    1. Do you need to save that different data from TABLE1 somewhere?
    2. If you don't save it how will anyone look at it to decide which table has the correct data?
    3. If you do save it how will you save it 'generically' since other tables will have different columns and datatypes?
    4. What about the data from the same record in TABLE2; do you need to save that data somewhere?
    5. Will these two tables have primary keys? Are they on the same columns in each table? If not what if TABLE1 has one record but there are TWO records in TABLE2 that are identical. Is that a match? Or is that a problem because TABLE2 has an extra record even though the record is identical?
    In short detecting the differences is just one small part of the entire problem. You also need to save those differences somewhere so someone can examine the data and decide what action to take. That is the more difficult part of trying to implement a 'generic' solution.
    But now that we know what you are really trying to do take a read through this thread from 6 years ago. It has three different ways to pass a query to a procedure and get different output. You may want to save a copy of the thread since it has some very advanced techniques in it.
    How to pipeline a function with a dynamic number of columns?
    See ascheffer's reply Posted: May 9, 2006 4:53 AM for using data cartridge functionality with a pipelined function.
    See Kamal's reply Posted: May 10, 2006 4:49 AM - it shows how to get XML output.
    See BluShadow's reply Posted: Mar 27, 2009 1:50 AM - for using dynamic sql

  • I have always used the same computer to update both of our iphones , welll with this last one it changed my husbands apple account to mine , how do I get that change back, I looked on support but there is nothing l can find to address that issue

    He still has money on his account, and plus it is just one more password and all. The information on his phone is all the same, thank god I didn't lose his phonebook or anything.
    I have always updated the phones on the same machine, he is also upset on all the changes this last update did. He doesn't like change.
    Anyone know how I can contact apple just about an apple id question. I wish they had live chat at least

    Now I feel dumb, once I posted this it brought up others like it and tada there it was , just sign out and then sign back in on the other account. Learn somthing new everyday.  Just would like to know why it signed into my account when it never did before....

  • How creating a llb that will contain all subvis of an upper vi?

    Hi,
    I developed an application under 6.1, which is composed of subvis coming from several developments, stored in various places on my PC...
    In order to distribute it, I was wondering if it was possible, from the upper vi, to create a llb (or a distribution kit) with automatic inclusion of all subvis...
    So that, I don't need to make a really painful job: Get the list of components needed for the upper vi execution, store all elements in the same folder, and then create the llb.
    Can someone help me?
    Thks in advance
    Zib

    It's very easy. Just go to File>Save With Options, and select Development Distribution.

  • When i try to update some apps  theres another email that appears how can i get that changed

    my email does not appear on any of my updates

    That usually happens when apps have been purchased/downloaded with another Apple ID. The apps are locked to the Apple ID used to download/purchase them. You would need to delete those apps and download again using your Apple ID.

Maybe you are looking for