LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

unable to speak with the HP34401A per my soft, despite it is possible with MAX

I can speak with my HM34401A with MAX (Explorateur Measurement & Automation Explorer , but I can't access it with my soft (error BFFF00A5 in hexadecimal, despite it is the same adress in both case)
I'm using the driver found on the Ni website for LabView 6.0
0 Kudos
Message 1 of 21
(3,704 Views)
Do you have a code snippet? Perhaps there is something in it that we can check for errors. Things like an extra space in an address are difficult to see, but they can kill a program.

Les.Hammer@CompleteTest.com
0 Kudos
Message 2 of 21
(3,703 Views)
Thanks for answering.
I don't think that I have a mistake in the code. I've take a lok at it (before and after your answer) andI wrote the address exactly the same way as it is wrote in the quick help. GPIB::XX (where XX is my adress)...
and in the explanation it is says that the kind of interface is good, but maybe not the number (I don't know howmany time I've take a look at this, but it is the good number)
I don't understand...
0 Kudos
Message 3 of 21
(3,703 Views)
"GPIB::XX" is wrong, it suppose to be "GPIB0::XX" or "GPIB1:XX". Check with the manual. If it doesnt sovle the problem, post your vi that cant work. May be somebody can help here.
------------------------------------------------------------------
When you feel sad, laugh
0 Kudos
Message 4 of 21
(3,703 Views)
Actually, you can leave out the zero. "GPIB::10" is the same as "GPIB0::10", and both are an abbreviation for "GPIB0::10::INSTR".

Brian
0 Kudos
Message 5 of 21
(3,703 Views)
Is It....
Sorry, I never try that before!
Thanks, I try it tomorrow.
------------------------------------------------------------------
When you feel sad, laugh
0 Kudos
Message 6 of 21
(3,703 Views)
Try your vi without initializing step,
Some of the driver give you an error if the instrument you are using is not exectly match with your driver.
------------------------------------------------------------------
When you feel sad, laugh
0 Kudos
Message 7 of 21
(3,703 Views)
My VI bug at the first step of the initialization. When the NI VI wants to open a new VISA.
I'v try my VI on an other computer,(with the same driver). and then there was no problems (but it was with LabView 6.1). So I think that there is something missing on my computer, but I don't know what (the driver are good, ther aren't those of the 6.1, I've already look at it a few times.).

Thanks for your answer, but I've tried and it still doesn't work. it's always the same error.
0 Kudos
Message 8 of 21
(3,703 Views)
Try some simple communication to the instrument, such as query the response to "*IDN?". (It should give a response string identifying the instrument.)
This should be a very simple vi - but it does check the communication path. Can you get this to work?
If you can, the address and GPIB card are good. There may be an error in your other program.
If you can't get the simple vi to work, the address or GPIB card may have problems.

One other quick thing to check, check the front panel menu on the 34401. Make sure it's set to HPIB and not RS232.

Les.Hammer@CompleteTest.com
0 Kudos
Message 9 of 21
(3,703 Views)
The error code means "VI_ERROR_INTF_NUM_NCONFIG - The interface type is valid but the specified interface number is not configured." The program doesn't like the number (or lack thereof) of the GPIB interface.

Les
0 Kudos
Message 10 of 21
(3,703 Views)