08-01-2012 01:36 AM
I am getting the error mentioned while operating VISA drivers
Solved! Go to Solution.
08-01-2012 01:49 AM
Hi Ravi,
If you are experiencing this error for a VISA Read, verify that you are not trying to read too many bytes. Read only 1 byte at a time while debugging.
If you do not get the error now, increment the number of bytes you read until you get the timeout error again. This tells you how many bytes that command sends back.
Have you tried to monitor what you're actually getting from the read??
08-01-2012 02:03 AM
08-01-2012 02:30 AM
i got it
11-04-2020 05:14 AM
Sorry, can you explain what was the solution to this? As I am facing the same error. thanks
11-04-2020 05:34 AM
Hi Abega,
@Aaabbb2020 wrote:
Sorry, can you explain what was the solution to this? As I am facing the same error. thanks
Message #2 contains several suggestions: which of them have you tried?
Mind to attach your VI and a description of the communication protocol of the device you are trying to talk with?
11-04-2020 09:14 AM
I am trying to communicate with a RF receiver.
The receiver require a hex cmd to be sent 0x04 0x6A 0xE3 0xD8. from this it should return a string.
I have tried sending the hex cmd using a terminal software and it sends successful. on labview i do not achieve this.
11-04-2020 09:31 AM - edited 11-04-2020 09:32 AM
Hi Abega,
@Aaabbb2020 wrote:
The receiver require a hex cmd to be sent 0x04 0x6A 0xE3 0xD8. from this it should return a string.
You don't send that data and you request just "0" bytes when trying to read:
You also initialize to use a TermChar: does your device support TermChars in its responses?
Can you attach a manual of the device which describes the communication protocol?
11-04-2020 10:14 AM
Sorry that was the data saved.
I have wired the serial port in a loopback test confirmation.
the VI works and returns the write cmd when byte count is set to 4 or less. although does not work when byte count set to > 4. See attached for demonstration.
Error Code -
Error -1073807339 occurred at VISA Read in Serial Communication RF Receiver V2.vi
Possible reason(s):
VISA: (Hex 0xBFFF0015) Timeout expired before operation completed.
How do I disable the TermChar?
Manual is not available to send sorry.
11-04-2020 11:01 AM
Hi Abega,
@Aaabbb2020 wrote:the VI works and returns the write cmd when byte count is set to 4 or less. although does not work when byte count set to > 4.
How do I disable the TermChar?
So you should read 4 bytes when you expect them as response.
Read the help for the serial port initialisation function to learn about TermChar handling!