dac_data_manager: Ensure channels are enabled when creating buffer

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
plugins/dac_data_manager.c: Add "Load" dac buffer button and a status bar
- a "Load" button is used to load a waveform file instead of doing this automatically when selecting a file or enabing/disabling a channel
- the status bar displays a message about the success status of the loading process

Signed-off-by: Dan Nechita <dan.nechita@analog.com>
Profiles: Load the DDS channels state before loading the waveform file

Signed-off-by: Dan Nechita <dan.nechita@analog.com>
plugins/fmcomms1.c: Restore from profiles the state of the DDS channels

Signed-off-by: Dan Nechita <dan.nechita@analog.com>
plugins/fmcomms1.c: Update widgets after loading a profile

Signed-off-by: Dan Nechita <dan.nechita@analog.com>
plugins/dac_data_manager.c: Improve error handling of analyze_wavefile()

Signed-off-by: Dan Nechita <dan.nechita@analog.com>
plugins/fmcomms2.c: UP/DN Converter Fix frequency upper limits

Signed-off-by: Dan Nechita <dan.nechita@analog.com>
plugins/fmcomms2.c: Don't overwrite UP/DN freq with PLL freq when reloading
RX and TX LO frequencies of the UP/DN converter were getting overwritten with RX and TX values of the PLL when after clicking the "Reload Settings" button.

Signed-off-by: Dan Nechita <dan.nechita@analog.com>
plugins/motor_control.c: Convert to use new libini2 code

Signed-off-by: Dan Nechita <dan.nechita@analog.com>
Fix string->double conversions when locale is not en-US

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
oscplot.c: Switch I and Q channels when in Complex FFT domain for FMComms6 only
This is a temporary workaround.

Signed-off-by: Dan Nechita <dan.nechita@analog.com>
oscplot.glade: Fix widgets positions in channel trigger dialog

Signed-off-by: Dan Nechita <dan.nechita@analog.com>
dac_data_manager: minor spelling fix

Signed-off-by: Tim Harder <timothy.harder@analog.com>
oscplot.c: Close FileChooser dialog before saving the plot as PNG
The FileChooser dialog window overlaps with the plot window at the moment the image is taken. It has been observed that on XFCE desktop environment the image gets corrupted in this situation.

Signed-off-by: Dan Nechita <dan.nechita@analog.com>
plugins/block_diagram.h: Fix board image not being displayed

Signed-off-by: Dan Nechita <dan.nechita@analog.com>
osc.c: Plugins: Reattach plugins when attempting to destroy their window

Signed-off-by: Dan Nechita <dan.nechita@analog.com>
oscplot.c: Manually set the sample count to 400
For some reason the spinbutton did not display the default value of 400 written in the glade file.

Signed-off-by: Dan Nechita <dan.nechita@analog.com>
plugins/fmcomms2.c: UP/DN Converter - Add env var to change sign
of the frequency mixing equation.

Signed-off-by: Dan Nechita <dan.nechita@analog.com>
Makefile: use pkg-config to find libiio and libxml

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Remove some unused headers and add macros to protect non-POSIX code

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>