LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

controlled reading from serial port

Solved!
Go to solution

I don't know If Open Visa session flush buffers.

 

But it is better when you do it by yourself. Try search  "Flush Buffer" and "Set Buffer Size".

And it is better when you flush Input and Output buffers befor you send command to device ... because you don't expect any data on communication link before you send command "get me data" 🙂

 

I could recomand you read whole frame (from BOF to EOF) and parse it.

Message Edited by JCC (SK) on 02-18-2009 12:49 PM
0 Kudos
Message 11 of 16
(857 Views)

Tzench wrote:
Dennis: Does this setting affect what is actually sent out of that VI? Anyway here is the Association Request. It might look a bit weird at first, just concatenating a bunch of constants, but according to the protocol I'm using, this could theoreticaly look different in different situations, and I'm trying to be prepared for that.

Of course it affects what is sent out.

 

It does look a bit 'weird' and pretty complicated. You did not attach the important subVIs and would really need to look at the manual to see if you are creating a correct string.

0 Kudos
Message 12 of 16
(844 Views)

Well, all of the indicators are set to "normal" display. "All of them" meaning the ones in AssociationRequest, write_visa and SerialPortControl_2.

 

 

Download All
0 Kudos
Message 13 of 16
(837 Views)
 
0 Kudos
Message 14 of 16
(836 Views)
0 Kudos
Message 15 of 16
(834 Views)
I've been going through it once again and the trouble seems to be in addLI.vi. It allways returns a value that is one to low. I can't really understand why, it's supposed to return the remaining number of bytes (CRC and EOF excluded), and as far as I can see it does that. Maybe it's a division problem.
0 Kudos
Message 16 of 16
(823 Views)