β09-14-2005 07:42 AM
β09-14-2005 08:59 AM
β09-14-2005 09:59 AM
β09-14-2005 10:06 AM
β09-14-2005 10:13 AM
> There's probably an instrument reason for the extra bytes.
Yup, I am currently thinking that as well, since the second part of the data matches the number of bytes, I just haven't found a reason for the first part π
>It could be some sort of header with sampling info. Without seeing the instrument programming manual, I couldn't tell for sure. As far as telling how many bytes to request, you can safely specify some very high number. The VISA Read will automatically terminate when the instrument sends EOI at the end of the data transfer. If you're getting a transfer terminated error from the instrument, then you're sending another command before the read is done.
You were right ... I just checked that and ... voila ... there was some write access between reading a second time π Don't know why I didn't see that π
> If you're using dataflow with the error clusters connected, you don't usually get this error. It would help if you posted your code to see exactly what you're doing. I don't think the I/O Assistant doesn't really know how many bytes to read until it acutally does the first read in the test panel. I believe it does a read with a high byte count, determines how many bytes are actually sent, parses the data, and then creates the VI. I'll admit that I seldom use the assistant so there may be something else going on. Also, can I ask why you're trying to develop your own driver instead of using the one here?
β09-15-2005 07:21 AM
# - means binary data
4 - means there is 4 bytes per value (in your case a reading). So you should pass in an array of data type 4 bytes ( C/C++ -> float, vb -> single etc, LabView -> no idea)
β09-15-2005 09:26 AM
β09-15-2005 10:01 AM
β09-15-2005 10:58 AM
β09-15-2005 03:17 PM