LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

connecting keithley 2400 sourcemeter to lab view

Hi, I'm new to labview and im trying to measure some voltage across an resistor using a keithley 2400 sourcemeter and labview. Here is my code.

 

JohnChae0929_1-1685119877266.png

 

In labview I'm getting an error of 'VISA Read in Demo.vi' and error code of -1073807339

and on my sourcemeter monitor it is saying 'undefined header' and 'query interrupted' 

The code above was a simple youtube video I found... https://www.youtube.com/watch?v=8rwUJ-NlISk

 

0 Kudos
Message 1 of 3
(1,099 Views)
0 Kudos
Message 2 of 3
(1,081 Views)

@JohnChae0929 wrote:

In labview I'm getting an error of 'VISA Read in Demo.vi' and error code of -1073807339

and on my sourcemeter monitor it is saying 'undefined header' and 'query interrupted' 

 


The error ending in 339 is the timeout error, i.e. no reply found from instrument before the timer ran out.  Basically, it seems like "nobody is home".

 

The clue where it says " 'undefined header' and 'query interrupted' " on the screen is usually an indicator that you're using different communications protocols.  I'm assuming you're connecting via RS232 serial?  You need to make sure the baud rate, stop bit, and so on match exactly. 

 

You probably need to put the VISA Configure Serial Port VI into your program.  Check the menu on your 2400 under the "communications" setting to find the baud rate, bits, parity, termination character, and flow control, and set the config VI to match (or vice versa).

 

0 Kudos
Message 3 of 3
(1,060 Views)