Skip to content

Commit

Permalink
Ver 1.2.0 commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sbazaz committed May 11, 2020
1 parent 0b72c31 commit 24ba881
Show file tree
Hide file tree
Showing 133 changed files with 195,213 additions and 158 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
# Changelog
All notable changes to the UL for Linux project will be documented in this file.

## [1.2.0] - May 11, 2020
### Added
* support for the following DAQ devices
* E-1608
* E-TC
* E-DIO24
* TC32

* RemoteNetDiscovery example

### Changed
- The FPGA folder and its content have been removed. The FPGA images have been embedded in the library file.
- To address the libusb fork operation issue which is explained [here](http://libusb.sourceforge.net/api-1.0/libusb_caveats.html), libusb will no longer be initialized when the uldaq library is loaded. Instead, libusb is initialized when the first uldaq function is invoked. This change allows users to initialize libusb in the child process by invoking the first uldaq function after a fork() call.

### Removed
- none

## [1.1.2] - November 22, 2019
### Added
* support for the following DAQ devices
Expand Down
18 changes: 9 additions & 9 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ dist_doc_DATA = README.md
pkgconfigdir=$(libdir)/pkgconfig
dist_pkgconfig_DATA=libuldaq.pc

fpgadatadir=/etc/uldaq/fpga
dist_fpgadata_DATA=fpga/USB_1208HS.rbf\
fpga/USB_1608G_2.rbf\
fpga/USB_1608G.rbf\
fpga/USB_1808.bin\
fpga/usb_2020.bin\
fpga/USB_26xx.rbf\
fpga/USB_CTR.bin\
fpga/USB_DIO32HS.bin
# fpgadatadir=/etc/uldaq/fpga
# dist_fpgadata_DATA=fpga/USB_1208HS.rbf\
# fpga/USB_1608G_2.rbf\
# fpga/USB_1608G.rbf\
# fpga/USB_1808.bin\
# fpga/usb_2020.bin\
# fpga/USB_26xx.rbf\
# fpga/USB_CTR.bin\
# fpga/USB_DIO32HS.bin

if OS_LINUX
rulesdatadir=/lib/udev/rules.d/
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,21 @@ Building the **uldaq** package requires C/C++ compilers, make tool, and the deve

```
Linux
    $ wget -N https://github.com/mccdaq/uldaq/releases/download/v1.1.2/libuldaq-1.1.2.tar.bz2
    $ wget -N https://github.com/mccdaq/uldaq/releases/download/v1.2.0/libuldaq-1.2.0.tar.bz2
macOS
    $ curl -L -O https://github.com/mccdaq/uldaq/releases/download/v1.1.2/libuldaq-1.1.2.tar.bz2
    $ curl -L -O https://github.com/mccdaq/uldaq/releases/download/v1.2.0/libuldaq-1.2.0.tar.bz2
```
2. Extract the tar file:

```
 $ tar -xvjf libuldaq-1.1.2.tar.bz2
 $ tar -xvjf libuldaq-1.2.0.tar.bz2
```

3. Run the following commands to build and install the library:

```
 $ cd libuldaq-1.1.2
 $ cd libuldaq-1.2.0
 $ ./configure && make
$ sudo make install
```
Expand Down
10 changes: 5 additions & 5 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
m4_define([LIBUL_MAJOR], 1)
m4_define([LIBUL_MINOR], 1)
m4_define([LIBUL_MICRO], 2)
m4_define([LIBUL_MINOR], 2)
m4_define([LIBUL_MICRO], 0)
m4_define([LIBUL_RC],)

AC_INIT([libuldaq],[LIBUL_MAJOR[.]LIBUL_MINOR[.]LIBUL_MICRO[]LIBUL_RC],[[email protected]],[libuldaq],[http://www.mccdaq.com])
Expand All @@ -9,9 +9,9 @@ AC_INIT([libuldaq],[LIBUL_MAJOR[.]LIBUL_MINOR[.]LIBUL_MICRO[]LIBUL_RC],[info@mcc
# These numbers should be tweaked on every release. Read carefully:
# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
# http://sourceware.org/autobook/autobook/autobook_91.html
lt_current=2
lt_revision=2
lt_age=1
lt_current=3
lt_revision=0
lt_age=2
LTLDFLAGS="-version-info ${lt_current}:${lt_revision}:${lt_age}"

CFLAGS='-O3'
Expand Down
354 changes: 331 additions & 23 deletions doc/pagesref.txt

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion examples/AIn.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ int main(void)

printf("Found %d DAQ device(s)\n", numDevs);
for (i = 0; i < (int) numDevs; i++)
printf(" %s: (%s)\n", devDescriptors[i].productName, devDescriptors[i].uniqueId);
printf(" [%d] %s: (%s)\n", i, devDescriptors[i].productName, devDescriptors[i].uniqueId);

if(numDevs > 1)
descriptorIndex = selectDAQDevice(numDevs);

// get a handle to the DAQ device associated with the first descriptor
daqDeviceHandle = ulCreateDaqDevice(devDescriptors[descriptorIndex]);
Expand Down
5 changes: 4 additions & 1 deletion examples/AInScan.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ int main(void)

printf("Found %d DAQ device(s)\n", numDevs);
for (i = 0; i < (int) numDevs; i++)
printf(" %s: (%s)\n", devDescriptors[i].productName, devDescriptors[i].uniqueId);
printf(" [%d] %s: (%s)\n", i, devDescriptors[i].productName, devDescriptors[i].uniqueId);

if(numDevs > 1)
descriptorIndex = selectDAQDevice(numDevs);

// get a handle to the DAQ device associated with the first descriptor
daqDeviceHandle = ulCreateDaqDevice(devDescriptors[descriptorIndex]);
Expand Down
5 changes: 4 additions & 1 deletion examples/AInScanIepe.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ int main(void)

printf("Found %d DAQ device(s)\n", numDevs);
for (i = 0; i < (int) numDevs; i++)
printf(" %s: (%s)\n", devDescriptors[i].productName, devDescriptors[i].uniqueId);
printf(" [%d] %s: (%s)\n", i, devDescriptors[i].productName, devDescriptors[i].uniqueId);

if(numDevs > 1)
descriptorIndex = selectDAQDevice(numDevs);

// get a handle to the DAQ device associated with the first descriptor
daqDeviceHandle = ulCreateDaqDevice(devDescriptors[descriptorIndex]);
Expand Down
5 changes: 4 additions & 1 deletion examples/AInScanWithEvents.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ int main(void)

printf("Found %d DAQ device(s)\n", numDevs);
for (i = 0; i < (int) numDevs; i++)
printf(" %s: (%s)\n", devDescriptors[i].productName, devDescriptors[i].uniqueId);
printf(" [%d] %s: (%s)\n", i, devDescriptors[i].productName, devDescriptors[i].uniqueId);

if(numDevs > 1)
descriptorIndex = selectDAQDevice(numDevs);

// get a handle to the DAQ device associated with the first descriptor
daqDeviceHandle = ulCreateDaqDevice(devDescriptors[descriptorIndex]);
Expand Down
5 changes: 4 additions & 1 deletion examples/AInScanWithQueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ int main(void)

printf("Found %d DAQ device(s)\n", numDevs);
for (i = 0; i < (int) numDevs; i++)
printf(" %s: (%s)\n", devDescriptors[i].productName, devDescriptors[i].uniqueId);
printf(" [%d] %s: (%s)\n", i, devDescriptors[i].productName, devDescriptors[i].uniqueId);

if(numDevs > 1)
descriptorIndex = selectDAQDevice(numDevs);

// get a handle to the DAQ device associated with the first descriptor
daqDeviceHandle = ulCreateDaqDevice(devDescriptors[descriptorIndex]);
Expand Down
5 changes: 4 additions & 1 deletion examples/AInScanWithTrigger.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ int main(void)

printf("Found %d DAQ device(s)\n", numDevs);
for (i = 0; i < (int) numDevs; i++)
printf(" %s: (%s)\n", devDescriptors[i].productName, devDescriptors[i].uniqueId);
printf(" [%d] %s: (%s)\n", i, devDescriptors[i].productName, devDescriptors[i].uniqueId);

if(numDevs > 1)
descriptorIndex = selectDAQDevice(numDevs);

// get a handle to the DAQ device associated with the first descriptor
daqDeviceHandle = ulCreateDaqDevice(devDescriptors[descriptorIndex]);
Expand Down
5 changes: 4 additions & 1 deletion examples/AOut.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ int main(void)

printf("Found %d DAQ device(s)\n", numDevs);
for (i = 0; i < (int) numDevs; i++)
printf(" %s: (%s)\n", devDescriptors[i].productName, devDescriptors[i].uniqueId);
printf(" [%d] %s: (%s)\n", i, devDescriptors[i].productName, devDescriptors[i].uniqueId);

if(numDevs > 1)
descriptorIndex = selectDAQDevice(numDevs);

daqDeviceHandle = ulCreateDaqDevice(devDescriptors[descriptorIndex]);

Expand Down
5 changes: 4 additions & 1 deletion examples/AOutScan.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ int main(void)

printf("Found %d DAQ device(s)\n", numDevs);
for (i = 0; i < (int) numDevs; i++)
printf(" %s: (%s)\n", devDescriptors[i].productName, devDescriptors[i].uniqueId);
printf(" [%d] %s: (%s)\n", i, devDescriptors[i].productName, devDescriptors[i].uniqueId);

if(numDevs > 1)
descriptorIndex = selectDAQDevice(numDevs);

// get a handle to the DAQ device associated with the first descriptor
daqDeviceHandle = ulCreateDaqDevice(devDescriptors[descriptorIndex]);
Expand Down
5 changes: 4 additions & 1 deletion examples/CIn.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ int main(void)

printf("Found %d DAQ device(s)\n", numDevs);
for (i = 0; i < (int) numDevs; i++)
printf(" %s: (%s)\n", devDescriptors[i].productName, devDescriptors[i].uniqueId);
printf(" [%d] %s: (%s)\n", i, devDescriptors[i].productName, devDescriptors[i].uniqueId);

if(numDevs > 1)
descriptorIndex = selectDAQDevice(numDevs);

// get a handle to the DAQ device associated with the first descriptor
daqDeviceHandle = ulCreateDaqDevice(devDescriptors[descriptorIndex]);
Expand Down
5 changes: 4 additions & 1 deletion examples/CInScan.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ int main(void)

printf("Found %d DAQ device(s)\n", numDevs);
for (i = 0; i < (int) numDevs; i++)
printf(" %s: (%s)\n", devDescriptors[i].productName, devDescriptors[i].uniqueId);
printf(" [%d] %s: (%s)\n", i, devDescriptors[i].productName, devDescriptors[i].uniqueId);

if(numDevs > 1)
descriptorIndex = selectDAQDevice(numDevs);

// get a handle to the DAQ device associated with the first descriptor
daqDeviceHandle = ulCreateDaqDevice(devDescriptors[descriptorIndex]);
Expand Down
5 changes: 4 additions & 1 deletion examples/CInScanWithEncoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ int main(void)

printf("Found %d DAQ device(s)\n", numDevs);
for (i = 0; i < (int) numDevs; i++)
printf(" %s: (%s)\n", devDescriptors[i].productName, devDescriptors[i].uniqueId);
printf(" [%d] %s: (%s)\n", i, devDescriptors[i].productName, devDescriptors[i].uniqueId);

if(numDevs > 1)
descriptorIndex = selectDAQDevice(numDevs);

// get a handle to the DAQ device associated with the first descriptor
daqDeviceHandle = ulCreateDaqDevice(devDescriptors[descriptorIndex]);
Expand Down
5 changes: 4 additions & 1 deletion examples/DBitIn.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ int main(void)

printf("Found %d DAQ device(s)\n", numDevs);
for (i = 0; i < (int) numDevs; i++)
printf(" %s: (%s)\n", devDescriptors[i].productName, devDescriptors[i].uniqueId);
printf(" [%d] %s: (%s)\n", i, devDescriptors[i].productName, devDescriptors[i].uniqueId);

if(numDevs > 1)
descriptorIndex = selectDAQDevice(numDevs);

// get a handle to the DAQ device associated with the first descriptor
daqDeviceHandle = ulCreateDaqDevice(devDescriptors[descriptorIndex]);
Expand Down
5 changes: 4 additions & 1 deletion examples/DBitOut.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ int main(void)

printf("Found %d DAQ device(s)\n", numDevs);
for (i = 0; i < (int) numDevs; i++)
printf(" %s: (%s)\n", devDescriptors[i].productName, devDescriptors[i].uniqueId);
printf(" [%d] %s: (%s)\n", i, devDescriptors[i].productName, devDescriptors[i].uniqueId);

if(numDevs > 1)
descriptorIndex = selectDAQDevice(numDevs);

// get a handle to the DAQ device associated with the first descriptor
daqDeviceHandle = ulCreateDaqDevice(devDescriptors[descriptorIndex]);
Expand Down
5 changes: 4 additions & 1 deletion examples/DIn.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ int main(void)

printf("Found %d DAQ device(s)\n", numDevs);
for (i = 0; i < (int) numDevs; i++)
printf(" %s: (%s)\n", devDescriptors[i].productName, devDescriptors[i].uniqueId);
printf(" [%d] %s: (%s)\n", i, devDescriptors[i].productName, devDescriptors[i].uniqueId);

if(numDevs > 1)
descriptorIndex = selectDAQDevice(numDevs);

// get a handle to the DAQ device associated with the first descriptor
daqDeviceHandle = ulCreateDaqDevice(devDescriptors[descriptorIndex]);
Expand Down
5 changes: 4 additions & 1 deletion examples/DInScan.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ int main(void)

printf("Found %d DAQ device(s)\n", numDevs);
for (i = 0; i < (int) numDevs; i++)
printf(" %s: (%s)\n", devDescriptors[i].productName, devDescriptors[i].uniqueId);
printf(" [%d] %s: (%s)\n", i, devDescriptors[i].productName, devDescriptors[i].uniqueId);

if(numDevs > 1)
descriptorIndex = selectDAQDevice(numDevs);

// get a handle to the DAQ device associated with the first descriptor
daqDeviceHandle = ulCreateDaqDevice(devDescriptors[descriptorIndex]);
Expand Down
5 changes: 4 additions & 1 deletion examples/DOut.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ int main(void)

printf("Found %d DAQ device(s)\n", numDevs);
for (i = 0; i < (int) numDevs; i++)
printf(" %s: (%s)\n", devDescriptors[i].productName, devDescriptors[i].uniqueId);
printf(" [%d] %s: (%s)\n", i, devDescriptors[i].productName, devDescriptors[i].uniqueId);

if(numDevs > 1)
descriptorIndex = selectDAQDevice(numDevs);

// get a handle to the DAQ device associated with the first descriptor
daqDeviceHandle = ulCreateDaqDevice(devDescriptors[descriptorIndex]);
Expand Down
5 changes: 4 additions & 1 deletion examples/DOutScan.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ int main(void)

printf("Found %d DAQ device(s)\n", numDevs);
for (i = 0; i < (int) numDevs; i++)
printf(" %s: (%s)\n", devDescriptors[i].productName, devDescriptors[i].uniqueId);
printf(" [%d] %s: (%s)\n", i, devDescriptors[i].productName, devDescriptors[i].uniqueId);

if(numDevs > 1)
descriptorIndex = selectDAQDevice(numDevs);

// get a handle to the DAQ device associated with the first descriptor
daqDeviceHandle = ulCreateDaqDevice(devDescriptors[descriptorIndex]);
Expand Down
5 changes: 4 additions & 1 deletion examples/DaqInScan.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ int main(void)

printf("Found %d DAQ device(s)\n", numDevs);
for (i = 0; i < (int) numDevs; i++)
printf(" %s: (%s)\n", devDescriptors[i].productName, devDescriptors[i].uniqueId);
printf(" [%d] %s: (%s)\n", i, devDescriptors[i].productName, devDescriptors[i].uniqueId);

if(numDevs > 1)
descriptorIndex = selectDAQDevice(numDevs);

// get a handle to the DAQ device associated with the first descriptor
daqDeviceHandle = ulCreateDaqDevice(devDescriptors[descriptorIndex]);
Expand Down
5 changes: 4 additions & 1 deletion examples/DaqInScanWithTrigger.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ int main(void)

printf("Found %d DAQ device(s)\n", numDevs);
for (i = 0; i < (int) numDevs; i++)
printf(" %s: (%s)\n", devDescriptors[i].productName, devDescriptors[i].uniqueId);
printf(" [%d] %s: (%s)\n", i, devDescriptors[i].productName, devDescriptors[i].uniqueId);

if(numDevs > 1)
descriptorIndex = selectDAQDevice(numDevs);

// get a handle to the DAQ device associated with the first descriptor
daqDeviceHandle = ulCreateDaqDevice(devDescriptors[descriptorIndex]);
Expand Down
5 changes: 4 additions & 1 deletion examples/DaqOutScan.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ int main(void)

printf("Found %d DAQ device(s)\n", numDevs);
for (i = 0; i < (int) numDevs; i++)
printf(" %s: (%s)\n", devDescriptors[i].productName, devDescriptors[i].uniqueId);
printf(" [%d] %s: (%s)\n", i, devDescriptors[i].productName, devDescriptors[i].uniqueId);

if(numDevs > 1)
descriptorIndex = selectDAQDevice(numDevs);

// get a handle to the DAQ device associated with the first descriptor
daqDeviceHandle = ulCreateDaqDevice(devDescriptors[descriptorIndex]);
Expand Down
4 changes: 3 additions & 1 deletion examples/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ DaqInScan DaqInScanWithTrigger\
DaqOutScan\
DIn DBitIn DInScan DOut DBitOut DOutScan\
TmrPulseOut\
TIn
TIn\
RemoteNetDiscovery

AIn_SOURCES = AIn.c utility.h
AInScan_SOURCES = AInScan.c
Expand Down Expand Up @@ -37,6 +38,7 @@ DOutScan_LDADD = $(LDADD) -lm
DOutScan_SOURCES = DOutScan.c
TmrPulseOut_SOURCES = TmrPulseOut.c
TIn_SOURCES = TIn.c
RemoteNetDiscovery_SOURCES = RemoteNetDiscovery.c



Expand Down
Loading

0 comments on commit 24ba881

Please sign in to comment.