Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with read count

I am trying to receive 2500bytes via serial port and plot it on a chart, after sending character "S" to the sender device.

I have set the "read count" to 2500 so it is supposed to receive 2500 byte then wait for another "S" but it just receives 101 bytes and then goes to next program iteration. how can i solve this problem?

The VI have been attached.

0 Kudos
Message 1 of 5
(6,051 Views)
First, you've posted to the wrong board. Your question has nothing to do with NI digital I/O devices.

You seem to not understand how a VISA Read works. A read will terminate when the byte count is reached, or the timeout is reached, or the termination character is detected. Disable the termination character or set up multiple reads in order to get multi-line strings. For example, keep reading until the available bytes is zero. With a loop, shift register, and a concatenate string, this is easy to do.
0 Kudos
Message 2 of 5
(6,046 Views)

Thx for your reply. I apologize for mistake in choosing wrong board.

I am very new in LabView. How can I disable the termination character?

 

0 Kudos
Message 3 of 5
(6,009 Views)
You set the Enable Termination Character input to false. This is a setting of the VISA Configure Serial Port function. It's very clear assumimg you have Context Help turned on.
0 Kudos
Message 4 of 5
(5,985 Views)

Thx 

The problem solved. 

 

Vahab

0 Kudos
Message 5 of 5
(5,968 Views)