LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

hp 8341 initialize

Hello all,

I am attempting to communicate with a hp 8341b.
NI-MAX is able to scan and identify the instrument. I am able to communicate to the 8341 via NI-MAX.

However I am unable to communicate with the instrument through the labview driver hp8341.zip when i carry out the following

1) Connect hp8341 to GPIB
2) Open NI-MAX
3) Scan for instruments. Successful
4) Open Labview 6.0
5) Open hp 8341 initialize.vi
6) Run the initialize vi. Unsuccessful

The initialize vi works if i write to the instrument (through NI-MAX) prior to opening LabVIEW.

Has any else had a similar problem with the provided hp 8341 drivers?
Any ideas why the driver would only work after initialising communication through NI-MAX?

Thank you greatly in advance.

Ytass
0 Kudos
Message 1 of 5
(3,343 Views)
Ytass,

I looked at the Initialize VI and the first thing I noticed is that is uses Old VISA Open. You may want to try deleting this and replacing it with the VISA Open from the functions palette. You will also have to replace the Resource string with a VISA resource constant.

Shawn B.
National Instruments
Use NI products on Linux? Come join the NI Linux Users Community
Message 2 of 5
(3,327 Views)
Thank you Shawn for your reply.

I replaced the OLD Visa Open with the "New" VISA Open and wired a VISA Resource Name to it.
However, the device does not respond to the "New" VISA Open VI either.

The VISA Open VI returns an error

-1073807346

Is there anything else I can try?

Cheers
0 Kudos
Message 3 of 5
(3,320 Views)
Just to add to my previous post, when I change the hp 8341 initialise file by altering the Old VISA Open to "New" VISA Open, the initialise vi does not work, EVEN after initialising the instrument through NI-MAX. Note that initialising through NI-MAX works when using the Old VISA Open
0 Kudos
Message 4 of 5
(3,317 Views)
I get error -1073807346 "VISA: (Hex 0xBFFF000E) The given session or object reference is invalid." returned from VISA open if I leave the VISA Resource Constant empty. You will need to have your instrument's resource name in this field. For example GPIB0::2::INSTR if your device has Primary address 2 and is connected to your first GPIB board (GPIB0).

Shawn B.
National Instruments
Use NI products on Linux? Come join the NI Linux Users Community
0 Kudos
Message 5 of 5
(3,307 Views)