Thx! It works! Still some problem though.
I was reluctant to open it.
And in the manual it says can change from one to the other by sending some command, and I tried it, of cause no response.
This time after switch it, the initial power up is local, and then use MAX to san instruments, it goes remote.
Then use MAX to communicate with it, send simple command like LEVEL -20 (SET LEVEL AT -20 DB); and FA 12.3+3(SET FREQUENCY AT 12.3GHZ); and both worked fine.
There is still problem with normal GPIB write and read. After successfully communicate using MAX, I trid GPIB example vi and try to wirte the same commands, but get nothing, and the device goes to some strange status, although still response to command like SEND FREQ; SEND ERROR; but neither FA nor LEVEL works properly.
Then I have to restart the device and rescan with MAX.
I guess the normal GPIB write or read is too fast, and they do some query and the device is too slow to response, that might cause problems.
Is there some subvi in labview that can directly communicate with the device like in MAX?
Below are some lines captured by NI spy, from 26 to 33 are the results of GPIB example vi and caused some problems:
22. ibrd(UD0, " P INT -36.3..", 2000 (0x7D0))
Process ID: 0x00000188 Thread ID: 0x00000B74
Start Time: 08:53:36.421 Call Duration: 00:00:00.000
ibsta: 0x2100 iberr: 0 ibcntl: 15(0xf)
23. ibwrt(UD0, "SEND POWER;", 11 (0xB))
Process ID: 0x00000188 Thread ID: 0x00000B74
Start Time: 08:53:38.765 Call Duration: 00:00:00.000
ibsta: 0x100 iberr: 0 ibcntl: 11(0xb)
24. ibrd(UD0, " P INT -37.1..", 2000 (0x7D0))
Process ID: 0x00000188 Thread ID: 0x00000B74
Start Time: 08:53:39.562 Call Duration: 00:00:00.000
ibsta: 0x2100 iberr: 0 ibcntl: 15(0xf)
25. ibwrt(UD0, "LVERN ON;", 9 (0x9))
Process ID: 0x00000188 Thread ID: 0x00000B74
Start Time: 08:54:27.375 Call Duration: 00:00:00.000
ibsta: 0x100 iberr: 0 ibcntl: 9(0x9)
26. ibwrta(UD2, "FA 10e+3;", 9 (0x9))
Process ID: 0x00000E54 Thread ID: 0x00000E74
Start Time: 08:55:23.109 Call Duration: 00:00:00.000
ibsta: 0x0 iberr: 0 ibcntl: 0(0x0)
27. ThreadIberr()
Process ID: 0x00000E54 Thread ID: 0x00000E74
Start Time: 08:55:23.109 Call Duration: 00:00:00.000
ibsta: 0x0 iberr: 0 ibcntl: 0(0x0)
28. ibwait(UD2, 0x0000)
Process ID: 0x00000E54 Thread ID: 0x00000E74
Start Time: 08:55:23.109 Call Duration: 00:00:00.000
ibsta: 0x0 iberr: 0 ibcntl: 0(0x0)
29. ThreadIberr()
Process ID: 0x00000E54 Thread ID: 0x00000E74
Start Time: 08:55:23.109 Call Duration: 00:00:00.000
ibsta: 0x0 iberr: 0 ibcntl: 0(0x0)
30. ibwait(UD2, 0x0000)
Process ID: 0x00000E54 Thread ID: 0x00000E70
Start Time: 08:55:23.125 Call Duration: 00:00:00.000
ibsta: 0x100 iberr: 0 ibcntl: 9(0x9)
31. Asynchronous I/O Resynchronized for ibwrta()
Process ID: 0x00000E54 Thread ID: 0x00000E70
Start Time: 08:55:23.109 Call Duration: 00:00:00.016
ibsta: 0x100 iberr: 0 ibcntl: 9(0x9)
32. ThreadIberr()
Process ID: 0x00000E54 Thread ID: 0x00000E70
Start Time: 08:55:23.125 Call Duration: 00:00:00.000
ibsta: 0x100 iberr: 0 ibcntl: 9(0x9)
33. ibwait(UD2, 0x0100)
Process ID: 0x00000E54 Thread ID: 0x00000E70
Start Time: 08:55:23.125 Call Duration: 00:00:00.000
ibsta: 0x100 iberr: 0 ibcntl: 9(0x9)
34. ibwrt(UD0, "SEND POWER;", 11 (0xB))
Process ID: 0x00000188 Thread ID: 0x00000B74
Start Time: 08:57:00.125 Call Duration: 00:00:00.000
ibsta: 0x100 iberr: 0 ibcntl: 11(0xb)