Commit Graph

44 Commits (20788cd690336cf2924442fe55ec758226680ce0)

Author SHA1 Message Date
Michael Hennerich 20788cd690
Create LICENSE.txt 2018-08-24 09:25:04 +02:00
acozma ac8b155f03 Fixed variable naming error 2017-03-03 16:01:24 +02:00
acozma 9281e0c660 Added a temporary fix for the DAQ2 board. 2016-04-29 12:44:05 +03:00
acozma c3b79abd6c Fixed attribute search 2015-09-22 01:10:45 +03:00
acozma ad004dcd83 Added functions to get the indexes of in and out channels 2015-06-18 17:01:25 +03:00
Tim Harder 01440e3439 ignore vim swap files 2015-06-03 15:26:38 -04:00
Tim Harder a3311ecf39 clarify iio.h macros that break with MATLAB on Linux
So there's less chance of them getting inadvertantly synced over again.
2015-05-27 17:09:53 -04:00
Tim Harder 16c17d913f revert mistakenly committed test in libiio version check 2015-05-20 11:04:41 -04:00
Tim Harder c00806dbd7 tweak and linewrap libiio version error messages 2015-05-19 10:45:46 -04:00
Tim Harder a802cda03f only check the major versions of remote and local libiio
If they are the same, don't error out even if the minor versions are
different since libiio should have backwards and forwards compatibility
to some extent. When backwards incompatible ABI/API changes are made,
the major version should be incremented at which point an error will be
raised when trying to connect.
2015-05-15 15:08:57 -04:00
Tim Harder 6f0223bfde remove __attribute__ macros for Linux
They appear to interact poorly with the current setup for compiling
Matlab bindings causing errors such as the following:

Failed to parse type '( visibility (" default "))) ssize_t iio_buffer_refill (
struct iio_buffer * buf' original input '( visibility (" default "))) ssize_t
iio_buffer_refill ( struct iio_buffer * buf ' Found on line 1576 of input from
line 863 of file
/home/timh/code/adi/mathworks/AD9361_Filter_Wizard/../iio_sys_obj/iio.h Error
parsing argument for function __attribute__ function may be invalid.
2015-05-15 15:02:32 -04:00
rgetz fe41cfefc9 Add license
Add a license for the system object
2015-05-15 14:50:10 -04:00
acozma 5b10da0cc0 Commented out stdbool.h 2015-05-15 11:27:33 +03:00
acozma fe614823f9 Updated iio.h and the minor version value check 2015-05-14 15:17:10 +03:00
acozma bb9e938869 Improved ports selection for the matlab system object 2015-05-13 15:19:49 +03:00
dpu1778 89e5be4c28 LTE test: initial upload 2015-05-06 10:32:28 -04:00
acozma ddb5633c4c Added a function to write fir data 2015-05-04 18:10:16 +03:00
dpu1778 732b6ab162 changed the order of radio configuration & data transmit/capture 2015-03-16 13:22:18 -04:00
dpu1778 86e5e0b4cc uploaded the MATLAB version
initial upload
2015-03-16 13:00:03 -04:00
acozma 5cbe25f10c Updated the version 2015-03-13 16:42:24 +02:00
acozma 0f921060bc Updated the version 2015-03-12 16:23:28 +02:00
Tim Harder dc82886255 bump allowed versions since libiio-0.3 is out 2015-01-29 18:28:19 -05:00
Tim Harder ae81c94bf0 add libiio version info for all version checking failures
Signed-off-by: Tim Harder <timothy.harder@analog.com>
2015-01-14 17:32:30 -05:00
Tim Harder 2d4670b4df use "Local libiio" instead of "libiio dll" to describe local
This makes more sense to match "Remote libiio" that is already used.

Signed-off-by: Tim Harder <timothy.harder@analog.com>
2015-01-14 16:34:35 -05:00
Tim Harder 2f316028e3 drop null terminator from git hash string
It often interacts with strings it's placed into in different ways,
sometimes terminating the string or appearing to be treated as
whitespace.

Signed-off-by: Tim Harder <timothy.harder@analog.com>
2015-01-14 16:29:17 -05:00
Tim Harder 5cbc2a2f74 use consistent spacing for comma-separated lists
Signed-off-by: Tim Harder <timothy.harder@analog.com>
2015-01-14 16:28:16 -05:00
Tim Harder 8962462ce3 use consistent indentation
We'll use 4 space indents since that's what the filter wizard does.

Signed-off-by: Tim Harder <timothy.harder@analog.com>
2015-01-14 16:20:51 -05:00
Tim Harder 5ffebb4be8 remove unnecessary EOL whitespace
Signed-off-by: Tim Harder <timothy.harder@analog.com>
2015-01-14 16:17:51 -05:00
acozma b654685b58 Allow control attributes to be associated also with data devices 2015-01-08 10:29:02 +02:00
dpu1778 4632fb1a4d solved the issue of discontinuity in transmission 2014-12-19 14:05:00 -05:00
Tim Harder 9699ec7aa2 only load library is it's not loaded already
This stops matlab from complaining about the library class already
existing after it's loaded previously.

Signed-off-by: Tim Harder <timothy.harder@analog.com>
2014-12-10 14:41:51 -05:00
Tim Harder 0a75793d9d wrap loadlibrary call in try/catch block
The loadlibrary can fail due to various reasons. On Linux this includes
having a recent toolchain that supports newer C++ ABIs compared to the
libstdc++.so.* bundled in sys/os/glnxa64 with Matlab.

Since Matlab searches its own directories for bundled libs before the
system patchs it tries to use the older lib which lacks for support for
newer ABIs required by system libs that Matlab uses and doesn't bundle.
This causes errors similar to the following to be shown:

/opt/matlab/R2015a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6:
version `CXXABI_1.3.8' not found
(required by /usr/lib64/libicui18n.so.53)

The easiest fix is to override the libstdc++.so.6 symlink in
sys/os/glnxa64 to point to the system version instead of the bundled
Matlab version.

Catching the exception allows the user to take notice of it better and
provides better feedback to the app (in this case the filter wizard)
trying to load the library that things failed.

Signed-off-by: Tim Harder <timothy.harder@analog.com>
2014-12-05 16:42:31 -05:00
dpu1778 c10885d450 Updated libiio_if.m
changed pMinor.Value on Line 99
2014-11-26 13:34:53 -05:00
dpu1778 305954ec15 Updated iio.h
Removed stdbool.h. Otherwise, MATLAB will give out errors.
2014-11-24 14:55:02 -05:00
acozma d52b01189b Updated the code to match the libiio updates 2014-11-24 18:33:36 +02:00
acozma cd2ca49947 Reorganized the folders for the HIL models and base system object 2014-11-21 15:06:08 +02:00
acozma 24f9e05b36 Added models for fmcomms 2,3,4,5 2014-11-20 14:15:35 +02:00
acozma fc853be5c7 Replaced the old version with the new implementation 2014-10-13 15:00:47 +03:00
acozma 32b635f64b Check the compatibility of the sys obj with the dll and iiod 2014-08-02 13:43:39 +03:00
acozma 36a5e6648b Fixed transmit buffer size issue. 2014-07-30 15:47:46 +03:00
acozma 8fad9bf97d Added an instance count to manage proper library unloading 2014-07-29 11:28:23 +03:00
acozma f4962df6d6 Check if the context is valid to avoid crash 2014-07-22 16:23:33 +03:00
acozma f0a5eab5f7 Added the iio.h file 2014-07-21 15:20:53 +03:00
acozma c95fd5a3d2 Updated the libiio system object 2014-07-17 15:27:47 +03:00