24.1.21

QWWAD 1.5.2 MAC install tips

 When you install QWWAD 1.5.2 quantum simulator to your mac, you will face two hurdles.


0. Install correct software.

- Let's say you want to install gfortran, in this case, you need to check your process, do not install 11 versions for the APM process if your mac using the intel process.

1. You need to change configure file.

- Open your configure file to a coding editor like vscode.

- Find the line: LDFLAGS="-Wl,—as-needed $LDFLAGS" (probably 9493 line)

- Replace this line to: LDFLAGS="$LDFLAGS"

- save

2. Install correct version armadillo package.

If you install your armadillo by brew. Probably brew installed 10.2 version. But unfortunately, the armadillo version 10 doesn't support 'char' input anymore.

So, you need to install armadillo 9 version.


Good luck.


11.3.16

Novatech-409B 4ch Signal Generator Matlab control code

%% Serial Port Open
s= serial('COM1'); %COM#
set(s, 'BaudRate', 19200);
set(s, 'Terminator', 'LF');
fopen(s);
%% CH_0
fprintf(s,'f0 20'); % Frequency F0 XXX.XXXXXXX ; Maximum setting: 171.1276031 MHz
fprintf(s,'p0 00000'); % Phase P0 00000 ; N*360/16384
fprintf(s,'v0 1000'); % Amplitude V0 ; 0 (off) to 1023 (no decimal point allowed)
%% CH_1
fprintf(s,'f1 20'); % Frequency F1 XXX.XXXXXXX ; Maximum setting: 171.1276031 MHz
fprintf(s,'p1 00000'); % Phase P1 XXXXX ; N*360/16384
fprintf(s,'v1 1000'); % Amplitude V1 XXXX ; 0 (off) to 1023 (no decimal point allowed)
%% CH_2
fprintf(s,'f2 20'); % Frequency F2 XXX.XXXXXXX ; Maximum setting: 171.1276031 MHz
fprintf(s,'p2 00000'); % Phase P2 XXXXX ; N*360/16384
fprintf(s,'v2 1000'); % Amplitude V2 XXXX ; 0 (off) to 1023 (no decimal point allowed)
%% CH_3
fprintf(s,'f3 20'); % Frequency F3 XXX.XXXXXXX ; Maximum setting: 171.1276031 MHz
fprintf(s,'p3 00000'); % Phase P3 XXXXX ; N*360/16384
fprintf(s,'v3 1000'); % Amplitude V3 XXXX; 0 (off) to 1023 (no decimal point allowed)

%% Serial Port Close
fclose(s);

15.8.15

Voltage controlled current sink (0 to 500 mA)

If you want to change current limitation, you should change 5 ohm 10 watt resistor part to another resistor. And make OP-Amp offset part. (ex. OP07 : 1, 8 pins)
I used D560 npn transistor.



 Voltagemeter, currentmeter, timer, SMPS, Voltage controlled current source and vaccum on off switch.

UV lamp