04-26-2007 02:11 PM
04-26-2007 02:57 PM
You are getting a timeout error and that's probably due to the fat that the instrument doesn't understand the command you sent. The VI you have doesn't help much since you don't have any data in the string that you are sending. I suspect though, that you need to set the string control to either hex or '\' codes display in order to get the correct format. I didn't read the entire manual but I did see mention of sending DLE+STX. You can't just type in the characters. DLE is hex 10 and STX is hex 02. With the string control set for hex display, you can enter these values plus whatever eles you need. You can also create an arry of U8 and wire this to the Byte Array to String function. The output of this would then be wired to the VISA Write. If the instrument returns hex data, you do the opposite. The string returned by VISA Read would get wired to the String to Byte Array function.
p.s. If you want to post your code, it's more convenient for everyone if you just click the Browse button below the message body and select the file you want to attach.