I'm writing a Labview 2013 (SP1) vi to read single voltage values from an Agilent 34401A DMM within a time-delayed while loop and am having problems completing the 34401 Intialization vi that comes with Labview. Communication uses COM1 set at 9600, 8,1, N and I can communicate fine with the instrument through NIMax. It responds appropriately to *IDN?, *CLS, *TST and *RST commands. My Labview code sets up a VISA serial session using COM1 with the same communication parameters (using VISA configure serial port) and then calls the 34401 Initialization VI that comes with Labview. An error (-1073807339) is produced in this initialization vi by the 34401 Local/Remote Control subvi within it. However, the following subvis in the initialize vi execute normally, until the end of the Intialize vi itself, where the error code generated in the local/remote subvi, closes the DMM before I can read a measurement. The front panel of the 34401A does indicate that the 34401A has switched to remote mode.
I do not know how to proceed from here and any help would be appreciated.
Gary