🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.soft-sys.khoros
Article #1059

Re: signal processing

#1059
From: Peter Averkamp
Date: Mon, 11 Jan 1993 14:25
61 lines
3268 bytes
On Jan 11, 12:46, Usuario de Unix (Francisco Ortega Fernandez) wrote:
{ Subject: signal processing
> Hello,
> I've just begun to program in khoros, so perhaps my big problem is obvious
> for many of you.
> I have a electromagnetic long signal and I want to extract some subsignals
> and save them in a different file each.
> I have an ascii file  with the beginning and ending points of every subsignal.
> The number of subsignals to extract is not fixed.
> Can anybody give me ANY idea?
> THANK YOU in advance, 
>                              Francisco 
> ----------------------------------------------------------------------------
> Francisco Ortega Fernandez		e-mail:francisco@zeus.etsimo.uniovi.es
> Departamento de Construccion            Tel: + 34 8 5104336
> Escuela de Minas                        Fax: + 34 8 5104242
> Universidad de Oviedo
> Independencia 13
> 33004 Oviedo
> Spain
> ------------------------------------------------------------------------------
> 
> 
}-- End of excerpt from Usuario de Unix (Francisco Ortega Fernandez)

Here's the general idea:

You will first need to convert your data to viff by asc2viff. Then use
dextract to extract the subsignals you need. The extraction process can
be automated by enclosing the dextract in a loop that uses varviff to
put the starting point and length of each subsignal in variables that
are used by dextract. 
The only minor problem is the fact that the number of subsignals is not
fixed. In your case this means a double problem in that you need this
number for asc2viff and the loop termination criterium. I suggest that
you use the generic command feature from the 'Program Utilities' menu
with something like 'wc -l' to count the lines in your subsignal
information file and put this information in variable like this. 

	  -------      --------     --------     -------     
         |       |    |        |   |        |   |       |  At this point
         |       |    |"wc -l" |   |        |   |       |  you will have
         | input |----|        |---|        |---|       |  the length of
         |       |    |        |   |        |   |       |  your input in
         |       |    |command |   |asc2viff|   |varviff|  a variable
	  -------      --------     --------     -------     

To integrate this with the loop as a complete click-n-run application
you will need to connect the output of varviff with a trigger that
prevents the conversion of the subsignal information file (and all the
other processing) before its size is known.

Hope this helps,

\Peter

-- 
Peter Averkamp,                      | email:
Physics Department E20               | petav@radon.e20.physik.tu-muenchen.de
Techn. Univ. of Munich               | Phone: ++49 (89) 3209-2408 and -2814
D-8046 Garching, Germany             | Fax:   ++49 (89) 3209-2338
Technical Details
Message-ID: <42537@pprg.eece.unm.edu.pprg.unm.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!howland.reston.ans.net!paladin.american.edu!gatech!destroyer!fmsrl7!lynx.unm.edu!pprg.unm.edu!daemon

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!howland.reston.ans.net!paladin.american.edu!gatech!destroyer!fmsrl7!lynx.unm.edu!pprg.unm.edu!daemon
From: Peter.Averkamp@e20.physik.tu-muenchen.de (Peter Averkamp)
Newsgroups: comp.soft-sys.khoros
Subject: Re: signal processing
Message-ID: <42537@pprg.eece.unm.edu.pprg.unm.edu>
Date: 11 Jan 93 14:25:05 GMT
Sender: daemon@pprg.unm.edu
Lines: 61