LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with NI GPIB to USB cable

I have been working with the attached code for over a month now which runs completely fine on an old PC that has a GPIB port that connects to a K2000 DMM. We would like to take the same code and use it on a different PC where we are using a GPIB to USB converter rather than a direct GPIB cable. We have tried several different PC's and the only discrepancy seems to be the function of the USB to GPIB cable. Is there a setting or function I need to change in order for this to work? Have others had experiences with this (https://www.ni.com/en-us/shop/model/gpib-usb-hs.html) converter? 

0 Kudos
Message 1 of 6
(366 Views)

Can you describe what is not working? Are you getting an error?

Can you see the device in NI MAX? Which version of NI 488.2 and VISA drivers are on your development PC and target PC?

 

Sorry for the barrage of questions, but these will help in getting to the root of the problem.

0 Kudos
Message 2 of 6
(362 Views)

Yes my error code is -1073807304. The only problem with the code is the connection from the VISA resource block to the K2000 initialize block in the block diagram. In NI MAX on both my target PC and my development PC I see the official K2000 driver which I initially downloaded from NI MAX(is there a more specific description I can provide?). The Target PC has VISA 18.0 and last I checked the Development PC had VISA 18.0 as well. Unfortunately I can't check because it is currently running important code, if it has a different VISA driver could that be the problem? Additionally the version of LabVIEW on the target PC is 2020 and I cannot check the development PC for the same reason. 

0 Kudos
Message 3 of 6
(358 Views)

In NI MAX, under "Devices and Interfaces", do you see your GPIB connection and instrument? It should look somewhat like the example shown here:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P9v2SAC&l=en-US

 

The VISA drivers should be fine, do you have NI 488.2 drivers installed as well?

 

0 Kudos
Message 4 of 6
(354 Views)

Did you buy the device directly from NI or did you buy it from a second-hand source (eBay, etc)?   There are a lot of counterfeit devices out there and my understanding is that NI can/has disabled them through software. 

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
0 Kudos
Message 5 of 6
(317 Views)

Hi dy,

 


dy791960@ucf.edu wrote:

Yes my error code is -1073807304.


Did you read the error explanation?

 

It says "VISA: (Hex 0xBFFF0038) Bus error occurred during transfer.": from this description I would guess there's a problem in the cabling. The GPIB interface itself seems to get recognized…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(290 Views)