EasyManua.ls Logo

WR BEAR - LabBEAR

WR BEAR
37 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...
-> return: [([0.0855], 128)]
# 0.0855 is the present position and 128 is the error code
Error code 128 is ’Normal’. Refer to table.5 for detailed meanings of the error code.
7) Timeout The default communication timeout as well as the bulk communication timeout are
set to be 0.001s(1ms). When PyBEAR displays these messages:
[PyBEAR | WARNING] :: Read response timed out. Re-sending the same packet.
[PyBEAR | WARNING] :: BULK_COMM response timed out. Re-sending the same packet.
[PyBEAR | WARNING] :: BULK_COMM return packet timed out. Retrying BULK_COMM...
it is most likely that there is a faulty signal connection or the target is offline. However, if you
believe that your hardware setup is all normal, or simply for debug reasons, you can change
the timeout settings of existing PyBEAR instance:
# Normal communication timeout:
bear.timeout = new_value
# Bulk communication timeout:
bear.bulk_timeout = new_value
or specify values when instancing PyBEAR:
# Create a serial port object at /dev/ttyUSB0 with baud rate of 8Mbps
# timeout set to 5ms and bulk_timeout set to 3ms
bear = Manager.BEAR(port='/dev/ttyUSB0', baudrate=8000000,
timeout=0.005, bulk_timeout=0.003)
3.2 LabBEAR
In this section, the BEAR
TM
actuator driver LabVIEW SDK, called LabBEAR
TM
is introduced as
follows.
3.2.1 Getting Started
Follow these steps to get started with LabBEAR:
0) Check your LabVIEW version LabBEAR requires LabVIEW 2016 or higher versions. So
please upgrade your LabVIEW if you have earlier versions.
1) Download Download LabBEAR SDK zip package and unzip it into a preferred work directory.
2) Install dependencies LabBEAR requires NI VISA module to communicate with BEAR via
USB ports on your computer. The installation can easily be down with NI Package Manager.
Start enjoying LabBEAR!
30