Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I check the instru manu ID

I had a Tek 4330 card (of 1995) repaired and either the Manufacture ID info has changed (and/or the firmware) and now I get error 1223. It is in a Tek VXI rack with an NI GPIB-VXI/C in the first slot. I'd like to turn off the ID query, but the switch setting does not show up on the VX4330Intialize.vi. Even if the ID query is turned off I still want to find out what the manufactures ID and Model code are set somewhere in the Labview software. Can anyone tell me where to look? Does anyone know why the ID query is not shown for the initialization files (Labview 4.0.1). Thanks in advance for any help.
0 Kudos
Message 1 of 8
(4,055 Views)
Can you post the instrument driver that you're using? I can't find a driver for the 4330 on NI's site so I can't tell what's going on in the initialize function. You could also try modifying it yourself by putting a case structure around the IDN? call. Have you tried using a probe to see what information is actually returned and what the difference is?
0 Kudos
Message 2 of 8
(4,055 Views)
Thanks Dennis. I really am not familiar with Labview. Attached is the file that I think is the driver for the VX4330. I can't find any file where I see what the IDN called for. How do I hook up a "probe" to see what information is actually being returned from the instrument? Thanks, Roger
0 Kudos
Message 3 of 8
(4,055 Views)
First open the VI called VX4330 Initialize. Set the logical address and platform to match what your're using. Then you can open the diagram to view the code (Window>Show Block diagram or Ctl-E). You will see an outer case statement - make sure it's set to False. There is an inner case statement. Set this to 1. You will see the text "Query ID and device type register". There are two VXI Read Register functions. One for 0 and one for register 2. Each of the functions has a blue wire coming out of it. Move the mouse over each wire, right click, and select Probe. This will create a new window for each probe that will display the actual values returned. If both values do not match the expected results, you will get error 1223. To change the ex
pected value, just enter the actual values in the numeric constants. These are the little blue boxes with some hex values in them.
0 Kudos
Message 4 of 8
(4,055 Views)
Thanks for your detailed message on how to probe. I did so and the values in the 2 probe boxes were "grayed out" 0s.
The other instruments in the VXI rack also had zeros when probed (VX4234 DMM card, VX4350 relay card). Am I not communicating to the rack at all??
Another strange thing is all the other instruments in the rack have a logical address of 0 except the 4330 which is 48. I wonder if VISA is being used?
What would you recommend as a next step?
Thanks again, Roger
0 Kudos
Message 5 of 8
(4,055 Views)
Well I did get rid of the error 1223. I found that the first register was reading 49149 and the driver's value was 49148 (BFFC). So I changed the driver's value to BFFD and it now has no errors when I run the VX4330 Initialize.vi! HOWEVER I now get an error 1232 at Tek VX4330 Initialize when I run the full labview test program. What does error 1232 mean and how can I find it if the VX4330 Initialize.vi run fine by itself? BTY, the other Tek cards in the VXI cage are running fine. Thanks again for any help someone can provide on this old Labview 4.0.1 running on win 3.1.
0 Kudos
Message 6 of 8
(4,055 Views)
Let's be certain that the error is occuring in VX4330 Initialize.vi. It sounds like it ran independently and then failed when used as a subVI in a larger application. Try running the application and probe your error between subVIs to be sure that error originates in the initialize VI. Repost and let me know what you find!

Thanks,

Regards,

JLS
Applications Engineer
National Instruments
Best,
JLS
Sixclear
0 Kudos
Message 7 of 8
(4,055 Views)
JLS, thanks for your help. When I first load labview and run a vi called Initialize Structure.vi I get error 1232 "at Tek VX4330 Initialize". But if I go and run VX4330 Initialize.vi by itself it has no errors. I ran VX4330 Operation.vi and I got error 1232. If I quit Labview, reload and then run VX4330 Initialize.vi by itself it gives error 1231.
It seems like after I acknowledge the error the main vi will run OK with no more errors (I think) for VX4330. However I did get a 1221 error "at close of VXI Instrument". The main.vi got hung up when running a VX4234 instrument. Any suggestions would be appreciated. Thanks, Roger
0 Kudos
Message 8 of 8
(4,055 Views)