Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • this VI uses the same idea as to_turns, but it converts the other way around, therefore converting the valve's change in position into a number readable to LabVIEW.

 

sanitize_io.vi 

 

                                                Image RemovedImage RemovedImage Removed

  •  hr

 

sanitize.vi

 

Image Removed      Image Removed

 

...

               

  • this VI uses an input (valve position) value (in steps) and determines the "sanitized input", or the edited input once maximum and minimum values are taken into account.
  • this VI exists so that the VI never writes a position that exceeds the limits of operation of the valve as a mechanical device.

                                                            Image Added

        Image AddedImage Added

  • as you can see above, there are three specific cases for the VI:
    1. True,None: if case 1 is true, then the input position is greater than the max position of the valve. In this case. then the max position of the valve is written as the sanitized input and case 2 is irrelevant.
    2. False,True: if case 1 is false and case 2 is true, then that means that the input position is less than the max position of the valve and is greater than the min position. In this case, the input value is valid and remains as the sanitized input value.
    3. False,False: if both case 1 and 2 are false, then the input value is less than not only the max value, but the min value as well, so the min value is written as the sanitized input.

 

sanitize.vi

 

Image Added

                                                         Image Added

 Image AddedImage Added

  •  this VI is nearly identical to the other sanitizing VI, except this one has the max and min positions of the current motor in our lab (3 and 0 turns, respectively, which in the VI are immediately converted into steps) as constant extreme positions.
  • The input is still collected in steps and the sanitized input is still returned in steps.

 

Manual Mode

 

 

 

Automatic Mode

...