same function brings a different number of points in the various calls?

I use an automated test program, tests of mobile pistons. The test will extend the plunger and collect data of position through a few pots and the current data when moving. He will then go to the piston, and make the same data collection. Then, he makes other tests. The data are written in files and are then retrieved for after the treatment trials later.

I use the same function for the extension and retraction, and I notice that the number of points of data collected during the measurement is always much less than the number of points collected during September.

It's the 3rd version of function, I used to collect the data of the test apparatus, and this question has stuck with all 3 versions. I joined the service in this post. First level VI is large and contains several screws at a lower level, so I can't understand all of this. I use a USB-6008, LV8.5 Daqmx 8.5.

Any ideas why this would be different each call?

Explanation of the function:

The shaded area VI with 'NOR' is a Subvi, which communicates with a controller for the tester. He sends the position to move the piston. In the loop, the daq assistant grabs data from the 6008 and examines the values of pot. If the values are close enough together, several times, it stops the loop and data collection (the piston has reached the end of its run). After the loop of data collection, the rest of the service is to write data to a file.

NOTE that only the case 'true' inside the while loop questions here, because that is where the rub.

PS. Sorry the front looks like crap, because it's a Subvi to its façade has ever seen.

-SK-

I think that the culprit is the DAQ Assistant.   I suspect that the first time you call the DAQ Assistant (this will always be in the course of an extension) it takes some amount of time to get the task configured and started.  As the piston is already running, you then have less time to take samples.   When you make the withdrawal, the task is already loaded into memory and can begin to collect samples immediately.  You should get your task daqmx Installer and started outside the while loop before starting to move the piston.

Tags: NI Software

