Tuesday 14 July 2015

How to install .net 3.5 Framework to Windows Server 2012 R2

If your application requires .Net 3.5 to run on Microsoft Windows Server 2012 R2, you are more than likely to have a problem installing or if it does install not work.

How to install .Net Framework 3.5 on Windows Server 2012 R2.

  1. Insert server operating Disc or mount the ISO.

  2. Open command as Administrator

  3. Take not of the drive letter the O/S disc is mounted and if it isn't d: then you will need to change this part "/Source:d:sourcessxs" in the line below to the driver letter

  4. Type : dism /online /enable-feature /featurename:NetFX3 /all /Source:d:sourcessxs /LimitAccess 

  5. The .Net framework 3.5 feature will install see fig 1

  6. Under Roles and feature in the server manager you will now see dot net 3.5 installed see fig 2


Tuesday 21 April 2015

Matlab - exit infinite while loop with a keypress

This code is for an infinite while loop in Matlab, it will check to see if the 'q' key has been pressed, it when then ask do you really want to quit (Yes/No) and then exit the while loop.

 
close
clear all
clc
figure('doublebuffer','on', ...
'CurrentCharacter','a', ...
'WindowStyle','modal')

t=text(.5,.5,datestr(now),'Hor','center');

while (1)

% your code here
set(t,'String',datestr(now));
% your code ends

pause(.01); % added to pause and allow screen/ keyboard buffer to update

if double(get(gcf,'CurrentCharacter')) == 113 % check if 'q' key pressed, change to 27 for escape
choice = menu('Quit code yes or no?','Yes','No');
if choice==1 | choice==0
break; % break from while loop
end
set(gcf,'currentch',char(1)) % Sets current char as 1 or it would just keep asking to quit
end

end

set(t,'String','While loop exited, finished');
set(gcf,'WindowStyle','normal');

 

Friday 17 April 2015

How to update National Instruments myRIO firmware and Real-Time

myRIOThe National Instruments myRIO requires to have the same Real-Time module  installed on as the one that is installed  with LabVIEW to be able to use, if an old version is installed on the myRIO then when you plug the myRIO in the "NI myRIO USB monitor" will disable LabVIEW from the menu (see fig 1), if you are using the latest version of LabVIEW then you will need to update the firmware* or use an older version of LabVIEW.

* Updating the firmware will delete all code installed on the myRIO.
 Instructions on how to update the BIOS and firmware on the myRIO:

Tuesday 17 March 2015

Brady label printers

Looking for a label printer? Fisher Scientific - Laboratory supplies & equipment ... are a supplier of Brady label printers

Visit http://www.fisher.co.uk/

Catalogue March 2015 -  Laboratory_Identification_Catalogue_Europe_English-1 (5)

Wednesday 4 March 2015

LabVIEW 2014 myRIO not working

When installing LabVIEW 2014 and selecting the myRIO toolkit it doesn't automatically select a required module, you will need to select the LabVIEW 2014 Real-Time Module. This will install the myRIO examples and the Vi's required also it then adds the myRIO environment this changes the splash screen to display "LabVIEW myRIO 2014"

NI-myrio

 

http://www.ni.com/myrio/

Monday 23 February 2015

PC Engines APU1D

The APU1D from PC Engines (released end of March 2015)

The CPU is a AMD G series T40E 1 GHz dual bobcat core with 64bit support, has 3 on-board Gigabyte network sockets and supports m-Sata SSD and one SATA plus power connector, and for expansion have 2 miniPCI express slots. The board has two options for memory the APU1D has 2GB and the APU1D4 has 4GB. The power ranges from 6 to 12 watts and is powered by a just 12v PSU.

APU1D image of board

Full hardware specification can he found here http://www.pcengines.ch/apu1d.htm