« Close

Datasheets and User Guides

App Notes

Software & Driver

 

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. Updated June 16, 2015, 47 KB.

File Attachment: 

2 comments

Hi This is for Linux (Ubuntu) only! When running a LabJack UE9 on an IP-network, with the UE9 configured to ask for an IP-address via DHCP, there might be an issue to find out the IP-address that was given to it. This Perl program is meant to make it easy to find out. For now, it is expected to find exactly one UE9 on the local IP subnet. Have a look here: https://github.com/rsvenning/find_ue9 How to get a copy from GITHub and run it: 1. You need to have git installed. Run 'git help' to find out. 2. You need to have perl installed. Run 'perl -v' to find out. 3. With GIT installed, get a copy of find_ue9.pl like this. $ mkdir tmp $ cd tmp $ git clone git://github.com/rsvenning/find_ue9.git 4. Example of use. $ cd find_ue9 $ ./find_ue9.pl # Child, listening on port 52363 (UDP) # Parent, about to send broadcast, from IP-address: 192.168.1.100 to Broadcast-address: 192.168.1.255, Port: 52362 # Child, datagram received: UE9_IP_address 192.168.1.101 UE9_IP_gateway 192.168.1.1 UE9_IP_subnet 255.255.255.0 UE9_portA 52360 UE9_portB 52361 UE9_MAC_address 00:50:c2:a0:89:76 Enjoy! /Roger S

Thank you for sharing this.