EasyManua.ls Logo

Pickering 41-670 - Page 44

Pickering 41-670
62 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Page 4.24
SECTION 4 - PROGRAMMING GUIDE
PXI/PXIe LVDT/RVDT/Resolver Simulator Module 41/43-670
pickering
#Set Speed
speed = 50.00 # Set speed between 1.00 - 655.35 RPM
error = card.ResolverSetRotateSpeed(bank, speed)
if error:
# This function will take an error code and return a string description of
the error
err, errorString = card.ErrorMessage(error)
print(“Error: “, errorString)
exit()
#Set Number of Turns
turns = 20 # Set number of turns between 1- 65535
error = card.ResolverSetNumOfTurns(bank, turns)
if error:
# This function will take an error code and return a string description of
the error
err, errorString = card.ErrorMessage(error)
print(“Error: “, errorString)
exit()
#Start/Stop (Start = True, Stop = False)
error = card.ResolverSetStartStopRotate(bank, True)
if error:
# This function will take an error code and return a string description of
the error
err, errorString = card.ErrorMessage(error)
print(“Error: “, errorString)
exit()
input(“Press Enter to Stop...”)
err = card.ResolverSetStartStopRotate(bank, False)

Related product manuals