06-25-2013 04:44 PM
I HAVE A GPIB-USB-HS I USE IT IN A COMPUTER AND WORKS OK I DEVELOP A PROGRAM IN VC++ 6.0 BUT WHEN I INSTALL THIS PROGRAM IN A NEW COMPUTER IT DON'T WORKS BUT IF I USE THE MAX I CAN TALK WITH MY DEVICE JUST WITH MY PROGAM I CAN'T
06-26-2013 07:55 AM
Hi Gene74
Are you getting any error code? Which was the resource name in the old computer and which is the device name in the new computer?
Regards
Esteban R.
06-26-2013 12:52 PM
Hi Esteban thank you for your response,
I didn't error code, my program is running normally in a new computer but I can communicate with my device just through of use the MAX 5.3.0 and I use the NI-488.2 Ver. 2.7.3. my device is a HP4278A I don't know how is different between my old and new computer
06-27-2013 02:33 PM
Hi DicHutchings
It seems that the driver that you are using is the Keithley driver on not the NI driver. I think that the clear function will close the reference, but I am not sure as I have not use that driver before. That solution should work, but keep in mind that if you are constantly creating and closing the reference you are unnecessary repeating code and eventually might generate an error. From my point of view it will be better to initialize the port, run the sweep on the subroutine and at the end of the execution close the reference.
It will be better to create a new thread, but if those drivers are from keithley it might be better to post the question in a Keithley forum
Regards
Esteban R.