02-04-2015 06:04 AM - edited 02-04-2015 06:08 AM
I'm quite new to LabView and not too experienced with instrument control so I was wondering if someone could help me solve my problem?
Currently, I'm using 2011 LabView and am trying to read pressures from Pfeiffer's DualGauge pressure sensor (TPG 262) and display the two pressure readings on LabView. However, when I run my program, the pressure readings are not displayed-- all that is displayed are the default 0.00mBar pressure reading even though the DualGauge sensor's screen displays a reading. To connect the sensor, I'm using a RS232 cable and have been successful in finding the device on my Device Manager, so I don't think the connection is the problem (I've also seen the port show up in Device Manager when I connected the sensor via RS232 and USB into my computer). I'm also using Pfeiffer's subVI's in my code, and I suspect that the problem may be in there.
Attached is my code and here are the links to the DualGauge manual and LabView software driver from Pfeiffer
Dual Gauge Manual-- Pg. 23 and 68 are probably the only things related to the RS232 connection.
http://www.idealvac.com/files/brochures/Pfeiffer_TPG262_Operating_Instructions.pdf
Pfeiffer's DualGauge LabView driver-- Software Dual Gauge LabView Driver 2009
Any help is great appreciated!
-Candice
Solved! Go to Solution.
02-04-2015 06:42 AM
Wow. Those are some horrible looking drivers you go there. But in general, we can probably assume that they actually work.
So my first thought is that you should only call the Initialize and the Close once. Move the Initialize to run before the loop and the Close after the loop. The constant opening and closing could be causing all kinds of fun issues with your serial port.
02-05-2015 02:26 AM
Hi crossrulz,
I tried moving the Initialize and Close outisde the loop still nothing. I've also tried using the Example codes to try and display something but it's still 0,000E+0.
I'm stuck and I don't know what else to test now!
02-05-2015 05:08 AM
02-05-2015 05:19 AM
Hi Dennis_Knutson,
Yeah, I just checked and I've gotten the wrong serial cable. Silly me. Thanks for the tip!
05-04-2015 04:20 AM
Hi Candice,
where did you get those sub-VI's?
I'm looking for a LabView code to readout a Pfeiffer TPG 261. According to the manuals it's the same procedure for 261 and 262.
I started from LabView's 'Serial Read and Write' Template. But I only get an error.
I'm a complete novice to LabView. So if anyone could help me out in anyway that would be awesome!
07-12-2016 10:47 AM
Hi,
I'm trying to do the same thing as you, however I can't find the driver for the TPG 262, and when I follow your link I'm redirected to somewhere else.
Do you have the driver's file by any chance?
Thanks,
Diana