I know the answer is probably yes, but I can't get it to work at all. I'm trying to communicate to an Agilent E4437B and I need to pass through some GPIB commands that I can't find in the IVI driver. When I use the Ivi_WriteInstrData function I get an error that tells me the given session or object reference is invalid. I have functions before it and after it that work fine, with the same session. For example:
status = Ivi_ValidateSession (instr_handle); // Returns a 0 indicating that it's a valid session
status = IviRFSigGen_ConfigureRF (instr_handle, 1.0e6, -22.2); // Works
status = Ivi_WriteInstrData (instr_handle, "*RST"); // returns error
status = IviRFSigGen_ConfigureRF (instr_handle, 2.0e6, -22.2); // Works
status = agesg_WriteInstrData(instr_handle, "*RST"); // returns error
status = agesg_ConfigureRF (instr_handle, 1e9, -33.3); // Works
IviRFSigGen_reset (instr_handle); // Works
Does anyone have any ideas?
Thanks for your help.