02-26-2007 12:11 PM
02-26-2007 01:36 PM
If you can make it work in hyperterminal then you should have very little problem writing a program to do the same in labview. Serial using visa is easy, first function is open a visa session with the resource (COM1 for example) now vias has reserved the resource, next call the serial configure, where you set the the serial settings like parity, baud rate start/stop bits (all provided by the device manual). Then you send the same command string as you would with hyperterminal using a visa write, put the command in the string wired to the write vi. If the command is a query (expecting a response from the device) place a visa read command next with the expected bytes for the message to be returned. Last call the visa close to free the serial resource for other processes to use. There are some examples of visa in the example finder. Also search to see if a device driver is already available in labview (Driver network on this site), studying the driver will teach you how to write a driver in the future. Writing a device driver using visa sounds harder than it really is.
Paul
02-26-2007 01:58 PM
02-28-2007 03:49 AM
Hi Stuart,
Here is some example code that demonstrates how to do a VISA Read and Write.