LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I search and remove the odd characters from my serial interface?

I am connecting to a AVL 415 Smoke Meter and can send commands and then read the commands. However, as I read from the machine I see tiny boxes.  The stx is 02 and the etx is 03 in ASCII.  I have done a search and removed subvi to specify just the two numbers I want but no matter what I character I use to specify the boxes, the subvi won't find them.  I upload the data straight to my database and need to at least minimize the characters going in, but preferably be left with just the data.  The command text starts with a reset, enter remote mode, prepare to measure, measure, read the soot concentration, and read the smoke number.  Can some one PLEASE help me delete the boxes!! THANK YOU!!!!  The readout directly from the meter is:
 INSERT INTO `smoke_meter` (run_id, data_id, date_fp, time_fp, soot_concentration, filter_smoke_number)
VALUE (0, 1, '7/24/2006', '4:08:25 PM', ' SRES 0 K0OK SREM
SREM 0 K0OK SASB
SASB 0 K0OK SMES
SMES 0 K0OK AKON
AKON 0 K0RY 1      0     AFSN
AFSN 0 K0RY 1      0     ', ' SRES 0 K0OK SREM
SREM 0 K0OK SASB
SASB 0 K0OK SMES
SMES 0 K0OK AKON
AKON 0 K0RY 1      0     AFSN
AFSN 0 K0RY 1      0     ')

Thanks again!
0 Kudos
Message 1 of 8
(4,106 Views)
Do you have a demo/test program that came with the meter?? You could use portmon to help decode the data as it operates. Do you have a communication manual or something that decodes the measurement commands??
0 Kudos
Message 2 of 8
(4,101 Views)

Hi, Cam.Law

 

I am trying to do the same that you, I am with AVL 415 Smoke Meter and AVL 4210 Instrument Controller.

I have tried the AVL.vi but it doesn't answer me anything.

Do you know which command I have to send by serial and which answer I need to see?

 

Could you help me?

 

Thanks a lot

 

Kelbert

0 Kudos
Message 3 of 8
(3,919 Views)

I can not  see your problem, but anyway this should do the trick. Bur remember it also remove Return and Newline (\r and \n).So it may be to harsh for you. But you are a programmer so you can fix that problemSmiley Wink

Message Edited by t06afre on 12-05-2008 08:20 AM


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 4 of 8
(3,904 Views)

It`s working now.

 

Thank`s a lot

 

kelbert

0 Kudos
Message 5 of 8
(3,797 Views)
I have a bunch of odd characters that I have to work with.  I can give you their names if you can remove them.
-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




Message 6 of 8
(3,787 Views)
I know a Norwegian. Hi is Odd, like in "my name is Odd" I am sure Odd may be of some assistance regarding your odd problem:smileyvery-happy


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 7 of 8
(3,771 Views)

Hi Kelbert,

 

Which connection do we need to use in order to communicate with PC? Do we need to connect the PC directly to the Smoke meter or AVL Controller.

 

Thanks

 

Nick

0 Kudos
Message 8 of 8
(3,635 Views)