08-22-2006 02:59 PM
Of course you need a read if you want to 'read' data from the instrument. It's really quite simple. You do a write to send a command to the instrument. The command may to set up a parameter or it could be a command for the instrument to take a measurement. In your case, you send a command to tell the instrument to transfer the display to it's transmit buffer which sends it to the pc's serial port. Then you do a VISA Read to get the information in the pc's recieve buffer and transfer it to your LabVIEW program.
Here's a cleaner version of the read subVI. Notice the single VISA resource name control that gets passed from function to function and back from the subVI. This simplifies wiring. You can also wire an error cluster directly to a case statement's selector input.
09-12-2006 03:17 PM
09-12-2006 03:24 PM
You could have made it easy by just picking VISA Bytes at Serial Port from the Instrument I/O>Serial palette.
Since you didn't, right click on the property node and select 'Properties>Serial Settings>Number of Bytes at Serial Port.