Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

missing bytes in Visa read function

Solved!
Go to solution
I am using vise read to read the specified number of bytes but before reading I checked bytes at port and compare if its greater than the specific value than I go ahead and try to read that much bytes sometimes I receive the specified number of bytes but sometimes not, even the bytes at port shows me the data is available but read function won't be able to read that much number of bytes. Thanks in Advance for your help. Regards Syed Ahmad
0 Kudos
Message 1 of 7
(4,186 Views)

From earlier today.

 

If the serial data has the termination character in it, you must disable the detection of it with the VISA Configure Serial Port. 

0 Kudos
Message 2 of 7
(4,183 Views)
Solution
Accepted by topic author SyedAhmad

Thanks a lot, it works. I just disabled the termination character from visa configure.

 

Also, how fast i can go as I am using 230400 baud rate and receiving a (20 frames of 350 bytes each in a second). Also i want to display these frames in a intensity graph. Is it possible that i can achieve this in lab view.

 

Regards  

0 Kudos
Message 3 of 7
(4,180 Views)

I would think that you can at that baud rate but it would also depend on what type of data manipulation you do and other tasks running.

 

p.s. Instead of marking your thank you as the solution, you might want to mark my answer. You can change the marked solution by clicking on 'Options' above the message body.

0 Kudos
Message 4 of 7
(4,177 Views)

I marked your answer as a solution of my question. I will try tomorrow how fast I can go.

 

Regards

Syed Ahmad

0 Kudos
Message 5 of 7
(4,172 Views)

Hi, now I have used the VISA read to get some data from my device, I have detected the intended bytes to read and also the actual bytes being written, which is really different.

I also disabled the detection of terminal of serial port, which all seems useless.

 

Thanks!

0 Kudos
Message 6 of 7
(3,633 Views)

I think I have the same problem with the host, but can not solve it now.

0 Kudos
Message 7 of 7
(3,632 Views)