Reputation: 29519
I am trying to query my device using Visa
using NationalInstruments.Visa;
Session.RawIO.Write("C1:INSP? 'WAVEDESC'");
string result = Session.RawIO.ReadString().Trim();
It appears by default reading buffer size is 1024 bytes, so if the response is more than that, I need to read more. I don't know how much more I should read and if I read more than in the device buffer, I will have timeout exception. How can I read all data in chunks and without exception?
Upvotes: 0
Views: 87