LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Visa Error - RF module

i have a error in my aplication tht work with usb port. Is a RF module that make data acquisition.
The module have a program in visual basic that run correctly, but i cant make a labview program.
The error is:

"Error -1073807339 occurred at an unidentified location

Possible reason(s):

VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed."

Alguém pode me ajudar???

The program are here
http://paginas.terra.com.br/informatica/eudisley/testeusb.vi

The RF module user guide are here:
http://paginas.terra.com.br/informatica/eudisley/userguide.pdf


Thanks, i´m brazilian!
0 Kudos
Message 1 of 2
(2,493 Views)

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.

0 Kudos
Message 2 of 2
(2,482 Views)