Similar Questions

  • Number of points and the number of plots for table and graph

    Hi guys,.

    Can someone explain to me why I get when I run the number Vi 1 2 plots for each table and graph with 6 points, but when I run vi 2 I get 4 locations with 1 point each run assuming that the same logic applies to two screws

    Thank you.

    When wiring of the paintings in the graphics, it is assumed that each line are several points of land.

    You must convert the 2D table or right-click on the graphic and select "convert table.

  • The duplicate files. Same file appears in different directories - how to identify the programs that use these files?

    Hello

    Question 1 - I have a list of duplicate on my computer files. Very often, the same file appears in two or more different locations. So I guess this could mean different copies of the same file is used by various programs. It would then be important to know what program is using this file prior to the removal of duplicates.

    Question 2 - it would be possible to point all programs that use a file given in one place? That is to centralize the location of a file. What I think, could eliminate the need to have different copies at different locations. If so, how is it please?

    Thank you for your help.

    The duplication that you see is the result of a bad installation program written by eSupport. It has nothing to do with Microsoft. I could do this:

    1. Rename the folder c:\eSupport in eSupport.junk
    2. Wait a week or two.
    3. If all goes well, remove the renamed folder.
  • I was able to open a folder and then in the same window, open a different folder and would appear the icon «back» This is no longer the case. Can we salvage this feature? __prcync

    Maybe it's that simply close the window makes me return to the previous window

    Try this...

    Control PANEL > FOLDER OPTIONS > tab GENERAL - topic BROWSE the FOLDERS check "Open each folder in the same window" Mike Hall MVP - Windows Experience http://msmvps.com/blogs/mikehall/

  • Definition of different number of REB for each key

    Hello

    Assuming I have the following tables and sample data:

    create table test_tbl_aa
    (aa number(2));
    
    insert all into test_tbl_aa(aa) values(aa)
    select level aa
       from dual
       connect by level<=4;
       
    create table test_tbl_aa_n
    (aa number(2), n number(1));
    
    insert all into test_tbl_aa_n(aa, n)
      select aa, lv
        from test_tbl_aa
        cross join (select level lv
                    from dual
                    connect by level<= trunc(dbms_random.value(1,3))
                    ) v;
    

    For example, running the stmt insert in the table test_tbl_n the inserted rows are:

    AA    N
    --------
    1     1
    1     2
    2     1
    2     2
    3     1
    3     2
    4     1
    4     2
    

    In the example above defined result a stable set of records for each aa (for each series).

    Is it possible to generate different number or records in the table for each data value test_tbl_n

    column aa?

    For example for:

    AA    N
    --------
    1     1
    1     2
    2     1
    3     1
    4     1
    4     2
    

    Note: Oracle db 11g. v2

    Thank you very much

    SIM

    Do you mean like this?

    SQL > insert while test_tbl_aa_n (aa, n)
    2 Select aa, level
    test_tbl_aa 3
    4. connect by level<=>
    5 and aa = aa prior
    sys_guid() 6 and prior is not null
    7.

    6 rows created.

    SQL > select * from test_tbl_aa_n;
    AA N
    ---------- ----------
    1          1
    1          2
    2          1
    2          2
    3          1
    4          1

    6 selected lines.

  • Scripting: upper limit on the number of points in a clipping path to be converted to selection?

    Greetings,

    I work with some great with rather complex clipping paths tiff files and have written a script to convert a path to a selection, invert the selection, and delete pixels to downsample and save a PNG image with transparent background for the web.

    If the number of points in the clipping path is greater than 1000, Photoshop stops with a message 'Illegal Argument' and will not make the choice. "Making selection...". "the choice in the path palette manually works fine and works almost instantly.

    The problem is especially frustrating since the manual selection is so easily.

    Does anyone know how to give more points or to override this limit? I would also like to experiment with a scriptable command to simplify the path arbitrarily if there is no way around the problem at hand.

    Thank you

    When you say a clipping path, do you mean a vector path of a layer?  Created in the document, or you all ready clipping path create it using the script?  If you simply want to create a png image and a vector mask, can't you reverse the vector mask and or copy in which layer you want to cut, then resize?  You don't need a raster image to create a png image.

  • Possible to define strategies of OAM configuration on the same site on two different

    Is it possible to define strategies of OAM configuration on the same site on two different servers?

    One of the sites to have anonymous access but it to be protected. How to set up a policy without it automatically applies to all Web sites that match regardless of the host.

    How to differentiate the two OAM sites so that I can apply security different strategies for each of them?

    Thank you.

    You can refer to this [recent thread | http://forums.oracle.com/forums/thread.jspa?threadID=878094&tstart=0].

    Also, if one of the sites requires anonymous access for all the content and it's not going to change in the foreseeable future, just don't install/activate webgate on that.

    -Vinod

  • I want to buy an iBook. There are 2 different books with the same name, author, and the book cover. They are different number of pages with different prices. Specifically, all the light that we do not see. " How do you know that we purchase?

    I want to buy an iBook. There are 2 different books with the same name, author, and the book cover. They are different number of pages with different prices. Specifically, all the light that we do not see. " How do you know that we purchase?

    I would get one that has 4700 comments already.

  • How to share the same function in different frames

    I create a quiz of multiple choice with several questions.

    I have every clickable selection using "answer1", "answer2"... as the instance name.

    I created a standard button to show the different States and make selection (like what is below):

    ANSWER1.buttonMode = true; / / to display the hand icon

    ANSWER1.addEventListener (MouseEvent.CLICK, answer1Click);

    ANSWER1.addEventListener (MouseEvent.ROLL_OVER, answer1Rollover);

    ANSWER1.addEventListener (MouseEvent.ROLL_OUT, answer1Rollout);

    function answer1Click(ev:MouseEvent):void

    {

    ANSWER1.gotoanswerndStop (2);

    ANSWER2.gotoanswerndStop (1);

    answer3.gotoanswerndStop (1);

    answer4.gotoanswerndStop (1);

    salt = 1;

    }

    function answer1Rollover(ev:MouseEvent):void

    {

    ANSWER1.gotoanswerndStop (2);

    }

    function answer1Rollout(ev:MouseEvent):void

    {

    If (salt! = 1).

    {

    ANSWER1.gotoanswerndStop (1);

    }

    }

    Duplicate the setting for different questions, but I can't reuse the same functions for the first question. It would give error 'Duplicate' function definition... I don't want to rename the names of instances for each new question. How can I reuse the same function for questions?

    Thank you

    This layer only for functions do not use to add event listeners. Add headphones when the answer buttons appear:

  • How can I call 3 buttons to the same server function with 3 different return URL?

    Hello everyone...

    I have a question...

    Can I use the same function side server to send to guests 3 different swfURL whereby key pressed from one of them?

    If the answer is positive... How can I do it?

    Please, help me...

    Emiliano.

    on the client side

    import flash.net.Responder;

    var responder: responder = new responder (function name);

  • EqualLogic GroupManager displays a different number of replicas, 2 outgoing and incoming 1.

    GroupManager displays a different number of replicas, 2 outgoing and incoming 1.  Is this a normal behavior?

    I raise this question to technical assistance from Dell.  They checked with their lab environment and confirmed the same behavior.  There is no functional cause whose status is displayed like this.  Two points, they said:

    (1) the number of the line leaving includes the history of replication.   It will show you an extra line in addition to the number configured in the replica set. (in my case, it's 1 (configured) + 1 (extra), so 2 total)

    (2) the number of the replica by entering the real number of replica set used for the function of data redundancy.

  • function with a variable number of cubic curves

    Hello

    I have a set of data : a set representing the independent variable and a set representing the dependent variable. I need to find the minimum number of cubic curves (find their coefficients) that reduce the average quadratic error less than a given tolerance. If the tolerance is higher than 17 particular segments, so I need to raise an error.

    You have an idea what function blocks, I need to?

    I could use general polynomial Fit VI with order 3 and its default method to check the residue. If the residue is greater than the given tolerance, so I could try to use two cubic curves and test them on different starting and ending points until the residue is less than the given tolerance. If tolerance is not guaranteed, I add another curve and I test again the Assembly as shown above. By iteration until the residue is less than the given tolerance, or until I would need to add 18th cubic curve.

    If there was something ready, I would be grateful.

    Thank you.

    Fabiobonelli wrote:

    Please, you can test your VI adding another point to four present?

    X =-6453

    Y =-266

    Check the residue.

    Thank you.

    Did you even read my response? You have a serious air conditioning problem because the data is on a narrow Beach far from zero. By example-6500 ^ 3 is smaller that - 2E11, i.e. a value that many (many!) is orders of magnitude different from that of the constant term (1). The linear algebra problem that results is very ill, conditioned and just blindly Ford over the accelerator pedal are bad advice here.

    This isn't a problem with the implementation of LabVIEW, but a fundamental vice that you encouter also (or worse) If you would do your own math. No way around it. (See also)

    My recommendation is to delete the X offset and add it later again. Now things work correctly. (Note that a second order polynomial fitting still works without twist it).

    Try the and see for yourself.

  • Function editor does not support the pointer to the digital type

    Am I missing something or is it true that the CVI function Panel Editor does not support specifying a type parameter as a pointer of type number?

    I see no reason why he wouldn't or shouldn't.  It supports the pointer to char.  And it supports a table name (which, in C, is a pointer to the first element of the array).

    I guess I could use the array form as a pointer, but surely it's confusing when dealing with a simple pointer to a numeric scalar type.

    I am using the function Panel Editor only for the purpose of creating a dictionary of type so I can call functions DLL in VB.  Y at - he know somewhere how CVI types could are mapped to the VB types when you use the type dictionary?   for example, what happens if I use an unsigned int in a function parameter (VB does not support unsigned integers)?

    Menchar

    Hi Menchar,

    To create a pointer to an integer as a parameter to a function panel, you have two different options.

    First of all, all output parameters are defined as the default pointers.  So if you create an output parameter of type "int", he creates a ' int *' parameter.

    Second, if you want it to appear in the entry list, you can create a data type in CVI which will appear at the bottom of the list.  Data types to change your data types, go to the Options"(you must have a function Editor tab open and selected Panel to make this option available).  Enter the name of the type (in this case ' int * ') and click the Add button.  The new "int *" option should now appear at the bottom of the list.

    Third, you can use the array form (int []), but as you say, which can be confusing for other people looking at the code.  Or the other of the two first options are better choices.

    As for your second question, here's a link to a page MSDN showing types in Visual Basic and their representations .NET: http://msdn.microsoft.com/en-us/library/47zceaw7 (VS.80) .aspx.  This allows to make a comparison between VB and ANSI C data types.  For example, to ask on unsigned integers, and this site shows that Visual Basic has an Integer type (-2,147,483,648 through 2,147,483,64) and an unsigned return, UInteger (between 0 and 4 294 967 295).  From what I can tell, VB has signed versions of all its digital representations.  You can then take this with a list of ANSI C data types to convert between the two.  A list of ANSI C data types can be found here: http://www.exforsys.com/tutorials/c-language/c-programming-language-data-types.html

  • Errors with several buttons pointing to the same frame on the timeline. Animate CC

    I have a project where I'm using a function text button to reach a specific image and stop to view, however, if I take a contour of the object and put it on a symbol, I can't have two different objects pointing to the same frame, it generates the error because the frame can be called only by a single button/symbol.

    My solution is to reproduce each of the frames and each have addressed as a new image with the same content.

    Is there a better way to do this?  I'm not fluent Actionscript 3.

    Thank you

    Rick

    You can't have double function names and using the same name/instance for different objects reference is problematic, but you pouvez have different objects "..." pointing at the same time.

    Btn1.addEventListener (MouseEvent.Click, F1);

    btn2.addEventListener (MouseEvent.Click, F1);

    btn3.addEventListener (MouseEvent.Click, F2);

    Function f1(e:MouseEvent):void {}

    this.gotoAndStop (32);

    }

    function f2(e:MouseEvent):void {}

    this.gotoAndStop (32);

    }

  • How to get different email addresses all in the same folder

    I keep asking, but he answered before and my Inbox (I guess as local folders) used to accept emails from my two different accounts. Now, they come in two different boxes which is annoying. How do I get emails from my two email addresses to arrive in the same Inbox, have the same sent box, etc.. ?

    I assume you mean the e-mail pop accounts
    Only POP email accounts can use a global Inbox.

    Quit Thunderbird to access the server mode "offline."
    Click the blue screen two located lower left status bar.
    It will be two black screen offline icon.

    All files out of all email pop email accounts and put them in folders in the "local folders".
    Delete the emails you want.
    Empty Junk and deleted mail folders (for example: right click on the junk mail folder - chute)
    Right-click on each folder and select 'Compact' or ' file > Compact folders

    When pop email account files are completely empty and compact
    "Tools" > "Account settings" > "Server settings" for the pop email account
    Click on the button "Advanced".
    Select: "Inbox for the account of different" and "global Inbox (local folders).
    Click on 'OK '.

    Now, you must check all of the following points to ensure they point to the correct location. Choose so 'Copies and files '.
    "Tools" > "Account settings" > "Copies & folders" for pop e-mail account
    Look at the records of destination for 'Envoy', 'Projects' and 'Templates '.
    Make sure that the messages of each will be stored in your "Local folders" folder locations

    then check Junk - click on "Parameters of Junk" check that the folder selected for junk e-mail messages is the one you want to use in the "local folders".

    Do the same for other POP email accounts

    Click OK to save the changes to account settings.

    Do not go back online - you don't need to download anything.
    Restart Thunderbird immediately.

    When it restarts, it should restart in mode online or maybe ask you.
    If you restart offline, it is not important, just trade back after reboot:
    Click on the screen icon black two located lower left status bar.
    It will be two icon blue screen when it is online.

    This should remove the e-mail account in the left pane of the folder and redirect the mail on behalf of local folders.

Maybe you are looking for