Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB

I am using a LabVIEW program to read the values from a deive through GPIB.

 

The problem is the program works fine in windows 2000 but when i run the same program in XP the values are inconsistent(reads the value from device and goes to zero then for sometime it reads the correct value from the device and repeats the same).

 

I tried few options:

1.Changed the GPIB cable( with the same GPIB it works fine)

2.Checked with other PC with XP

3.Rebuilt the program( i am using V8.5)

 

Any help is much appreaciated.

 

Thanks

Veera

0 Kudos
Message 1 of 10
(4,749 Views)

Hi,

 

What GPIB card are you using on the two systems?

What version of VISA are you using on the two systems?

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 10
(4,728 Views)

Thanks Mr.Farmer

 

GPIB card in working system is AT-GPIB/TNT(pnp) and in othere system it is PCI-GPIB

VISA on both systems is V4.3

 

Thanks

 

0 Kudos
Message 3 of 10
(4,713 Views)

Dear Veeru,

 

Just a few things.

 

- What version of 488.2 are you using?

- Have you tried any example code? If not then search GPIB in LabVIEW help and the code is: GPIB-VISA.vi

- Would you be able to post your code for us to have a look over here?

 

Regards,

Daniel T
Account Manager
National Instruments UK & Ireland
0 Kudos
Message 4 of 10
(4,704 Views)

Thanks Mr.Thomas

 

Both are same version, V1.70

 

Thanks

0 Kudos
Message 5 of 10
(4,698 Views)

Dear Veeru,

 

I hate to ask the questions twice but can you just confirm the following: 

 

- Have you tried any example code? If not then search GPIB in LabVIEW help and the code is: GPIB-VISA.vi

- Would you be able to post your code for us to have a look over here?

 

Regards,

Daniel T
Account Manager
National Instruments UK & Ireland
0 Kudos
Message 6 of 10
(4,685 Views)

Hi Veeru,

 

I have a couple of other ideas that you could try

 

Firstly, have you tried uninstalling the GPIB driver and reinstalling it? Have you checked you have the latest driver for both of your cards? Have you tried changing the transfer rate? Does the XP machine have a sufficiently high specification to run LabVIEW without straining the system resources, could you possibly provide you PC's specification? 

 

Thanks,

Andrew McLennan
Applications Engineer
National Instruments
0 Kudos
Message 7 of 10
(4,658 Views)

Thanks Andrew

 

I tried uninstalling the GPIB driver and installed again. I didnt tried changing the transfer rate.

 

PC spec: P4, 2.4GHz,1.5G RAM

 

Thanks

 

0 Kudos
Message 8 of 10
(4,621 Views)

Hi Veeru,

 

Can you please provide your code so that we can try and diagnose the problem better?

 

Thanks,

Andrew McLennan
Applications Engineer
National Instruments
0 Kudos
Message 9 of 10
(4,617 Views)

Hi,

 

You should be using version 2.6 for your 488.2 on XP not 1.7

 

Also what versions of LabVIEW are you using as 1.7 may not be compatible.

 

see ( http://zone.ni.com/devzone/cda/tut/p/id/5326 )

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 10 of 10
(4,609 Views)