The VISA s/w version is 4.0. The NI-488.2 s/w version is 2.46.
I
want the instrument to
stay in remote mode after exiting labVIEW, and I suspect it could be something to do with the GPIB termination mode settings in MAX. The settings are in the two attached pictures. I also have this log from NI Spy. Steps 1,2,3 are writing and reading from the GPIB and quitting LabVIEW (it statys in remote mode), steps 6,7,8 query for the voltage setting and quit LabVIEW, steps 9,10 simply write the new voltage setting and quit LabVIEW (this takes it out of remote mode to local mode, somthing I want to avoid), and steps 11,12,13 query for the new voltage setting and quite LabVIEW. I can't see anything different between the "write then read" voltage setting and simple "only write" voltage setting, unless the "Read" in between writing the new voltage and exiting LabVIEW does something to the controller to make it stay in remote mode.
1. GPIB Write (2, "vset 30.iset 5", 0, 5000, 256)
Process ID: 0x00000988 Thread ID: 0x00000684
Start Time: 10:08:35.359 Call Duration 00:00:00.266
Status: 0 (VI_SUCCESS)
2. GPIB Read (2, 200, 0, 5000, ".", 8448)
Process ID: 0x00000988 Thread ID: 0x00000684
Start Time: 10:08:35.828 Call Duration 00:00:00.000
Status: 0 (VI_SUCCESS)
3. ibonl(UD0, 0)
Process ID: 0x00000988 Thread ID: 0x000009BC
Start Time: 10:08:49.328 Call Duration 00:00:00.000
ibsta: 0x100 iberr: 0 ibcntl: 0(0x0)
4. GPIB Write (2, "vset?", 0, 5000, 256)
Process ID: 0x00000BEC Thread ID: 0x00000D20
Start Time: 10:27:02.125 Call Duration 00:00:00.046
Status: 0 (VI_SUCCESS)
5. GPIB Read (2, 200, 0, 5000, "VSET 30.000 ..", 8448)
Process ID: 0x00000BEC Thread ID: 0x00000514
Start Time: 10:27:02.375 Call Duration 00:00:00.000
Status: 0 (VI_SUCCESS)
6. ibonl(UD0, 0)
Process ID: 0x00000BEC Thread ID: 0x0000061C
Start Time: 10:27:15.078 Call Duration 00:00:00.000
ibsta: 0x100 iberr: 0 ibcntl: 0(0x0)
7. GPIB Write (2, "vset 30.iset 5", 0, 5000, 256)
Process ID: 0x00000C34 Thread ID: 0x00000944
Start Time: 10:29:28.250 Call Duration 00:00:00.265
Status: 0 (VI_SUCCESS)
8. ibonl(UD0, 0)
Process ID: 0x00000C34 Thread ID: 0x00000A9C
Start Time: 10:29:36.218 Call Duration 00:00:00.000
ibsta: 0x100 iberr: 0 ibcntl: 0(0x0)
9. GPIB Write (2, "vset?", 0, 5000, 256)
Process ID: 0x00000DC8 Thread ID: 0x00000DEC
Start Time: 10:30:15.859 Call Duration 00:00:00.031
Status: 0 (VI_SUCCESS)
10. GPIB Read (2, 200, 0, 5000, "VSET 30.000 ..", 8448)
Process ID: 0x00000DC8 Thread ID: 0x00000DEC
Start Time: 10:30:16.093 Call Duration 00:00:00.000
Status: 0 (VI_SUCCESS)
11. ibonl(UD0, 0)
Process ID: 0x00000DC8 Thread ID: 0x00000E28
Start Time: 10:30:35.828 Call Duration 00:00:00.000
ibsta: 0x100 iberr: 0 ibcntl: 0(0x0)
The only other thing I can think of is that the communication protocol between the specific power supply and LAbVIEW isn't being followed properly.