08-22-2006 12:29 PM
08-22-2006 12:39 PM
08-22-2006 01:34 PM
08-22-2006 01:38 PM
08-22-2006 01:44 PM
08-22-2006 02:17 PM
VISA Bytes at Serial Port is on the Serial palette. You would wire the output of this to the Byte count input of VISA Read.
Your read subVI has some extra code that you don't need. No reason for the while loop or the retry logic. There's seldom a reason for retrys on a write either. Why do you have that?
08-22-2006 02:28 PM
08-22-2006 02:45 PM - edited 08-22-2006 02:45 PM
Since 'dis' is a command to the instrument, you would use your write subVI to send it.
You haven't inserted the VISA Bytes at Serial port anyplace that I can see. You've got a constant of 2 in the read. Are you sure that is the correct count?
I'm also doen't understand why you are using a sequence structure. If you were to wire error out to error in of the next function, you wouldn't need this. Instead of the wait (ms), you can use the delay function. This has error in/out connections. Creating a wait (ms) function to have error connections is a trivial excercise if you are up to it.
Message Edited by Dennis Knutson on 08-22-2006 01:49 PM
08-22-2006 02:46 PM
08-22-2006 02:50 PM