You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

 LINK TO MEASURING VI

LINK TO RESPONDING VI

LINK TO RUNNING


Introduction

In order to measure the amount of liquid helium in the system at any given moment, a user interface with the platform LabVIEW is needed. The level of liquid helium is controlled by the position of the run valve, which allows it to flow from the separator to the nose (for more information on this process, follow THIS LINK and find Low Temperature: Cryogenics). The run valve has can have any position between 0 and 3 "turns", with 0 turns being completely closed and 3 turns being completely opened. LabVIEW is used to provide a means of automatically measuring and responding to the helium level inside the tank. This is done by running two separate Virtual Interfaces in unison, a Measuring VI and a Response VI.

 

  • The Measuring VI uses a predetermined equation to estimate the current level of the tank based on the valve position. It takes into account randomness of flow and a constant rate of evaporation.


  • The Response VI controls the run valve position. It reads the current level from the Measuring VI, and reacts in order to ensure that the level stays near a user-specified target level. This is the larger of the two VIs and it interacts with the instrumentation involved, like the run valve itself.

The two VIs communicate through the use of text files, which are set by the user. One text file produces data by the Measuring VI with the standard date and time stamp, flow rate, valve position and new level with each iteration. The other text file produces data from the Response VI including the enoch time stamp, the level as read by the Response VI and the new valve position.

Measurement VI

Interface

 

When the VI is first opens up, the first panel to appear is the interface. This panel is where you can comprehensively see how full the tank is at any given moment, and can change a few control factors of the code.

 

One of the controls that will need to be set before the VI can run is the file path (see below). You should set this to a location on your computer's hard drive.

 

                                                                                                                                                                                 

Next, you will need to set the standard deviation of the flow rate randomness curve. In order to provide a more realistic measurement of the level, randomness was introduced into the flow rate equation to account for small variations in flow. In order to keep this variation realistic, you shouldn't set the standard deviation anything higher than 1. Also included in the interface are indicators for certain values pertaining to the system at that iteration. For instance, above the standard deviation control there is a "theoretical flow rate" indicator, (in other words, the flow rate calculated before randomness was applied) and below it there is a "realistic flow rate" indicator (the flow rate with randomness taken into account). The blue tank is comprehensive indicator for the level at each iteration. It is measured in percentages of 0 - 100 % full.

 

To the right of this section of the interface there are indicators for the current valve position, the current iteration number and the new level as calculated by the VI. These values are calculated every 1 second (the length of time of one iteration of the code).

 

Code

  • explain

 

 

Response VI:

Interface

This is an example of what the Response VI Interface will look like when first opened. 

 

 

                                                                                                                                           

In the top left hand corner of the interface is run VI icon, and next to it is the text filepath which the user can set. Below is the option for automatic mode (when the VI itself changes the valve position with each iteration) or manual mode (where the user has to specify the exact valve position at any given instance), the boolean indicator for whether the VI and motor are connected properly, and another icon to select when you would like the valve position data to be saved into the text file. Still below that is the indicator for which COMPort the VI is connected to and the valve position indicator. Finally, there are control values for the minimum valve position and maximum valve postition that the user desires for that particular test or trial.

In the middle left of the interface is the control for the target level, which is the level of the tank, set by the user, that the Response VI tries to maintain throughout the trial. Also, if manual mode was selected, the user would have to set the number of turns open in a control located below the target level (in the image above, the VI is running in automatic mode, and so this icon is greyed out. If it were in manual, it would be clear and the target level control would be greyed out instead).

 

 

 

                                                                                                               

 

The two images above display the three graphs found in the interface, which from top to bottom, respectively, show the level (in other words, the fullness of the tank at that iteration), error (from the target level) and valve position with respect to time. Next to the level graph is an indicator for the current level at that iteration, based on a percentage of 0-100%.

 

Lastly, in the bottom left hand corner of the VI is the option to enable advanced controls for the PID loop. If this icon is selected, the PID gains table will appear to its right. The pid loop uses a PID controller and equation constants to run and maintain the level. Unless you have a deep understanding of these coeffecients and need to make edits to them to increase the VI's efficiency, do not try to change these values. If advanced controls are enabled, ..............   At the bottom there is the developer table which ................

 

 

Code

  • explain
  • understand all the sections
  • visas

Running the VIs

  1.  Ensure that all controls in both VIs are accounted for. In the response VI this includes...

    • text file paths are indicated, preferably in the computer's hard drive

    • min and max valve position
    • target level
    • the COMPort is correctly configured

          ...and in the Measuring VI...

    • the text filepath is indicated, in the same folder as the response filepath on the computer's hard drive
    • the standard deviation, which shouldn't be any greater than 1
  1. Ensure that all controls in both VIs are accounted for. In the response VI th
  2. In the respons VI:
    1. the Run VI icon at the top left should be green
    2. the "Motor Connected" bool icon will be red when the VI is not running, but if it does not turn green after about a second of the VI running then the motor is not connected
    3. if you want the VI to automatically change the valve position for a trial, then you should select automatic. This should be done after the connection between the VI and the motor are tested (see Step 3).
    4. the Log Data icon should be green
    5. the Motor Enabled icon should be green, but greyed out
  3. Before running the VIs, you should do a test of the Response VI to make sure everything is working properly. This is done by enabling manual mode and changing the set number of turns open icon to any number between 0 and 3. Once it is determined that this does in fact change the run valve position connected to the motor, then the VI is connected correctly. Once you are done testing, automatic mode should be reselected in order to run a trial.
  4. h
  5. h
  6. h
  7. h
  8. h

Retrieving Data from the VIs

 

  • Power Supply Box
  • Step Motor Driver
  • indications on Paul's VI
  • equations on mine
  • how they communicate?



  • No labels