LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

distribute labwindows/cvi application

we developed a test apllication and build the dstribute kit with labwindows/cvi, and NI-VISA driver is used to comunoication with the test set by GPIB interface in the application. but the GPIB communication still doesn't work even after we did the following works:
1. Setup the application based on labwindows/cvi in the new PC with windows98.
2. install USB-GPIB-A driver and the related self test is passed too. we can get the test set name by "*IDN?" etc.
3. install the visa driver visa201.exe.

would you please give me any more suggestion? you quickly response will be greatly appreicated.
0 Kudos
Message 1 of 6
(4,007 Views)
It sounds daft I know, but did you check the GPIB address used in your APP is correct?

Does you test app return any error codes ? (That may help us find a problem).

Chris
0 Kudos
Message 2 of 6
(4,007 Views)
Thanks for your help. I'm sure the GPIB adress in mp application is correct because the self-test is passed using the tools in "Measurement&Automation".
since it can pass the self-test,that means SICL communication has no problem, then we can assert that the problem caused by the visa driver.
Now the return error code is "GPIB Transmit Error code:NI code BFFF000E the given session or object is ivvalid"
0 Kudos
Message 4 of 6
(4,007 Views)
Measurement and Automation will scan the GPIB bus for any instruments it can find, and you do not have to supply the GPIB address to it.

Whereas in your program, you most probably had to specify a GPIB address when opening the session.

From the error code, it appears that when you opened the session to the instrument it failed. Do you trap the error when opening the session.

Later when you try to use the session handle to talk to the instrument, it was an invalid handle, and therefore not able to talk to the instrument.

Check you open session code, and see if you catch any return value. If you do, and it opens the session properly, let me know, and I can give you more advice.

Regards

Chris
0 Kudos
Message 6 of 6
(4,007 Views)
FJP:

I am not sure about Windows 98, but I do know that we fixed a bug in NI-VISA related to the GPIB-USB-A on Windows 2000. The latest version of NI-VISA is 2.6 and is available for upgrade from www.ni.com and choosing Download Software.

Dan Mondrik
Senior Software Engineer, NI-VISA
National Instruments
0 Kudos
Message 3 of 6
(4,007 Views)
Thanks for your help. I have downloaded the visa 2.6 to my windows200 PC, but it still doesn't work,and the return error code is "GPIB Transmit Error code:NI code BFFF000E the given session or object is invalid"
I'm looking forward your new response!
0 Kudos
Message 5 of 6
(4,007 Views)