hred1
Messages postés108Date d'inscriptionsamedi 9 avril 2005StatutMembreDernière intervention 6 décembre 2007
-
8 mai 2006 à 02:12
mimic37
Messages postés2Date d'inscriptionmercredi 18 mars 2009StatutMembreDernière intervention20 mars 2009
-
20 mars 2009 à 11:47
Bonjour,
Je test l'acquisition d'un signal en utilisant comme support le C#, donc j'arrive à acquirir mon signal
Par la suite je cherche le max de mon signal (amplitude) et l'abssice de ce max
mais je ne voix pas à quel moment je peux acceder aux valeurs du tableau des échantillons, afin d'effectuer ma routine calcul.
en fin je souhaite afficher cette valeur dans un text du form1, donc dois-je utiliser l'héritage ou autre chose...
voilà le code où figure une partie dont on cherche la FFT et pour mon max je doit faire comment
j'éspere que je suis claire et je vous remetci beaucoup....
// Description:
// You can use this DAQmx user
control to perform a continuous N-sample multichannel analog read.
// N is the number of samples per channel configured in the task.
//
// How to use the DAQmx user control on a Windows Form
// 1. Build the project.
// 2. Open the Toolbox and select My User Controls.
// 3. Drop your DAQmx user control on a form.
// 4. Call the Start method to run the task, as shown in the following example:
//
// userControl.Start();
//
// 5. Call the Stop method to end the task, as shown in the following example:
//
// userControl.Stop();
//
// How to use the DAQmx user control programmatically
// 1. Declare an instance of the class in your code without initializing its UI.
// Call its Start
method to run the task, as shown in the following example:
//
// DAQmxControl userControl = new DAQmxControl(false);
// userControl.Start();
//
// 2. Call the Stop method to end the task, as shown in the following example:
//
// userControl.Stop();
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;
using NationalInstruments.Analysis.Dsp;
namespace Data_Acquisition_in_CSharp
{
public class DAQmxControl : System.Windows.Forms.UserControl
{
public class TaskEventArgs : System.EventArgs
{
double[,] data;
public TaskEventArgs(double[,] d)
{
data = d;
}
public double[,] GetData() { return data; }
}
public delegate void EventHandler(object sender, TaskEventArgs args);
mimic37
Messages postés2Date d'inscriptionmercredi 18 mars 2009StatutMembreDernière intervention20 mars 2009 20 mars 2009 à 11:47
Merci d'avois mis tout ton code :p
Je ne saurais pas te dire quel est ton bug, mais moi qui débute avec le driver DAQMx et VB.NET, ton code va bien m'aider je pense