PID teststand

I did a sequence in TestStand 4.1.1 (with LabVieW) which contains a PID VI regulation which regulates power at a certain temperature.

I was using the Ziegler-Nichols method to come up with the appropriate PID parameters for the system when you use a HAD and everything was fine, until I started

to run with 2 HAD: s!

The moment was not the same and the regulation was not good. Instead of having the power is stable at around 80W + / 1W, it was now 80W + / 25W.

I tried to separate the PID vi with a separate vi for each testsocket, but it's always in trouble.

The PID is inside a while loop in TestStand and except the PID vi there are other readings of temperature and updates of graphics etc.

The total time of loop in this while loop is about 2. 8s, so I think that time should not be a problem. I use a PC with an Intel Pentium 4 CPU 2.40 GHz and 2 GB of RAM.

Anyone out there who have made this successful?

Software of NEITHER: TestStand 4.1.1 version

OS: Windows XP

LabView: 8.6

After a tip from support NOR I know now that the VI can always run in the series of TestStand.

What I had to do was not only the reentrant VI:s but also define the system of execution preferred to the other 1 or 2 others.

That makes a big difference.

Thank you

Hans

Tags: NI Software

Similar Questions

  • Receive data at teststand dll file

    Hello

    I have the function below in my dll file but I have a problem receiving parameters to teststand.

    int GetEvent (pid int, char * msg, int & msgSize)

    PID is the input parameter

    * msg will be the received string

    & msgSize will be the length of the received in full force.

    Any idea on how to address this problem?

    Concerning

    Ray

    Hello Ray,

    Are you accommodation TestStand using the type definition to set the function parameters in your call TestStand DLL? If so, TestStand generally expected of the input strings to be of type ' char *' and the output of the channels to be of type "char [x]", where x is a default size. It can also be simply 'char []').

    Alternatively, you can substitute TestStand think is the prototype of msg and change string TestStand type C (const) to the C string buffer in setting property settings. You must also give the buffer of a default size that is larger than you would expect to receive in the field of memory size buffer.

    Note that refreshing the prototype resets this substitution, so change the type library in the source would be preferable.

    I hope this helps.

    -Jack

  • TestStand database error - error converting data from nchar int type.

    Hello

    I used SQL standards database stored procedure options to store records of my test and I added the generated tables and stored procedures in a database and it seems to work OK in this form. However when I change the UUT_Results table to include a new column that contains the value of the primary key of another table in the database that I meet problems.

    I run a query that returns the primary key value (integer) for a given series number and stores the result as a global station (number format). The correct value is stored in the variable, but when I try to use this value in the stored procedure I get an error like below:

    An error occurred calling "LogResults" in "ITSDBLog" of "ZNIUGOL TestStand database logging"
    An error has occurred by executing a statement.
    Schema: SQL Server Stored Proc (NOR)
    Statement: UUT_RESULT.
    Description: Error converting data from nchar int type.
    Number:-2147217913
    NativeError: 8114
    SQLState: 22018
    Reported by: provider Microsoft OLE DB for SQL Server

    Source: TSDBLog

    My SQL statement for creating the table and the procedure for UUT_results are below:

    ~
    CREATE TABLE UUT_RESULT)
    Uniqueidentifier PRIMARY KEY ID,
    BoardDetailID int,
    STATION_ID varchar (255),
    BATCH_SERIAL_NUMBER varchar (255),
    TEST_SOCKET_INDEX int,
    UUT_SERIAL_NUMBER varchar (255),
    USER_LOGIN_NAME varchar (255),
    START_DATE_TIME is datetime,
    EXECUTION_TIME float,
    UUT_STATUS varchar (32),
    UUT_ERROR_CODE int,
    UUT_ERROR_MESSAGE varchar (255)
    CONSTRAINT UUT_RESULT_FK FOREIGN KEY (BoardDetailID) made REFERENCE BoardDetails)

    ~
    CREATE PROCEDURE InsertUUTRESULT
    @pID uniqueidentifier,
    @pBoardDetailID int,
    @pSTATION_ID varchar (255),
    @pBATCH_SERIAL_NUMBER varchar (255),
    @pTEST_SOCKET_INDEX int,
    @pUUT_SERIAL_NUMBER varchar (255),
    @pUSER_LOGIN_NAME varchar (255),
    DateTime @pSTART_DATE_TIME.
    float of @pEXECUTION_TIME.
    @pUUT_STATUS varchar (32),
    @pUUT_ERROR_CODE int,
    @pUUT_ERROR_MESSAGE varchar (255)
    AS
    INSERT INTO UUT_RESULT (ID, BoardDetailID, STATION_ID, BATCH_SERIAL_NUMBER, TEST_SOCKET_INDEX, UUT_SERIAL_NUMBER, USER_LOGIN_NAME, START_DATE_TIME, EXECUTION_TIME, UUT_STATUS, UUT_ERROR_CODE, UUT_ERROR_MESSAGE)
    VALUES)
    @pID,
    @pBoardDetailID,
    @pSTATION_ID,.
    @pBATCH_SERIAL_NUMBER,.
    @pTEST_SOCKET_INDEX,.
    @pUUT_SERIAL_NUMBER,.
    @pUSER_LOGIN_NAME,.
    @pSTART_DATE_TIME,.
    @pEXECUTION_TIME,.
    @pUUT_STATUS,.
    @pUUT_ERROR_CODE,.
    @pUUT_ERROR_MESSAGE)

    Any help would be appreciated,

    Thank you

    Stuart

    Stuart-

    What is the expression you are evaluating and the data type of the parameter that you defined in the Options database dialog box for the schema that you connect to data with?

  • Satellite L850-1V8 - 'System' process (PID 4) uses 100% of CPU

    Hello

    I have a Toshiba Satellite L850 1V8 with windows 8.1 64 bit on it.

    I encounter the following problem: some times when I start the system, the 'System' (PID 4) NT kernel process begins to spin, taking up 100% of any one heart.

    This happens about 3-5 minutes after that the system is in place, but a few times I saw him from the hours later.
    I have to restart the system to make this problem go away.

    Someone at - there experience this problem?
    No idea where to start looking for a solution?

    These processes can be associated with any software / application running in the background system

    But I know kernel NT & system could be generated by http.sys uses port 80.

    That would mean that and would mean that a piece of software like IIS (internet Information services) could be responsible for this process in the background.

  • Basic concept of loop PID closed

    Hello

    I have a problem of very basic concept of PID loop closed. I read a lot of material of the PID controller but still confused.

    I understand that the error between the measure and the desired will be processed by PID controller, but I do not understand how the controller output (sum of three P/I/D) set the right plant behand the controller. For example, an electric motor fan will be below on a Board, the force of the wind on the motherboard could be detected by the tension and of course the fan speed could be adjusted by tension. But the error of the setpoint and the process variable will go directly to the fan in Labview without identifying the mechanisms on the plant (fan). I wonder if anyone knows how this error is treated by the plant. And why we need not care about the transfer of the factory function.

    If you have a transfer function for your plants, you don't need PID, because the output of the optimal control can be determined directly from the transfer function! (Well, more specifically, often in this case you would use the transfer to feed-forward control function, which you would combine with PID to correct minor variations between the reality and transfer function model.)

    The output of PID is not a sum of errors. It is a sum of the outputs of regulation - the proportional output, the full output and the derived products output. The gains set the regulator to the specific system, and if they are not chosen correctly, the control will be terrible and potentially unstable.

    In your hypothetical example of two systems - Yes, it is quite possible that one moment the error and so the output will be the same. But if the systems are very different, the next iteration of control errors will be different, so the next controller output value will be different, etc. And if the systems are very different, they should not have the same gains.

  • Several versions of TestStand (2013 and 2016)

    Are there problems of having several versions of the TestStand development environment installed on my development machine? Thank you.

    Hi stephenb2,

    There is no problem with having multiple versions of installed TestStand. There are a few things to keep in mind though.

    Only one version of TestStand engine can be active at a time. Use the Version TestStand selector to change the active version. Sequence of files created in TestStand 2013 can be opened in 2016, but not vice versa (although you can save as a previous version if you wish). Finally, you have separate directories for each version, so make sure you know what directory/version, you are working in.

    Hope that helps!

  • Disable the TestStand 2014 report batch

    Hello

    I'm trying to disable batch report generation in the model batch of TestStand 2014. I found this thread back in 2005, but it seems that things have changed a bit since then with the addition of the Plugins model in new versions of TestStand. I always want to the individual report for each shot to test but I would like to disable the additional orders summary report. Anyone know the best way to achieve this?

    I seem to have jumped with success the guests to collect the serial number of the lot.

    I think I got it.

    There are 3 steps.

    1 - one, that we discussed.

    2. read report any controller model plugin - end

    3 - determine the path of the Batch report file in Plugin - Start Batch model

    Hope this helps,

  • 15 - r018dx: is the PID of Win 8.1 in the BIOS

    I am repairing a laptop of neighbors who have experienced a fatal disk crash (it's toast).  Installed a new drive HARD but have no recovery media.  I see various places in market there are recovery kits 8.1 cheaper than at HP, but without a PID.  I need confirmation that HP incorporates the OEM PID in the BIOS, which will allow to install after market recovery kits.  Is this correct?  TMB1

    Yes, HP incorporates the OEM PID for Windows 8.1 in the BIOS. This Windows PID is 8.1 of Windows OEM specific and may not work with third-party recovery media unless it is an exact copy of the HP recovery for this exact model of HP media. There is no guarantee that any recovery of spare parts kit does not work correctly. I suggest the purchase of HP's HP recovery media factory. Please see DVD - 8.1 64 bit of Windows Recovery Kit / Kit for portable consumer (4 discs) system recovery for the purchase of this media.

    If you have any other questions, feel free to ask.

    Please click the 'Thumbs Up' white LAURELS to show your appreciation

  • LabVIEW / TestStand ignores license server settings

    Hello

    I see a rather odd behavior on my computer. We received a new license file to our license server. Once it has been imported, TestStand and LabVIEW used of temporary licenses... I ignored it for a day, but became suspicious.

    The Manager of License tool on my computer detects only the license server and properly displays the access rights for my Suite of Dev (incl. Automated test). LabVIEW and TestSTand can check a property...

    Instead, I get the error message

    LabVIEW development system

    License attempt 1:
    All the available licenses on 'xxx' are currently extracted. (NILM13)
    If you have any questions, contact your license administrator.

    Shows available licenses however License Manager. I already tried to reinstall software of NOR (took awhile...) manually remove, add license server information. I'm getting a little desperate / annoyed.

    Any ideas?

    See you soon

    Oli

    Fixed a problem.

    After the stop & a few reboots of license server, my license works again.

    Seems, it was a "personal matter" between me a license, since only my license server refused to work...

    Enjoy the weekend!

    Oli

  • The PID control

    Hello world.

    I wrote a program of temperature control in labview and used the PID Toolkit for it.

    The entrance to the PID is the measured temperature and the output is a PWM signal fed to a relay that turns heater on or off.

    The control works but I want the temperature to be stable within a range of + - 2%.

    Currently, the temperature varies more than that.

    IAM sure, this is the setting of the PID.

    Because I have not worked with regulators PID Iam not exactly how to tune my system.

    The best way I found is to zero I and D and make the system oscillate with P.

    The only problem is that the system of temperature is so slow that it takes quite a long time to reach the set point which in turn would mean a lot of hours of tests only.

    Now Iam just wondering if there is a faster way to set the PID controller?

    Thanks in advance,

    Best regards

    Michael

    I've used this method several times with slow heating appliances. It can take a long time to reach a stable temperature, but at least do not monitor constantly as he approaches this value.

    In figure 3.4, Yes, the Min value is the initial value that is stable. It is OK to start an initial PWM output of 0, which speeds up the process, if your radiator is already at a steady temperature (the temperature in the room).

    In general, the difference between the output of the first and the last values, better will be your control (you will get best results of going from 0 to more than 50% to 5%), but it will take more time to settle to a new value and of course you must ensure that you do not exceed the capabilities of your system. It's a good idea to have a separate alarm system in place that can cut power to heater if you exceed a temperature, especially if you plan to walk away from it until it stabilizes.

    To a fixed cycle, the system will not continue to heat up indefinitely unless you have a perfect insulation without heat loss - but, as I mentioned above, do not choose a value that will not cause the system to overheat.

  • TestStand 2014 cleaning after the failure of a step

    Hi all

    I am new to TestStand, so I have a simple question that could boring you but I cannt find the solution.

    In my main sequence, I say 50 steps. If a step has not the next step to executete (by deafult).

    What can I do to stop the execution of the following steps if a step fails. I wish that the sequencer will cleanup directly then call the next step in the main sequence.

    All mere suspicion is appreciated.

    Axel

    Hello

    You can define the sequence of cleaning goto on the failure of the setting sequence:

    Configure > Station Options > immediately Goto cleanup sequence if an error occurs

    Also, make sure that the steps fail sequence on a step failed, by setting up:

    Parameters of the step > step sequence of Causes of failure

    I hope this helps.

  • Passing variables between LabVIEW and TestStand

    Hello

    I'm just learning how to use TestStand and although there are a multitude of resources available, I always find me at a loss on how to pass variables between TS and LV, leaving me to think that there is one fundamental thing that I'm missing which is likely, given that I have a weeks experience with LabVIEW and a days of experience with TestStand.

    I took a glance to the example of 'Clusters' to the Code Modules in TestStand examples (I use TS 2016 if it matters) because I thought it would be quite ideal for what I hope. In this case, I hope to be able to pass a string (a file path) to LabVIEW and VI power take this string and use it as part of an order for the Exec.VI system.  Then, I would be able to pass strings back to TestStand to show the user if an error occurred, but I thought I should get the first part of work.

    I guess my question is what do I have to wait to see in clusters to the example of the Modules of Code? The Watch window displays all defined variables premise on which has the ContainerOut in the Variables pane, but I don't see any kind of update on facades (VI1.vi and VI2.vi) LabVIEW code. Should I be?

    I looked at a few other discussions of the forum here and here, as well as the document of the basis of knowledge here, but could not recreate their solutions. It seems that the connector pane would be a viable way to go, but I'm not sure on how we create and use effectively. According to this document , it makes it seem like it should be simple enough to makes these terminals, but I am still missing a key step. I was able to follow all the steps on the knowledge base document and run the sequence, but then had no idea if it worked or not; I have the report show me the values of the variables I put, but I have no idea whether or not he actually did anything with the LabVIEW VI, or how I could see that.

    Please let me know if you need further information or clarifaction everything I ask.

    Thank you for your time,
    JColvin

    Digilent, a company of National Instruments

    If you want to enter values, you must create a vi for instance dialog box

    The OK button will allow new values to pass to the output terminals.

    A Cancel button will pass just the original through the output values without alteration. The VI will close when either the OK button or cancel were pressed.

    Concerning

    Ray

  • With the help of Extraputty 2014 TestStand

    Curious to know if Extraputty is supported by TestStand2014. I installed Putty and the steps of teststand during the installation process. However, when you attempt to insert a step I do not get an option to extraputty as shown in the link below.

    http://www.extraputty.com/features/TestStand.html

    What is needed in order to start an SSH connection?

    J Meye,

    This is Ali from the National Instrument of engineering applications. Have you had a chance to look at these messages to the forum below? They are also Extraputty configuration to connect with TestStand 2012. Since there was not too much of a change of each software, did you have any success with following these steps?

    ExtraPutty TestStand 2012 questions:

    http://forums.NI.com/T5/NI-TestStand/starting-TestStand-with-ExtraPuTTY-installed/m-p/2596877#M43310

    http://forums.NI.com/T5/NI-TestStand/starting-TestStand-with-ExtraPuTTY-installed/m-p/2596877

    Review of SSH Communication:

    http://digital.NI.com/public.nsf/allkb/A254FE727B22258586257B6E002DF401?OpenDocument

    Problems with 64-bit:

    http://forums.NI.com/T5/NI-TestStand/SSH-and-64-bit-TestStand/m-p/2961873#M46440

    In addition, it is a 32-bit system? There was configuration problems with 65-bit with Extraputty systems.

  • State Machine with PID control

    Hi, I currently have a problem with my state machine, I control two cylinders double effect in sequence that works very well. However, there is one point I need to increase the pressure in the cylinder and to maintain this pressure through the sequence of State machine, however when the state machine transitions to the next indicate the PID controller resets, how can I solve this problem? Everything in is also allowed to apply the pressure in the cylinder another (same node IO accessed).

    Thank you I joined my project in a WinZip file, then it will have to be extracted. The two main VI to watch is 'Park Brake FPGA VI New' and 'park brake host VI update 2 "(new)

    Thank you.

    Nevermind I solved the problem with a parallel loop.

  • OBD II enhanced PIDs with a/d converters

    The ADCS takes by recovering the extended PIDs or improved through service $22, as specified in J2190? Or supports only services $01 - $10 as specified in J1979?

    Manual linking Hoovah watch it takes in charge ReadDataByIdentifier, which is $ 22.  These services are usually referred to as UDS (ISO 14229), but there is a lot of overlap between all the different specifications.

Maybe you are looking for

  • Re: Question of HDD SATA of Satellite P750 - 02Q (type and number)

    Hi, I think to upgrade the hard drive of my Satellite P750 - 02Q, but I know not what SATA type it is (SATA I or SATA II and SATA III), and how disc can support? I think to slot in a SSD drive in there, but if she can support the SATA 2 drives, I can

  • Windows 8 key recovery

    Hello At the time I bought the computer laptop z500 (i5), I deleted all the partitions and installed linux on it. Now, I want to go back to windows I know a key recovery will not work. I just need the 8 necessary windows key when installing it. The l

  • I have 1 computer and need to install copies separated by a game for two different users

    I need to be able to install two copies separate from Dragon Age: Origins, one for me and one for my girlfriend under our separate user accounts on my computer, how can I do this?

  • conclusions of pic

    While I have a public... The goal of this program is to take a picture 2D (concentration in column 0, column 1 direction) and found spikes in the column of concentration.  A Summit should have at least 5 points (a peak with at least two data points i

  • Acer VN7 Nitro Intel 3D Kamera Windows taxes geht nicht!

    Hello year alle, ICH habe ein neues Acer VN7 Nitro so und bin auch damit, wurmt mich eine nur danke sehr know. I have several videos gesehn, 3D wo die mit der neuen format Kamera von Intel Windows UI gesteuert wird. Also invaluable wie das mit einer