Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5658

USB to RS232 Adapter: VISA Serial Write Works but VISA Serial Read Gets Timeout Error

$
0
0

Hey Everyone,

 

I am fairly new to LabVIEW so bare please bare with me. I am trying to receive data from a C0-08TD1 PLC that is connected to my PC via USB to RS232 adapter. The Baud Rate = 38400, parity = Odd, stop bit = 1, and data length = 8-bits (given to me when I connect the PLC to the CLICK PLC programming software). I am able to perform VISA serial write, however with VISA serial read I receive the " VISA: (Hex 0xBFFF0015) Timeout expired before operation was completed " error message. I learned this occurs by single stepping through the entire program. This appears to be the ONLY thing going wrong within the vi. 

 

Here is an image of where the Serial Read give me an error (one of my sub vi)

Serial_Command_VI.png

 

I have attached the main vi I am using, as well as the two sub vi inside of the main. So my two questions are: 

1. Is it possible for me to receive information from my PLC this way?

2. If so, what could I be doing wrong?

 

I would like to note that a majority of the content in these vi were created by an old coworker. He had it all up and running previously on his PC, and now I am trying to get it to work on my PC.

 

Thank you to everyone who read this post.


Viewing all articles
Browse latest Browse all 5658

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>