05-26-2023 11:55 AM
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.
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
05-26-2023 12:54 PM
05-26-2023 02:03 PM
@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).