03-27-2007 11:38 PM
03-28-2007 03:28 AM
I don't have my CVI system available at the moment, so I can't confirm this but at a guess I would expect the viGetAttribute() call to return a status word, not the number of bytes. So perhaps instead of :
num_bytes = viGetAttribute (instr, VI_ATTR_ASRL_AVAIL_NUM, &num_bytes);
you need something more along the lines of :
status = viGetAttribute(instr, VI_ATTR_ASRL_AVAIL_NUM, &num_bytes);
This would avoid overwriting num_bytes.
JR
03-28-2007 04:43 PM
04-16-2009 11:58 AM
Hallo map and jr_2005,
VI_ATTR_ASRL_AVAIL_NUM flag can be used in order to determine the amount of data in the input serial asynch. COM buffer, but what about determining number of bytes in output buffer ? Is there any VISA function which query number of bytes in output buffer ?
BR,
Milan.
04-19-2009 02:55 PM
Milan,
With a question like this, the best approach would be to make a new thread for your new question, which I can see that you have done on this duplicate post. Once you have done that, there is no need to post on 9 other threads to ask the same question. Please see the duplicate post for the answer that SFK has given.
Thanks,
Eric K
04-19-2009 04:12 PM
Sorry again Erick,
problem has been fixed.
Best regards,
Milan.