I am using visa to open 20 gpib instruments. I have a point in the code where i need to open the 20 instrument sessions upon a user callback. My question is since this is not necessarily at the beginning of the life of the program should I have to viClose the same handle before I open it? The reason I need to do this is at any time the 20 instruments can be turned on or off, and there is basically a button on the screen letting the user check and open for all 20 instruments.
User_callback(
viClose(gpib_instrument_handle_1); //If handle not present this closes nothing, but i dont see that as a problem
// Do I need above line?/Does it present any problems if it is there?
viOpen (defaultRM, "GPIB0", VI_NULL, VI_NULL, &gpib_instrument_handle_1);
)
The question really is is there any memory issues with re-opening the same instrument handle again over and over again?
Thanks