10-20-2014 09:08 AM
10-20-2014 09:24 AM
Thank you!
wrote it like that but with no result.
Where could I get a list of max instructions and examples?
what should have been the result of writing
V00\r
?
if I wanted to set the voltage to 500V, what would the command look like?
As I am trying to interact with Hamamatsu, only NI-Max is open, no labview program is running.
10-20-2014 12:44 PM
10-20-2014 01:43 PM
That is a very clever idea, to monitor Hamamatsu's software's outputs...
that is exactly what I will do.
Thank you again, Dennis!
10-20-2014 02:00 PM
10-22-2014 03:01 AM - edited 10-22-2014 03:11 AM
This is turning out to be a nightmare.
Portmon doesn't work on windows 7 32bit; realtime is not free, serial line sniff I did not manage to install .
Finally, Free Serial Port Monitor did the job at no expense.
opening the hamamatsu control software revealed
Port opened by process "C9525_control4E.exe" (PID: 2724)
Request: 22.10.2014 10:48:14.35064
52 0D R.
Answer: 22.10.2014 10:48:14.62064 (+0.2700 seconds)
00 00 0A 00 01 00 05 01 01 00 00 00 2D ............-
Request: 22.10.2014 10:48:14.64364 (+0.0230 seconds)
46 0D F.
Answer: 22.10.2014 10:48:14.84364 (+0.2000 seconds)
56 65 72 31 2E 36 30 20 43 39 35 32 35 2D 30 33 Ver1.60 C9525-03 46 41 30 30 31 35 20 20 FA0015
Request: 22.10.2014 10:48:14.86464 (+0.0210 seconds)
47 00 0D G..
Answer: 22.10.2014 10:48:15.06664 (+0.2020 seconds)
00 00 00 00 00 00 00 00 00 .........
Request: 22.10.2014 10:48:15.10864 (+0.0420 seconds)
47 00 0D G..
Answer: 22.10.2014 10:48:15.31164 (+0.2030 seconds)
00 00 00 00 00 00 00 00 00 .........
Request: 22.10.2014 10:48:15.40064 (+0.0890 seconds)
47 01 0D G..
Answer: 22.10.2014 10:48:15.60064 (+0.2000 seconds)
00 00 00 00 00 00 00 00 00 .........
Request: 22.10.2014 10:48:15.62864 (+0.0280 seconds)
47 02 0D G..
Answer: 22.10.2014 10:48:15.82864 (+0.2000 seconds)
00 00 00 00 00 00 00 00 00 .........
Request: 22.10.2014 10:48:15.86164 (+0.0330 seconds)
47 03 0D G..
Answer: 22.10.2014 10:48:16.06164 (+0.2000 seconds)
00 00 00 00 00 00 00 00 00 .........
Request: 22.10.2014 10:48:16.09264 (+0.0310 seconds)
47 04 0D G..
Answer: 22.10.2014 10:48:16.29264 (+0.2000 seconds)
00 00 00 00 00 00 00 00 00 .........
Request: 22.10.2014 10:48:16.32364 (+0.0310 seconds)
47 05 0D G..
Answer: 22.10.2014 10:48:16.52464 (+0.2010 seconds)
00 00 00 00 00 00 00 00 00
read device settings should return 13 bytes
command
52 0D R.
answer
00 00 0A 00 01 00 05 01 01 00 00 00 2D
the read should return 24 bytes ; the command to return 24 bytes was
command
46 0D F.
answer
56 65 72 31 2E 36 30 20 43 39 35 32 35 2D 30 33
46 41 30 30 31 35 20 20
Ver1.60 C9525-03
Does VISA understand that?
If not, what would be the visa translation of that command ?
10-22-2014 03:17 AM
set voltage at 100V :
request
56 01 00 0D V...
Answer: 22.10.2014 11:13:54.09064 (+0.2750 seconds)
56 41 VA
set voltage 1000V:
Request: 22.10.2014 11:16:12.44864 (+138.3579 seconds)
56 0A 00 0D V...
Answer: 22.10.2014 11:16:12.72964 (+0.2810 seconds)
56 41 VA
10-22-2014 04:05 AM
turn off hvout:
Request: 22.10.2014 11:36:42.16564 (+267.2723 seconds)
4F 00 0D O..
Answer: 22.10.2014 11:36:42.44564 (+0.2800 seconds)
56 41 VA
Port closed
Port opened by process "C9525_control4E.exe" (PID: 2724)
Request: 22.10.2014 11:36:44.96064 (+1.5151 seconds)
54 0D T.
Answer: 22.10.2014 11:36:45.62464 (+0.6640 seconds)
00 2B .+
Request: 22.10.2014 11:36:46.65264 (+1.0281 seconds)
54 0D T.
Answer: 22.10.2014 11:36:46.22264 (+0.5700 seconds)
00 00
so, 4F 01 0D O..
opens the HV out
4F 00 0D O..
closes the hvout.
56=set H voltage output with arguments : value1x100+value2
val1 0h-14h; val2 0h-63h
set 1000v : 56 0A 00 0D
0A=10
00=0 ,
0A*100 +0=1000
10-22-2014 05:03 AM
I typed into the visa command window
R, R<CR>,
52 0D R.
<52><0D><R.> AND every combination but no success in establishing a correct communication.
Mostly bad command returned and sometimes no return at all.
I don't know what I should type in the visa command window in order for the request to be
52 0D R.
Any help would be greatly appreciacted at this point.
How do I set up the commandds in ni-max?
Port opened by process "NIMax.exe" (PID: 7728)
Request: 22.10.2014 12:10:57.38164 (+301.1722 seconds)
35 32 20 30 44 20 52 52 20 35 32 20 30 44 52 2E 52 0D RR 52 0DR.
20 35 32 20 30 44 52 2E 3C 35 32 3E 3C 30 44 3E 52 0DR.<52><0D>
Answer: 22.10.2014 12:18:38.39364 (+0.0910 seconds)
42 43 BC
Request: 22.10.2014 12:20:20.79064 (+101.3968 seconds)
3C 52 3E 3C 35 32 3E 3C 30 44 3E <R><52><0D>
Answer: 22.10.2014 12:20:20.88864 (+0.0980 seconds)
42 43 BC
Request: 22.10.2014 12:20:58.25164 (+38.3632 seconds)
52 52 20 30 44 52 52 3C 52 3E 3C 35 32 3E 3C 30 RR 0DRR<R><52><0
44 3E 3C 52 3E 3C 30 44 3E 3C 52 3E 3C 30 44 3E D><R><0D><R><0D>
Answer: 22.10.2014 12:24:37.89164 (+0.0260 seconds)
42 43 42 43 BCBC
Request: 22.10.2014 12:25:07.14564 (+29.1847 seconds)
3C 52 3E 52 2E 52 2E <R>R.R.
Port closed
Port opened by process "NIMax.exe" (PID: 7728)
3C 52 3E 3C 43 52 3E 2A 49 44 4E 3F 0A 2A 52 52 <R><CR>*IDN?.*RR
2A 52 2A 52 *R*R
Answer: 22.10.2014 12:29:40.62464 (+0.0270 seconds)
42 43 BC
Request: 22.10.2014 12:30:22.69764 (+42.0734 seconds)
2A 52 52 2E 52 2E 52 2E 52 2E 35 32 20 30 44 20 *RR.R.R.R.52 0D
52 2E 3C 35 32 3E 3C 30 44 3E 3C 52 2E 3E 3C 35 R.<52><0D><R.><5
32 3E 3C 30 44 3E 3C 35 32 3E 3C 30 44 3E 2><0D><52><0D>
Answer: 22.10.2014 12:34:46.69864 (+0.0330 seconds)
42 43 42 43 BCBC
Request: 22.10.2014 12:51:00.02364 (+974.2527 seconds)
35 32 20 30 44 20 20 20 52 20 35 32 20 30 44 30 52 0D R 52 0D0
44 20 35 32 52 20 20 52 20 20 52 3C 43 52 3E D 52R R R<CR>
10-22-2014 07:57 AM