LabVIEW_NativeTCP_UE9.zip (for LV 6-8)
LabVIEW71_NativeTCP_UE9.zip (for LV 2009)
UE9 C Native TCP Example
For Linux, Mac OS X, and Windows. This package contains example code (written in C) for calling low-level UE9 functions over a
TCP connection (no special drivers required). Refer to the readme file in the zip for more information. Aug 8, 2008, 49 KB.
C Native TCP Example
File attachment:
C_NativeTCP_UE9.zip
UE9 PocketPC Native TCP Example
For Pocket PC PDAs with a wired or wireless Ethernet port. This package contains Microsoft Visual Studio .NET example
projects (written in C#) for calling low-level UE9 functions over a TCP connection on a Pocket PC PDA. Refer to the "readme.txt"
file in the zip for more information. Oct 10, 2005, 554 KB.
PocketPC Native TCP Example
File attachment:
PocketPC_NativeTCP_UE9.zip
UE9 Modbus TCP Example
The UE9 natively supports Modbus TCP. Check the Modbus map for a list of addresses to send. This is an example using
LabJackPython of what bytes to send on the wire to talk to the UE9 over Modbus TCP:
>>> import ue9
>>> d = ue9.UE9(ipAddress = "192.168.1.209", ethernet = True)
>>> d.debug = True
>>> d.readRegister(0) #Reads AIN0
Sending: [0, 0, 0, 0, 0, 6, 255, 3, 0, 0, 0, 2]
Response: [0, 0, 0, 0, 0, 7, 255, 3, 4, 59, 97, 232, 0]
0.0034470558166503906
>>> d.writeRegister(5000, 3.3) #Sets DAC0 to 3.3 V
Sending: [0, 0, 0, 0, 0, 11, 255, 16, 19, 136, 0, 2, 4, 64, 83, 51, 51]
Response: [0, 0, 0, 0, 0, 6, 255, 16, 19, 136, 0, 2]
3.2999999999999998
>>> d.readRegister(0) #Reads AIN0 again
Sending: [0, 0, 0, 0, 0, 6, 255, 3, 0, 0, 0, 2]
Response: [0, 0, 0, 0, 0, 7, 255, 3, 4, 64, 83, 52, 90]
3.3000702857971191
In the example above, each line that starts with “Sending” contains the bytes that the PC sends to the UE9. The “Response” lines
contain what the UE9 sent back to the PC.
Modbus TCP Example
Pocket PC Native USB Example
Windows CE support is not active.
The drivers/examples posted here were developed for and tested with CE 5-6, as noted
below. Some considerations:
Embedded versions of normal Windows (XP Embedded, Embedded 7, Embedded 8, etc.) use our normal Windows
drivers/libraries.
Linux support is very active. There are many small & inexpensive embedded systems that run Linux, such as Raspberry Pi.
Check out the Exodriver for the U12/U3/U6/UE9 or LJM for the T7.
It is easy to talk to our TCP devices (UE9 and T7) without a driver. You just need an O/S and development environment that
supports sockets. In particular, talking Modbus TCP with the T7 over Ethernet or WiFi is a great way to go.
Exodriver & libusbx. Current versions of libusbx have Windows CE support which will probably make it into the normal libusb-
1.0 release. Exodriver supports libusb, so this is an untested option to experiment with.
The source code for our Windows CE 3-6 support is attached below. You can port it to other versions of CE if desired.
The attached is for Pocket PC PDAs and Windows CE devices with a USB host port (tested), or a compact flash USB host
adapter (tested). This package contains Windows CE USB drivers and Microsoft Visual Studio .NET example projects (written in
C#) for calling low-level U3/UE9 functions over a USB connection on a Pocket PC PDA or Windows CE device. The USB drivers
have been tested with Windows CE 3.0 - 5.0 (ARM) and CE 6.0 (x86). Also includes executables, including a handy program that
reads and writes a few I/O. Refer to the "readme.txt" file in the zip for more information.
File attachment:
PocketPC_NativeUSB_U3UE9.zip
WinCE_labjackusb_source.zip
80
Содержание UE9
Страница 84: ...84 ...