I'm not exactly sure of what you're seeing...You realize that temp1 and temp2 are only going to be the IBSTA values from the read, correct? The return from ibrd() isn't actual string data. So you will get some decimal number that indicates the success or failure of your read. Of course, temp1 shouldn't be affected as a variable during your 2nd ibrd unless you're passing a pointer to it in to the ibrd function. The ibrd function does take a char* parameter...
If you could flesh out your code a bit more and describe your problem with more detail (what values are you seeing for temp1 & temp2 and why do you think they're wrong?) I'm sure we could pinpoint your issue.
Scott B.
GPIB Software
Message Edited by ScottieB on 04-18-2006 10:38 AM