LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Read function


@Yamaeda wrote:

Either you do:

1. Read(7) - bad configuration

2. Bytes at port connected to Read without any wait - this shouldn't be used in this case

3.  Have a Terminate character that's included in the answer - bad configuration.



@Brainiac91 wrote:

Hi 

 


So far i've seen proof of #1, you've wired "Bytes written" to "number to read", making it Read 7 bytes, or Read(7) as it'd be written in some text language and as Gerd pointed out. You'll need to set read long enough to get all of the answer.

#2 would yield the same problem, but it seems that's not what's happening right now.

#3 this could still be the case as we continue debugging, but if e.g. 'a' is set as termination character and you get the answer "weather" it'd stop at 'a' and give you "we" as answer.

I forgot #4, you're not sending the command correctly. 🙂

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 11 of 11
(471 Views)