09-26-2005 01:41 PM
09-26-2005 01:46 PM
09-26-2005 02:02 PM
The first thing you should do is clean up the wiring and programming in the diagram. You've got a bunch of hidden wires and that just makes things more difficult to debug. The program in general is pretty confusing and is overly complex. Even if you had serial coms up and working, I don't think it would work correctly. Second thing is to try a single VI that will read/write to a single instrument. Third thing is to actually wire up the error in/error out clusters on the VISA functions to see what, if any errors might be happening. The fourth thing is to verify that the instrument actaully expects a carriage return and not a line feed as a terminator. The fifth thing is that you do not connect the return count output of VISA Write to the byte count input of VISA Read. The return count is the number of bytes that you've actually written and VISA Read wants to know the number of bytes that you expect to read. If you don't know the number of bytes to read, you can put in a small wait and then do a VISA Bytes at Serial Port to get exactly how many bytes are in the serial buffer.
Try one of the shipping examples like Basic Serial Write and Read and see if you can get that to work.
09-28-2005 01:47 PM
09-28-2005 01:55 PM
09-28-2005 02:10 PM
09-28-2005 02:20 PM
09-28-2005 02:21 PM
09-28-2005 02:28 PM
09-29-2005 01:16 PM