Excel sheet entry to 'setpoint' of the PID controller

Hello

I use this (attached) vi to control the thermostat of Lakeshore. I got the website vi OR. I want to change the vi as to the set value, it takes as input an excel sheet (could be any other form too). This spreadsheet contains a list of temperatures. The vi reads the first temperature and then that sets the value of the PID controller setpoint. Once the set point is 'set' the vi waiting for awhile (say 1 hour) before reading the next entry in the excel sheet set point. I want to wait that it is because I programmed a gamma spectrum software such that it counts for 1 hour and then starts a new count. The part of the spectrum is not very intelligent but its ok for now. The problem I have is that when I run this vi (attached), the indication of the set on the temperature controller (hardware) tends to zero and stays there. Can someone help me by pointing out the error that I do. This vi is Labview based 6.0 (it's a bad implementation!)

Thank you

Saurabh

Slim,

You could possibly have the calendar in step in the worksheet as well?

It would be a classic case where you could use state machines (or producer / consumer - events if the user input is critical), research of this architecture and examples on ni.com. Also for synchronization purposes, are looking for functional global timer or try to modify this example https://decibel.ni.com/content/docs/DOC-6523 to add 'elapsed time' (as in the elapsed time express vi) features similar to this code.

You have reports such as:

Initialization: initialize your control panel front/graphics etc. Read the spreadsheet file. Make sure that the comms exist between the software and the controller, etc..

Set the temperature: set the first value, start a countdown (depending on what you set)

State check: check the status of controller etc failure. Check if the user has pressed the stop button. Check if the timer in the previous state has expired?

In case of error stop the timer and take the measures necessary to correct, to report to the user

If the user has pressed the stop button, close all references, etc hard reset and exit the application.

If the timer has expired, get the next value and go on to set the temperature.

I hope this helps.

Tags: NI Software

Similar Questions

  • value of PV in the PID controller may be a string?

    Hi all

    I'm trying to generate a humidity control using the mass flow controller. I have a USB moisture sensor. The reading of the probe are sent in a spreadsheet and converted string. The value (a string) is used to enter the value of the pv of the MIP? Is it achievable?

    Thank you!

    Just use one of the chain of digital features.

  • generation of Excel sheet

    Hello

    I want to generate the serial number and the frequency of the values in an Excel sheet. But I get the serial number and frequency down names and values at the top. I have attached the vi here. Please find. I want the s. n and frequency of headers high underrespective and values.

    Hi vipul,.

    the code was edditted his work as u wanted as u used the whole order in the loop has been reorganizing data and header as well so u Finally, received header

    now, the starting value get incremented each time and so there is no need to set the order in the loop, so for your reference without deleting the game order.vi I used a case of false and done a sixth death you can remove the order.vi set once u go through the code. I enclose her updated the code of his work like u wanted.

  • 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.

  • PID controller compatible LabView

    Hi all

    We have built an oven of automated test. It was decided that it is cheaper and more convenient to use a pre built the PID controller, however

    our task is to set the temperature of the oven by using LabView code, so the PID should communicate with the computer.

    I would be really grateful if you could give me a little advice if these controllers exist and where they are or it could be easier to use the box of DAQ + OR PID

    box tools + with external power supply + heating element power transistor.

    PS just to note, temperature range is not very high (20-200 ° C)

    All the best

    Alexander

    Hi Alexander,.

    When you talk about PID controller, there are two options:

    1 software based controller PID (you can develop using the LabVIEW PID toolkit)

    2. regulator based material PID... If you choose to have a PID of hardware in service, you must ensure that it can be used with LabVIEW, I know that what is your concern...!

    For most of these PID regulators (hardware) are an instrument of series (RS-232, RS-485 or MODBUS based) and which can be easily integrated with LabVIEW... no tool is necessary, but all you need is VISA functions or MODBUS library.

  • Open excel sheet by sheet name... Subvi without closing the

    Hi all

    I'm experimenting with excel and labview and I want to open a spreadsheet by name.  I created a project with a main vi where I hit a button to start the process.

    When this button is hit an event handler opens my Subvi who actually asks for a file, then scans all journal names and then in this sub - VI, I have an another Subvi who appears and gets this journal names.  When I hit OK it must close and the first Subvi should continue.  This everything works fine and I am able to read the name of favorite sheet but does not close the Subvi requesting the name of the sheet read.  When I run this Subvi in itself then it closes when I hit ok.

    I added the whole project here so if someone could have a look and tell me what I am doing wrong I would appreciate.

    Thank you

    Lieven

    Ok... I found the problem with another post on the forum.  I changed the appearance of the dialog window that has solved the problem.

    Lieven

  • Entries are concatenated in the same column in the excel file

    Hi, I really need help in this emergency. The problem is when I open the spreadsheet file after you run the program below, all the values that I believe are concatenated in the same column. However, there are 2 different analog inputs which I want in 2 different columns. I'm getting the 2 waveforms in the same graph, but when I open the excel file, it seems that the entries are concatenated in the same column. Someone knows how to fix this? Thank you very much.

    Hi Ben 64,.

    Thanks a lot again. I did as you said and I removed the dynamic data and logged files added directly to the results. I'm still checking if the program works as I can branch only when I return to work tomorrow. Tell me if you think it might be able to work this time. Thanks a lot again!

  • LabVIEW 2015, some of the Excel worksheet data moving to another Excel sheet

    Hi, guys.

    I want to achieve functional on the transfer of data between the Excel sheet.

    For example I get addresses of the cell, then the data in the passage of the address to the other Excel sheet a particular cell.

    What can I do? Thank you.

    Report generation Toolkit a buit in VI you can use for your fact condition, but its an add we toolkit to separate license.

    ActiveX doesn't require external tools, but need to create your own LabVIEW Code using properties and methods.

    Look at this thread which will be useful for creating custom code using Activex.

    http://forums.NI.com/T5/breakpoint/Excel-Board/m-p/379682/message-UID/379682#U379682

  • View the Excel sheet in LabVIEW

    I have a series of files MS Excel 2007 (xlsx) I want to integrate and display in LabVIEW 2012 selecting them individually. Currently, the only way I can see the spreadsheet in LabVIEW is to place my ActiveX container on the front panel, then "select ActiveX object' followed by 'create a file object '. The Excel sheet then fills the ActiveX container and that is exactly what I want my face to look like. However, I don't seem to be able to 'Create a file object' programmatically using nodes and must manually bind each file to display my result in the ActiveX container. I'm sure I'm missing something and any suggestions on how to do this would be by program greatly appreciated - thanks in advance!

    Original Excel file example

    Inserting an ActiveX container and select 'create a file object '.

    Below desired result!

    «"" "Exceptional teamwork.»»"»

    Thank you for closing the loop of Tim.  Nugget that upward, tag it and be sure OP brand the solution-It takes some work to track him.

  • Insert new data to a new line in the same Excel sheet in continuous

    Hello world

    I'm using LabVIEW 2010 and there is a problem, I need to ask the subject to export the LabView to Excel data. Basically, I could transfer data "once" once on a new or selected Excel worksheet, but can only be 'IMMEDIATELY' when I run the VI, so my problem is, I need the data to be inserted at a same Excel sheet whenever I press run and the new data will replace not the former, instead go to the next new row or column. I really need answers regarding my problems, suggestions and ideas are welcome.

    I have attached my current VI and a picture describe the outcome that I needed

    Thank you for answer


  • How to reset the default mail program? When I click to send e-mail to a box of 'Contact us' site web or excel sheet spread with addresses e-mail, a new msn email opens.

    How to reset the default mail program? Got msn.com. Now, I went to q.com. When I click to send e-mail to a box of 'Contact us' site web or excel sheet spread with addresses e-mail, a new msn email opens. Now, I get an error message: rundll32.exe - bad Image, followed by a message the the appklication or the DLL C:\Program FIles\MSN\MSNSharedFIles\MAILMAPI. DLL is not a valid Windows image. Please check against oyur installatiion diskette. I have msn unisnstalled.

    I can access my e-mail through hotmail msn, but no linger to subscribe to msn premium.

    original title: default e-mail program

    Hi PAULKRISSEL,

    This function is not supported natively in Windows. You may may find a third of the program that will change the default to q.com.

    WARNING:
    Microsoft provides no assurance or warranty, implied or otherwise and is not responsible for the download you receive from the sites of third parties or support related to the download or the downloaded technology. If you need assistance dealing with third party technology, please contact directly the manufacturer.

  • Select the cell & Excel sheet

    I currently have hundreds of files that have 3 excel sheets.  Some files have been saved with the first worksheet open, others when the second sheet is open and some when the third sheet is open.  When one of these files is automatically opened it opens to the sheet that was displayed when it was last saved.

    I need to write a LabVIEW program which opens each of these files, formatting, makes sure that a1 is selected cell in each leaf and make you the first sheet is open when it is saved, so that it opens with the first sheet showing.  I'm new to ActiveX, but I already understood the formatting, and I do the formatting in worksheets 3.  I just can't understand how to choose which cell is selected and which sheet is displayed.

    Thanks for the help,

    Jeremy

    Try the attached VI.   It was adapted from:

    http://zone.NI.com/DevZone/CDA/EPD/p/ID/60

    I had to change the content of the cell on the worksheet that is desired to keep this sheet on top when recording.  You could probably just change an attribute (font size, etc.) if it is not desirable to change the contents of the cell.

    Note: the name of the journal that is selected on the front panel is the sheet that will be on the top of the opening.

  • copy the file directory into an Excel sheet

    How can I copy the file names in a directory/folder to an Excel spreadsheet? For example, I have 200 files in a folder. I want to copy the title of all the files in an Excel sheet to better management and add notes. Thank you

    I received an email go, but I can't respond to this e-mail address.
    Here is my supplementary question:
    "Thanks a lot for your help."
    It's one more step.
    But I want just the names of files on each cell in the Excel sheet, without the path. »

    Open the folder, and then select all the documents in question.

    Hold the shift key while clicking the right mouse button (shift + right click).
    Choose "copy as path".
    Return to the spreadsheet and choose "Paste" to paste the list of documents in the worksheet.
    This will paste the full path, including file name, of each document, as shown below.

    Is that what you meant? Please let us know.
    Best wishes
    BookwormDragon
  • Help update the values to modify files on Excel sheet

    I have an excel sheet containing a list of values that need to be updated daily. Cells that have values are related to certain cells in a separate file. The problem is that the file that gets my excel sheet is constantly updated values of as well as the file name. I want to create a macro that will be able to grab the values from the new file and update the spreadsheet I have. I tried to create a macro when you type the name of the file you want to the linked cells to, and she copy that and replace a formula that is already defined, so I'll be able to get new values. I'll show you an example below.

    Front of Macro

    Enter the name of the file: 12345

    (Part 1): = 'S:\MATERIALS\RAW matiere\ [135.xlsx] PURCHASE! $D $11

    During the Macro

    Enter the name of the file: 12345

    (Part 1): = 'S:\MATERIALS\RAW matiere\ [12345.xlsx] PURCHASE! $D $11

    (replaced the file name 135 with 12345)

    When I did that it worked, but my problem is that whenever I entered a new file name so that it is updated (for example 987), the cell would just update with the file I recorded the macro with (12345).

    If someone has a code VBA or other suggestions, I would really appreciate it! If you need me to explain more about this, feel free to let me know. Thank you

    The command of VBA macro to set the formula in a cell is:
    Range ("a6"). Formula = "= 1 + 1.

    This would create cell A6 of the formula "1 + 1 =", and the cell afficheraient a 2 it.
    Here is a full function VBA, you can use and customize.  Simply paste in your VBA Editor to use.  You can see the string which is the formula is to break with the prompting text in the middle.

    Void macroFunctionName()
    As Variant Dim promptText
    promptText = InputBox ("What number to the file name?", "Type number please")

    Range ("a6"). Formula = "='S:\MATERIALS\RAW matiere\ ["promptText & ".xlsx] PURCHASE '! $$D 11 "
    End Sub

  • using a lexar Flash DRIVE to work on excel sheets. I went to open the USB key that ive been using and he said: 'it must be formatted. "

    i; ve been using a Flash DRIVE from lexar to work on excel sheets.  I went to open the USB key that ive been using and he said: "it must be in the format".  I did have to do at this point and that to format ill lose all my docs?  Help

    Try to play on another computer. If she still wants to be shaped, it's game over.

    If it's ok, copy the files on it before doing anything else and you get a new flash drive...

Maybe you are looking for

  • I get an error message on itunes app crash coreaudiotollboc.dll How can I solve this

    I get an error message on itunes app crash coreaudiotollboc.dll How can I solve this

  • machine freezes, slow start, apps to open slowly, the login window is not responding

    I had a problem with my macbook pro for a while now where the machine becomes completely insensitive and I pressed the power button to restart. I already posted about this problem and although the answer was very helpful, I did not understand 100% ho

  • Help me with this blue screen!

    My computer has been infected with control of HARD disk about 12 hours ago, and I tried to remove it with Malwarebytes, but when he scanning, virus above toke and shuts down my computer. When I tried to restart, a blue screen appears indicating A pro

  • MapView navigation?

    Hello I created a MapView (bb::cascades:maps:MapView) and added a geolocation (bb: platform::geo:GeoLocation) which shows a marker on the map. I added a name and a description to my place: location-> setName ("Point of interest"); location-> setDescr

  • Advice on changes to vCenter

    As much joy coming my way.I have vcenter 5.5 running on a VM Win2k8 R2 with SQL SERVER 2005 Express. We have 6 hosts vSphere 5.5 - a single cluster with 4 production hosts and another cluster with 2 test host. Windows Server is not in AD yet because