12-04-2006 03:13 PM
12-04-2006 03:24 PM
12-04-2006 03:57 PM
12-05-2006 07:46 AM
12-05-2006 08:23 AM
12-05-2006 08:35 AM
12-05-2006 09:39 AM - edited 12-05-2006 09:39 AM
Message Edited by Steve.Briggs on 12-05-2006 10:42 AM
12-05-2006 09:46 AM
12-05-2006 09:49 AM - edited 12-05-2006 09:49 AM
Message Edited by Steve.Briggs on 12-05-2006 10:50 AM
12-05-2006 10:08 AM
First try this. I don't know where you found those old serial functions. They must have been pulled in from a very old version of LabVIEW. With 7.1, the old serial functions do use VISA unless you've done something really weird. In any case, it's better to use the normal VISA Read and Write. The strings you were sending were not terminated with \r. They were terminated with the characters '\' and 'r'. You have to right click on the string constant and select '\' Code Display to correctly send the control characters. You may also be better off doing a write and then a read instead of 8 writes and a single read. Are you asking for 8 different parameters to be returned from the instrument? Many instruments don't allow this. And if you are requesting 8 different parameters, how could you possibly test this in Hyperterminal. As soon as you typed the first one, the instrument would respond before you could type the second one.
The other cleanup was minor. When you pass an array into a for loop, the array is automatically indexed so you don't need the separate array index function inside the for loop or need to wire the count terminal up. The sequence structure is totally unnecessary so I eliminated that.
If you do need to try the inter-character delay, just replace the VISA Write with the Serial Write Slow example.