 BlueShift
		
			BlueShift
		
		
		
		
		
		
		
		
	
			05-20-2010 12:39 PM
I have written a VI to communicate with an RTD calibration bath that is linked to the computer with an RS-232 cable. Generally, it is working just fine, but after running for a while, communication ceases. After investigating, I have discovered that the VISA session that I am giving to a couple of Instrument I/O assistants has been cleared. Despite my best efforts, I have been unable to eliminate this problem.
I have attached the VI that I am using to communicate with the bath for reference purposes. The global variable "New Setpoint" is used only when a new temperature setpoint for the bath has been input. The "Read Channel" VI reads from a data array that is storing data, and is constructed in such a way that it can easily be linked with a Keithley sampling device and used with configuration files.
The variable and data wire for "Bath Session" is what I am having an issue with. Again, when I first run the VI it has no troubles finding the bath and communicating with it, but after a while (the time is inconsistent on when it stops working), the data wire seems to clear itself and thus cannot communicate with the calibration bath.
Any insight into this issue would be greatly appreciated.
05-20-2010 12:41 PM
 RTSLVU
		
			RTSLVU
		
		
		
		
		
		
		
		
	
			05-20-2010 01:02 PM
Right off the top of my head I would say dump the Instrument I/O assistants and just use VISA reads and writes to comunicate with your instrument.
Personaly I have not had good luck using any of the "express" VI's.
05-24-2010 02:03 PM
Hi BlueShift,
Have you had a chance to replicate this behavior with lower-level VISA commands? The Basic Serial Write and Read.vi, accessible from NI Example Finder, has the associated code you may be interested in.
You could post an NI Spy Capture file that identifies driver calls and results, and the following KnowledgeBase article details the necessary steps.
Performing a Good NI Spy Capture for Debugging/Troubleshooting
05-24-2010 02:06 PM