Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Lake Shore model 475 dsp Gausemeter example has error

Solved!
Go to solution

Hello Guys, 

 

Now I have Lake Shore model 475 dsp Gausemeter and it has LabVIEW Driver. I use serial port to communicate with it, Then I build a VI using the getting started example SubVI it provided:

error2.JPG

Then I double click on the example subVI and click on initialize VI and find it has the error on the VISA read, anyone knows how to solve this?

error.JPG

0 Kudos
Message 1 of 7
(3,307 Views)

Have you been successful at communicating with the Gaussmeter through NI-MAX?

 

The error occusrs the first time you try to retrieve any info from the meter. It fails to reply which likely means its not physically connected properly or not addressed properly in software.  

  • Make sure you've supplied the right COM port in the VISA resource.  
  • Make sure you are using the right RS232 cable type.  USB to RS232 can be problematic!

Its not clear since you didn't attach the VIs, but if that second picture is the subVI from the first picture then you have a problem.  You should not be re-initializing the communications within the loop everytime.  You should move the INIT and configure measurement code to before the loop, just do measurements inside the loop, then have clean-up code after the loop.  

0 Kudos
Message 2 of 7
(3,305 Views)

I use the visa test panel to play with it, and I got the result:

error3.JPG

Does that means the device fails to read?

0 Kudos
Message 3 of 7
(3,291 Views)

The error shows timeout before operation completed. 

0 Kudos
Message 4 of 7
(3,290 Views)

Yes, the device failed to receive the query message and reply...same error as your code. 

 

You're sure you are addressing the right port?

What type or cable are you using?

Can you try another cable?

 

Craig 

0 Kudos
Message 5 of 7
(3,277 Views)

Yes, I am addressing the right port. 

The cable I used is a RS 232 cable and I used a male changer, because the instrument end is a male. 

I tried different cable and different male changer, but still read error. 

0 Kudos
Message 6 of 7
(3,261 Views)
Solution
Accepted by zyb1003

RS232 cables and gender changers can be straight thru or cross over, test for pin-pin continuity to be sure what you have.  Read the manual for what you need.  I suspect this is the problem.

0 Kudos
Message 7 of 7
(3,258 Views)