06-25-2018 04:00 PM
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:
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?
Solved! Go to Solution.
06-25-2018 04:08 PM - edited 06-25-2018 04:14 PM
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.
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.
06-25-2018 06:38 PM
I use the visa test panel to play with it, and I got the result:
Does that means the device fails to read?
06-25-2018 06:39 PM
The error shows timeout before operation completed.
06-25-2018 10:01 PM
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
06-26-2018 12:00 PM
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.
06-26-2018 01:51 PM
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.