Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Nothing in the buffer

Hi all,

 

I'm struggling to make a VI to work with Omega controller. I have CN745 connecting with a computer via RS485 and using RS455-to-USB converter. I created a VI as in the attached picture. My problem is that I don't receive anything in the buffer. Any ideas what might go wrong in my VI? An interesting thing is that with the same physical setup (i.e. wiring, converter), I get to work using Visual Basic 6. I tried to look for example VI, but there is no direct example. So I adapted it from the ones that are close to my controller protocol (different Omega controllers may use different communication protocols)

 

Eventually, I will have this VI in a loop to monitor temperature for every few minutes. I also will add a write temperature setpoint VI in there.

0 Kudos
Message 1 of 4
(3,896 Views)

I don't think you want to flush the buffer.  That could be clearning your data before you read it.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(3,893 Views)
Using the string 'CRLF' will do nothing except send the ASCII characters 'C', 'R', etc. You need to send the actual control codes. You should have looked at the serial examples. The basic one has the string control set for '\' Codes display. With that, you use \r\n. You can also use the constants on the string palette.
0 Kudos
Message 3 of 4
(3,892 Views)
p.s. If the instrument requires termination characters on a write, then it probably sends them on a read. You should enable the termination character and get rid of that silly Bytes at Serial Port. Get rid of the sequence structure at the same time.
0 Kudos
Message 4 of 4
(3,889 Views)