LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Agilent 24401 Serial Communication Problem with setting remote control Error -1073807339

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

0 Kudos
Message 1 of 6
(2,875 Views)
Do the examples work? Also, since the initialization VI configures the serial port, eliminate the separate VISA z Configure Serial Port and pass the com settings to the initialize function.
0 Kudos
Message 2 of 6
(2,871 Views)

The Initialize VI actually sets up the serial port, so you don't need to do that on your end.

 

The error you are reporting is a VISA Timeout Error.  Make sure the Serial Configuration cluster input of the Initialize VI is correct, since that is the setting that will be set.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 6
(2,866 Views)

@Bulsan wrote:

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


So you have a VISA timeout.  Could you post the code (or at least a simplified version demonstrating the problem) so we can see where you are going wrong?  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 6
(2,863 Views)

I haven't tried the examples yet, but I eliminated the visa serial configuration vi before the 34401 initialization vi.  In the process, I discovered the initialization vi sets the 34401 stop bits at 2 while I've been using 1.  However, with that fixed (at 2), the initialization vi still gives the same error code, except now it occurs further down the chain of subvis.  It now occurs in the 34401 reset subvi. 

0 Kudos
Message 5 of 6
(2,847 Views)
What is your instrument set to? The initialization VI.does not set the instrument at all. It sets the port st the pc end. Make sure they match.
0 Kudos
Message 6 of 6
(2,843 Views)