...
- 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 file on the computer's hard drive
- the standard deviation, which shouldn't be any greater than 1 - Follow the steps in "Connecting the Motor" (above) and set up the connection between the valve motor and the computer.
- In the response VI:
- the Run VI icon at the top left should be green
- 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
- 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).
- the Log Data icon should be green
- the Motor Enabled icon should be green, but grayed out
- When you initialize the valve position, it is important that the valve be completely closed, and that zero is set as the initial position. If this is not done successfully then there is a risk of the valve overturning and breaking. Likewise, the constant velocity should not be too fast in order to prevent the valve from slipping while the program is running.
- 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. make sure the "Log Data?" bool is selected, as this will create logfile.txt, the text file needed to run a trail in automatic mode. 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, and logfile.txt has been created, automatic mode should be reselected in order to run a trial.
When the above steps are completed, and the Response VI test has run in manual mode successfully, the two VIs are ready to be run simultaneously. Simply click the run button of both VIs. If this is the first time using one of the text filesMeasuring VI text file you have indicated, you may will need to run the Measuring VI with the respective new text file first.
Running the Response VI (with LHe)
Below are steps needed to run the Response VI with an actual level probe during a real run involving LHe.
- Prior to testing, make sure that...
- the LHe level probe is securely fastened in the LHe reservoir
- the motor is connected to the computer and the Response VI has direct communication with it (this can be determined by checking to see if the "Motor Enabled" and "Motor Connected" bools are activated).
- When testing with LHe, it is not necessary to log data as far as the valve position and the timestamp are concerned. This is up to personal preference, but is always a good idea to collect as much data as possible.
- The same thing applies as far as calibrating the default (zero) position in this situation... when you initialize the valve position, it is important that the valve be completely closed, and that zero is set as the initial position. If this is not done successfully then there is a risk of the valve overturning and breaking. Likewise, the constant velocity should not be too fast in order to prevent the valve from slipping while the program is running.
- sajb
Retrieving Data from Text Files
...