Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Test and Measurement World FIR Program

Status
Not open for further replies.

banjo

Advanced Member level 2
Joined
Dec 24, 2005
Messages
648
Helped
127
Reputation
254
Reaction score
8
Trophy points
1,298
Activity points
8,064
I found some FIR software at:

**broken link removed**

This appears to be free software. However, it is expecting an input file in an Agilent ASCII Tab delimited format. I have data what I captured with an ADC. I know the sampling interval. But I do not have the correct format for this Agilent file.

Does anyone have an example of such an ASCII file?

Does anyone have any documentation of this file type?

Has anyone used this software before? Is it all useful for testing various scenarios?


Thanks.
 

Thanks for spotting this program, it looks interesting.
Pretty incredible that they use VB for this, when a simple text program in C or C++ would have been more useful for non-Windows users too.
It could have outputted in a bmp or png format as well as the processed text file.
Anyway, it looks like this function below (I'm not super familiar with VB), and looks like the delimiter is not tab, but CRLF
(carriage return, linefeed). I tested by just creating a simple text file containing a floating point number on each row.
This was my example input:
Code:
1.6
1.9
1.5
1.4
1.2
1.0
1.5
1.3
1.6
1.8
1.6
1.2
1.6
1.0

This was the program screenshot before and after (lowpass):
fir.jpg

This is the snippet in their source code:

Code:
Public Sub LoadFileTXT(fp As String, data As Variant, description As String, _
                        cancel As Boolean)

 ......
    
    strTemp = Input(LOF(hFile), hFile)
    
    strArray = Split(strTemp, vbCrLf)

    Close #hFile
    
    ' make the double data array.
    ' if the first element is not numeric, start at the second element
    If IsNumeric(strArray(0)) Then
        ReDim data(UBound(strArray) - 1)
        For i = 0 To UBound(strArray) - 1
            data(i) = CDbl(strArray(i))
        Next i
        
    Else
        ReDim data(UBound(strArray) - 2)
        For i = 1 To UBound(strArray) - 1
            data(i - 1) = CDbl(strArray(i))
        Next i
    End If
   .....
 
  • Like
Reactions: banjo

    banjo

    Points: 2
    Helpful Answer Positive Rating
Thanks for the tip. I converted my experimental data into a single column format as you suggested and the software loaded it fine. I am not too sure how useful this software is. I believe it expects that the data you load contains one cycle of the input waveform. It allows some choices in filter types, but does not detail the filter equations at all.

What I had hoped this software could do was take my experimental data and allow me to figure out a usable filter to extract the desired signal from the garbage. It does not really do that. However, I need to play with it some more. It may have some usefulness. Since the link also has the Visual Basic source code, perhaps this could be used to expand the functionality.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top