07-24-2007 06:20 PM
I'm running into some trouble using the 662xA IVI driver function calls. I'm trying to get status of the power supplies using the functions:
hp662x_measureVoltage(), hp662x_measureCurrent(), hp662x_getVoltage(), hp662x_getCurrent(),
but for some reason, it doesn't set the value for the output parameter that I pass into it, and returns with an error status of:
–1073807247 VI_ERROR_USER_BUF "A specified user buffer is not valid or cannot be accessed for the required size."
The output parameter I pass into the functions are of type ViReal64, and although the examples in the help file passes the output parameters by reference (with & before parameter name), in my code it only compiles if I pass it by value (without & before parameter name). Also, I don't have anything connected to the outputs of the power supplies, but I didn't think that is the reason for this error.
I tried to look in the NI knowledgebase for some help, but couldn't find anything pertaining to this error. If anyone has any suggestions for me, I'd greatly appreciate it. Thank you.
07-25-2007 07:21 PM
Hi chris2007,
Have you tried using the Plug and Play LabVIEW driver for that instrument? It can be found here. I am not sure why the instrument in not responding, but if the Plug and Play driver doesn't work, then it may be a hardware configuration issue. If it does work, it may be an IVI or driver related issue. Remember, if you want to try the Plug and Play version, you will have to uninstall the IVI driver first.
Please try this and post back the results.
07-26-2007 11:26 AM
07-27-2007 12:58 PM
07-30-2007 09:23 AM
Hi Chris,
Sorry, I wasn't sure which model you were using. The driver linked here should work with the 6623 and 6624.