HDF5 in Labview 2013

There is steady development of the h5labview package, allowing use of many common HDF5 read/write features from Matlab.

0) install VI package manager
1) download and install the latest SHARED HDF5 library from http://www.hdfgroup.org/HDF5/release/obtain5.html#obtain
get the appropriate operating system and 32 or 64 bits according to your Labview install 32/64 bits, not the OS.
2) copy the files hdf5.dll, szip.dll, zlib.dll from
c:\Program Files\HDF_Group\HDF5\1.8.13\bin to
c:\Program Files\National Instruments\LabVIEW 2013\resource

3) download latest .vip file from http://sourceforge.net/projects/h5labview/files/
this will open in VI Package Manager

If you get an error upon installation complaining about PostInstall.vi, try rebooting once.

reference: http://h5labview.sourceforge.net/?faq

Matplotlib in Cygwin 64-bit for Python 3 and Python 2.7

It is pretty simple to install matplotlib for Python 3 and Python 2.7 in Cygwin.

prereqs:
pkg-config ghostscript libfreetype-devel libpng-devel python-gtk2.0 libgtk2.0-devel gcc-g++ git

Procedure:
git clone git://github.com/matplotlib/matplotlib.git
cd matplotlib
python setup.py install

or for python 3, do:
python3 setup.py install

result:
$ python
Python 2.7.5 (default, Oct 2 2013, 22:34:09)
[GCC 4.8.1] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> matplotlib.__version__
u'1.4.x'

$ python3
Python 3.2.5 (default, Oct 2 2013, 22:58:11)
[GCC 4.8.1] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> matplotlib.__version__
'1.4.x'

Note: to actually use matplotlib to create a visible figure, you need a basic X11 system running (install xinit, etc in Cygwin) and type
startx
and then start python from inside X11 terminal.

Restarting Unity desktop in Ubuntu

If your desktop seems to freeze for more than a few seconds, trying pressing together the keys
Ctrl Alt F1
and then login with your username and password, and type
unity & disown
This will leave your desktop/apps all as they were while fixing the broken state.

To just restart the whole Unity desktop (which is like unto logging out and logging in, discarding your current desktop), instead type
sudo service lightdm restart

Updating BIOS in Gigabyte GA-Q87M-D2H to handle Haswell Refresh processor

This otherwise great motherboard is currently (June 2014) shipping with the F6 BIOS, which means the system acts almost completely dead if you have a Haswell Refresh (e.g. i7-4790) CPU installed. To make things more fun, my motherboard was NOT Qflash enabled, and I certainly don’t have Windows, so my only option was DOS flashing. I had the same issue with Intel-made Q67 motherboards, so it’s not just Gigabyte with this bad situation.

To fix this you will need a Haswell, non-Refresh CPU. Worst case, go buy a cheap G3220 for $30-40 since you’ll need it just to flash. This of it as a “tool” that you can partner up with a cheap motherboard for a media center or something.

Linux directions (for Windows, see comments at the bottom from “Frustrated”):
Once you’ve installed the non-Refresh Haswell CPU, from another PC, do:

sudo apt-get install unetbootin

run unetbootin and install FreeDOS 1.0 to a flash drive.

Then, go to gigabyte.com and download the F7 (or whatever version they’re up to now) BIOS self-extracting EXE. Copy ALL the files to the root of your FreeDOS flash drive from Linux.

Put the flash drive into the Gigabyte PC (USB 2.0 or 3.0 port is fine) and upon booting, select SAFE MODE from FreeDOS — the flash utility will NOT work otherwise!

In FreeDOS prompt, type
c:
autoexec.bat

The process takes about 5 minutes. You don’t have to answer any questions, you will just see an Erasing and Writing with text progress. When done the system will reboot about 6 times rapidly, don’t bother it till you see FreeDOS is back.

Then remove FreeDOS USB stick and go about setting up your new PC as usual.

Phew!

SpectraVue 3.3 on WINE Linux

NOTE: As of Wine 1.7, there still was not USB support for ANY devices without some substantial hacking work. This process is just to test Spectravue processing recorded data files.  Note the comment from Andy- G3TDY that starts siqs-ftdi then connects SpectraVue to that server–thanks Andy!

SpectraVue 3.30 and newer changed to using Visual Studio 2010. As a result, you will need to install:

winetricks vcrun2010

then you will be able to run SpectraVue 3.30 and newer under WINE on Ubuntu and other Linux. (Tested with WINE 1.6.2).

 

————————————

Error messages (before this fix):

err:module:import_dll Library mfc100.dll (which is needed by L"C:\\SpectraVue\\IOModule.dll") not found
err:module:import_dll Library IOModule.dll (which is needed by L"C:\\SpectraVue\\SpectraVue.exe") not found
err:module:import_dll Library mfc100.dll (which is needed by L"C:\\SpectraVue\\SpectraVue.exe") not found