Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

My connection works in Hyperterminal but not LabVIEW, can anyone help?

Unfortunately the computer that has the labview program isn't very happy right now so I can't just give you the vi but I can walk you through it.  I used the Basic Serial Read and Write example.  The front pannel allows you to choose the baudrate which relys on the smoke meters DIL switches behind the front panel.  there are 8 data bits, no parity, 1 stop bit, no flow control.  I then expanded the while loop and coppied the write to serial loops.  I'm not sure what command you are wanting to do but the way we have our system set up I have the meter reset, switch to manual mode, SASB (to prepare to measure), measure, then write akon and afsn to get those two numbers back.  Each step requires its own write loop and the command needs to be a string where the first part is "\02\s" then the command and a carriage return constant in Hex code.  This into a concatenate string command and the output directly into the command of the write loop.  Like I said you need one loop for each command along with at least a 200 ms wait in between.  The meter takes a moment between the SASB command and the SMES command but must be a wait less than 60 seconds.  There also needs to be a wait between the mesure command and the AKON/AFSN commands to allow the meter to read the data.  For us with no smoke blowing through the meter it can take about 3-5 minutes but can go faster when exhaust is passing through the probe.  The next step is to read the data.  A problem here is that the data read is all the commands and responses.  Example:
SRES
<STX>SRES<ETX>
<STX> SRES 0 K0RY <ETX>
<STX> SREM <ETX>
<STX> SREM 0 K0RY <ETX>
etc.
I take the data and run it through a search and find subvi to identify the data points.  That is still the tricky part because the meter's software gives characters that LabVEIW won't find and delete (little squares).  From here I plug that into a create text vi to make a command that loads into my database but this could easily be written to a .lvm file or even just to a string on the front panel.  Let me know if I lost you anywhere but after getting the example and knowing to use the AK general protocol commands it becomes pretty easy.

Cam
0 Kudos
Message 11 of 12
(1,904 Views)

Hi

 

I am trying to do the same. I have an AVLS Smoke Meter by serial. Could you send me some information or vi about it? I just need to get the value of display.

 

I really appreciated your attention

 

Kelbert

0 Kudos
Message 12 of 12
(1,629 Views)