Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Windows
 ActiveX Controls
 DSP ActiveX
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

TUMB

8 Posts

Posted - 27 Jun 2005 :  13:43:05  Show Profile  Reply with Quote
I am trying to filter X, Y and Z Coordinates using DSP ActiveX in VBA. Is there a sample program that I can refer to? Could some one help me accomplish this.
T

quinncurtis

1531 Posts

Posted - 27 Jun 2005 :  13:59:06  Show Profile  Reply with Quote
The Data Analysis ActiveX control does not have any digial filtering routines for 3D data. The digital filtering routines are limited to calculating the FIR filter coefficients for a 2D (time x amplitude) signal.
Go to Top of Page

TUMB

8 Posts

Posted - 27 Jun 2005 :  14:35:43  Show Profile  Reply with Quote
If I have 2D coordinates, how can I go about filtering the data?
Any help would be appreciated.
Thanks
M
Go to Top of Page

quinncurtis

1531 Posts

Posted - 27 Jun 2005 :  15:03:06  Show Profile  Reply with Quote
VBA ? Is that Visual Basic for Access ? We weren't aware that the product worked with that environment.

Do you have the manual and the example programs ?

The example DSPDemo has an example of how to setup the parameters for the calculation of a simple 60 Hz low pass FIR filter for a target input datastream sampled at 500 Hz. If you do not know to convolve FIR filter coefficents with your input data stream to produce a filtered output you will need to study DSP textbooks.

The example requires a fixed sample interval corresponding to 500 Hz, or 0.002 samples/second.

nFIRLength = 5

ReDim rFIRFilter(nFIRLength) As Double

For i = 0 To nFIRLength
rFIRFilter(i) = 0
Next

rFIRFreq = 500
rFIRHighCutoff = 60
rFIRLowCutoff = 60
nFIRType = FIR_LOWFILTER
nFIRDC = FIR_NODC
nFIRWindow = RECTANG

DSP1.FIRFrequency = rFIRFreq
DSP1.FIRHighCutoff = rFIRHighCutoff
DSP1.FIRLowCutoff = rFIRLowCutoff
DSP1.FIRLength = nFIRLength
DSP1.FIRType = nFIRType
DSP1.FIRDc = nFIRDC
Call DSP1.FIRSolve
Call DSP1.GetFIRCoefVector(rFIRFilter(0))
Go to Top of Page

TUMB

8 Posts

Posted - 28 Jun 2005 :  09:15:44  Show Profile  Reply with Quote
I am working in Visual Basic for Applications environment. Have added DSP activeX on the form with a name DSP1. Now in the program, I am trying to set the frequency, it is giving me "Object required" error. Is there anything that needs to be done before I start using the activeX? Should I create it first, if so how do I go about doing it?

Thanks a lot for all your help.

M
Go to Top of Page

quinncurtis

1531 Posts

Posted - 28 Jun 2005 :  09:49:14  Show Profile  Reply with Quote
You have not really made it clear. Do you have a commercial version of the software with the manual and examples programs, or are you just trying to experiment with the demo version of the control ?
Go to Top of Page

TUMB

8 Posts

Posted - 28 Jun 2005 :  09:58:42  Show Profile  Reply with Quote
I have the commercial version with Manuals.

M
Go to Top of Page

quinncurtis

1531 Posts

Posted - 28 Jun 2005 :  10:10:06  Show Profile  Reply with Quote
Nothing special needs to be done. You should study the example program DspDem and read Chapter 3 of the manual "Programming with the Data Analysis ActiveX
Controls". The code that we listed for the FIR filter was extracted from the DspDemo example.

You should only try and access the control during or after the Form_Load event, otherwise it may not have yet been instantiated on the form.
Go to Top of Page

TUMB

8 Posts

Posted - 28 Jun 2005 :  10:43:34  Show Profile  Reply with Quote
Sorry to be bothering you, Where can I find DspDemo example?? It isn't in the manual.

M
Go to Top of Page

quinncurtis

1531 Posts

Posted - 28 Jun 2005 :  11:27:15  Show Profile  Reply with Quote
The example DspDem is referenced in the manual, under Examples on page 6. The program is found in the QCActX\Analysis\Examples\VB directory.

The example is written for VB 6. That and VB 5 are the only versions of VB that we claim compatibility with.

We have no experience with Visual Basic for Applications. If you cannot get the example to run you will have to assume that it is not compatible.
Go to Top of Page

TUMB

8 Posts

Posted - 28 Jun 2005 :  11:53:09  Show Profile  Reply with Quote
I have a Cd and looks like it doesn't contain the examples, Is it possible to email it to me. Would greatly appreciate that. If it works for VB6, i am assuming it should work for VBA too. I have written several ActiveX in C++ and am using my ActiveX in the current project. Have no trouble doing that. I am assuming it should be OK to use your ActiveX in VBA.

Thanks
M
Go to Top of Page

TUMB

8 Posts

Posted - 28 Jun 2005 :  12:22:56  Show Profile  Reply with Quote
I did locate the examples.

M
Go to Top of Page

quinncurtis

1531 Posts

Posted - 28 Jun 2005 :  12:26:47  Show Profile  Reply with Quote
It is unlikely that the software will work with VBA. Our understanding is that VBA is a scripting language and not a true complier like VB 6. Because of our extensive use of array properties and the memory issues associated with their use, the software does not work with scripting languages. That fact that VBA can use some ActiveX controls does not mean it can use all, or even a majority of them.
Go to Top of Page

TUMB

8 Posts

Posted - 28 Jun 2005 :  13:29:31  Show Profile  Reply with Quote
THe activeX does work in VBA. Had made a very obvious mistake in referencing. Thanks for all the Help.
M
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07