I looked at the IBCLR manual that you gave me the link. Looks like it will work, but it doesn't say what file to #include (I am writing C code to communicate with GPIB). Here are the questions I have.
1. for the IBCLR, Do you know what file to include?
2. I look at the NI488.2 help file thru MAX. There is a function CNI4882Device::Clear(). Does it send the IBCLR as well?
3. Is it OK if I clear the GPIB buffer before I start sending commands to GPIB device? If it's OK, should I clear the buffer before initializing the GPIB device (with ibdev command) or when should I clear it?
My problem is that, there can be unexpected communication abort, so I was wondering if it's OK to clear the GPIB before sending commands to it.
Thank you