PCIe-6321

hello everyone,
I'm noby on LabWindows, I'm working on the NI PCIe-6321, pending delivery of NI PCI 6115 for my project (data acquisition pressure sensors)
 my question is how can we save the data acquired in a txt file when memory card is full and clear it after, is there a function ?
 for the momemt, I work with an example of daqmx LabWindows for a voltage measurement: ContAcq-ExtClk-DigStart
 thank you

 hello,
Thanks for all the explanations, using the function outside the loop, she generates a file of 1000 lines, but by using it in the loop with  numchannels =2 (for example) she generates two columns 500 lines, now I see clearly the difference.
for my project data acquisition with pressure sensors in your opinion it is more convenient to use a push button or a timer I opted for the 2 solution and I intend to set the timer to record such data at each interval of time, once I have all the data recorded in my file I'll do my traitememt. if you have other solutions?
thx
Annuler les modifications

Similar Messages

  • PCIe-6321 & ConfigureChangeDetection C# - Need to "debounce" the detection - event triggered multiple times

    I am working on a C# NIDAQmx application for a hardware configuration that uses a PCIe-6321 to interface with downstream hardware.  There is a DI signal from a manual switch on the downstream hardware that I must monitor for the start/stop signal for my application's data acquisition operations.
    I was having inconsistent results using the ConfigureChangeDetection NIDAQmx functionality.  So I used the ReadDigChan_ChangeDetection sample and using Debug.WriteLine statements have verified that when the switch on the hardware is toggled, multiple ChangeDetected events are thrown before the signal settles into the actual High or Low state.
    Since I am not a hardware guru, I consulted another engineer, and was told that this is common with switches, and the signal and/or change detection needs to be "debounced". 
    Can this be done purely through additional configuration of the NIDAQmx DI task?  I saw properties for digital filtering, but don't understand their use.  I looked at the ReadDigChan_ChangeDetection_DigFilter sample, but it seems to imply that some other DI needs to be connected on the card to be used as the filter, which I don't have.  Only one DI is coming from the downstream hardware.
    Any help and/or advice will be greatly appreciated.

    I believe I have found the solution.  By searching the forums I came across a couple of posts that pointed to this article
    http://digital.ni.com/public.nsf/allkb/220083B08217CFD686257131007E5D2C?OpenDocument
    So i started playing with the corresponding properties in the C# task, and it looks like I may have to only set the following properties:
                    myTask.DIChannels[0].DigitalFilterEnable = true;
                    myTask.DIChannels[0].DigitalFilterMinimumPulseWidth = 10.240000e-6;
    According to error messages, the DigitalFilterMinimumPulseWidth for the PCIe-6321 can only be set to specific values.
    Using this in the ReadDidChan_ChangeDetection_Events sample appears to be successfully debouncing the ChangeDetection events to only 1 per physical switch toggle.
    If this is not the approach I should be using, please advise otherwise.

  • Envoyer un signal trigger sur une caméra déclenché lui-même par un premier signal (via carte PCIe-6321)

    Bonjour à tous,
    Voici mon problème :
    Concrètement je reçois un signal externe TTL à 10Hz , je dois capter une image d'un phénomène qui intervient quelques centaines de µs après le signal 10Hz (mais je ne sais pas exactement quand). J'ai un trigger disponible en entrée de la caméra très précis.
    Je dois pouvoir ajuster ce délai pour caler correctement la prise de l'image sur le phénomène à observer. Après plusieurs essais mon idée était de passer par l'intermédiaire de la carte DAQ PCIe-6321 que j'ai à disposition sur mon système.
    En fait je voudrais pouvoir synchroniser une sortie TTL de la carte sur le signal 10 Hz et ensuite pouvoir ajuster la fréquence de mon signal DO qui est envoyé sur la caméra.
    Je ne pense pas que ce soit compliqué à faire avec le DAQ c'est un peu fait pour ça aussi mais je me perd un peu dans les différentes fonctions, et je voudrais éviter de faire tout ça par soft avec tempo etc...
    Merci d'avance pour vos réponse.

    Doublon
    Paolo_P
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Travaux Pratiques d'initiation à LabVIEW et à la mesure
    Du 2 au 23 octobre, partout en France

  • Erreur -10401 sur carte PCIe 6321

    Bonjour,
    j'ai l'erreur -10401 qui me revient lorsque je souhaite configurer un port en entrée de la carte PCIe 6321 ( 3 ports de 8 bits chacun ).
    J'utilise le sous-vi "DIO-configurer un port".
    J'ai vérifié tous les paramètres.
    J'ai également testé le sous-vi"Lire une ligne numerique" et j'obtient la même erreur.
    Le PC que lequel je fait mes tests est sous windows XP avec labview 2010 SP1 et NI DAQ mx 9.3.5 ( fourni avec la carte PCIe 6321).
    Cordialement,

    Bonjour ErwannLM,
    Merci d'avoir posté sur le forum NI.
    L'erreur et le VI que vous citez me fait penser que vous utiliser des fonctions de l'API du driver NI DAQ Trad. Or ce driver n'est pas compatible avec les cartes de la Serie X (63XX). Le driver à utiliser est effectivement le driver NI-DAQmx. Vous pourrez trouver des exemples d'utilisation de ce driver dans la recherche d'exemple de LabVIEW (Aide»Recherche d'exemples...).
    Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications
    N'hésitez pas à poster votre code pour infirmer/confirmer mes propos.
    Bonne journée,
    Flo
    Open Diagram First

  • Solution pour systeme d'acquisit​ion avec PCI 6321, NI 9375 et chassis cDAQ-9171

    Bonjour à tous,
    Je travaille actuellement sur un nouveau projet de système automatisé nécessitant la récupération d’information. J'ai un certain besoin a combler pour mon application et n'etant pas un expert dans le materiel NI, je prefere prendre vos avis et suggestions afin que ma solution soit la meilleure possible.  
    Il me faut donc en termes d'I/O :
    6  entrées pour 6 détecteurs inductif NO fonctionnant à 24V (trois fils pour chaque détecteur).
    3 entrées pour 3 détecteurs fins de courses NO fonctionnant à 24V.
    1 a 2 sorties PWM 0-5V.
    2 sorties logiques TTL (0-5V).
    2 sorties logiques 0-24V.
    2 sorties analogiques 0-10V avec 8 bits de résolution minimum.  
    Quelques I/O analogiques et digitales supplémentaires…
    Idéalement, j'aimerais alimenter mes 9 détecteurs (6 inductifs + 3 fins de courses) sous 24V directement depuis mes périphériques NI pour ne pas avoir à utiliser une autre source d’alimentation.
    Ma solution serait d'utiliser une carte PCIe 6321 pour les sorties PWM, TTL et analogiques 0-10V ainsi que pour les I/O analogiques et digitales supplémentaires. J’utilise Windows 7 avec LabVIEW 2012 pour faire l’acquisition des données.
    Pour les entrées et sorties 24V, je pencherais pour un module d'entrée/sortie numérique 24V tel que le NI 9375. J’ai choisi celui-ci car il comprend 32 I/O avec 16 entrées et 16 sorties. Je prendrais également le châssis cDAQ-9171 afin de pouvoir connecter mon module en USB avec mon ordinateur.
    Selon vous, est-ce que ma solution est viable et répond à mes attentes? Niveau qualité/prix je n'ai pas trouvé mieux! Mais je ne prétends pas être un expert et peut être que certains d'entre vous ont de meilleurs idées 
    Je vous remercie par avance.
    Maxime

    Bonjour,
    Auriez-vous un contact francophone pour le Canada et Montréal plus exactement?
    Merci.
    Maxime

  • How to reduce the noise in PCIe-6321 acquisition, to optimize wiring.

    Hi all,
    I want to optimize my wiring in term of noise reduction. I use a DAQ PCIe-6321 in my application. I want to acquire an analog signal from a sensor (+/- 4 Volts, resolution of 2 mV, output impedance of 100 ohms) using the DAQ. The frequency of the signal is below 2 kHz. My first question is about the most suitable cable to use (shielded, twisted, etc.)? What is also the best suitable input configuration to choose in Labview (differential, RSE or NRSE)?
    Moreover, after processing of this data under Labview, I want to power an audio power amplifier (input impedance equal to 10 kohms) using the analog output of the DAQ. What is the most suitable cable to use to reduce the noise? Are there any other tips to optimize the wiring?
    Thank you for your help and suggestions!
    Cedric

    Hi guys,
    I know that it is a bit late to reply but that is the perfect topic for what I am looking for!
    I am currently working with acquisition systems using either PCI-6221 or PCIe-6321. Those systems are exactly the same but the results are different (see picture enclosed). We can see spikes and noise with the PCIe-6321 while we have the same conditions of measurements. 
    Here is the NI setup:
    - PCI-6221 + connector block CB-68LP + cable SHC68-68-EPM
    - PCIe-6321 + connector block SCB-68A + cable SHC68-68-EPM
    In one of the system equipped with PCIe-6321, I replaced all the devices like cables, detectors, motors and it doesn’t change anything. I also swapped the computer for one equipped with PCI-6221 and it works fine. It means that the problem really comes from the acquisition card.
    So my question is: why is there such a difference between those models? Do I need to change the configuration in the card?
    Thanks in advance.
    Maxime  
    Attachments:
    Difference PCIe6321 and PCI6321.jpg ‏136 KB

  • -10401 sur carte PCIe 6321

    Bonjour,
    j'ai l'erreur -10401 qui me revient lorsque je souhaite configurer un port en entrée de la carte PCIe 6321 ( 3 ports de 8 bits chacun ).
    J'utilise le sous-vi "DIO-configurer un port".
    J'ai vérifié tous les paramètres.
    J'ai également testé le sous-vi"Lire une ligne numerique" et j'obtient la même erreur.
    Le PC que lequel je fait mes tests est sous windows XP avec labview 2010 SP1 et NI DAQ mx 9.3.5 ( fourni avec la carte PCIe 6321).
    Cordialement,

    Bonjour ErwannLM,
    Merci d'avoir posté sur le forum NI.
    L'erreur et le VI que vous citez me fait penser que vous utiliser des fonctions de l'API du driver NI DAQ Trad. Or ce driver n'est pas compatible avec les cartes de la Serie X (63XX). Le driver à utiliser est effectivement le driver NI-DAQmx. Vous pourrez trouver des exemples d'utilisation de ce driver dans la recherche d'exemple de LabVIEW (Aide»Recherche d'exemples...).
    Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications
    N'hésitez pas à poster votre code pour infirmer/confirmer mes propos.
    Bonne journée,
    Flo
    Open Diagram First

  • PCIe-6321 frequency measurements

    I am trying to use a PCIe-6321 to perform a simple frequency measurement (800-2500hz).  Are there daqmx functions for frequency measurments?  I tried some of the CVI examples but they throw error messages.  Is there an example were I can measure frequency on one of the analog inputs?

    Your card have both analog inputs and counter inputs; they behave differently and for each of them there is a set of examples that explain the basic measurement types together with cabling.
    Search with the example finder (Help >> Find examples... menu item) with "counter/timer" keyword and you'll find the examples you are looking for. Also looking for "frequency" drives you to the same examples.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • I couldn't install PCIe 6321 with Simulink 2010a

    Hello,
    I have NI DAQ card (PCIe 6321). I tested it using the NI software but I couldn’t find the DAQ number in SIMULINK MATLAB 2010a to install it.  Please how can I solve this problem?
    Best Regards,
    Maher

    Hello Jim St,
    I'm using MATLAB SIMULINK to implement voltage control. I measure the voltage (Analog input) then implement my controller using Simulink MATLAB (Digital PI controller) and finally send the control signal (Analog output) to the process. I use the real time windows target toolbox in the SIMULINK to build analog input and the analog output. Unfortunately, I could find my DAC number in the list of National Instruments which is defined by the SIUMLINK MATLAB so I could not interface the MATLAB with the NI card. My card number is PCIe 6321 and I’m using MATLAB 2010a.
    Best Regards,
    Maher

  • Error -10401 with pcie 6321

    Hello,
    I have the -10401 error when I want to configure a port in 6321 PCIe card (3 ports of 8 bits each).
    I use the sub-vi "DIO-configure a port."
    I checked all the settings.
    I also tested the sub-vi "Read a digital line" and i have the same error.
    The PC which used for my tests is on Windows XP and using LabVIEW 2010 SP1 and NI DAQ  MX 9.3.5 (supplied with the PCIe 6321).
    Sincerely,
    Solved!
    Go to Solution.

    Thank-you for the quick response but it's not possible to use the traditional DAQ driver instead?
    I have to resume some vi's from an old project without modify them.

  • Position Measurement with PCIe-6321

    Hi,
    I have PCIe-6321 card and I want to use it for linear position measurement. I have an interpolation device that provides A and B channels that I`m going to put in the counter inputs of the card. Are there any examples of using the position information with LabView (Graphing the position, using it for control purposes etc.) There are some examples in the example library of LabView but in most of the, PCI6321 isn´t on the compatible cards list although most PCI62xx cards are. Can I still use these examples? Thank you in advance.

    Hi
    You can try it with this examples, but there is another easy way. Please do not forget that you need at least the DAQmx 9.0 driver.
    1. Open the MAX and create a task  for your linear position measurement with the PCIe-6321
    2. There you can see all the connections you need and you can set all parameters fot the acquisition
    3. Save the Task
    4. Close MAX and open LabVIEW
    5. In the block diagram go to  Measurement I/O >> NI-DAQmx >> insert Task Const (DAQmx Task Name)
    6. Right click on the task constant and choose  >> Generate Code >> Configuration and Example
    7. Run your VI and have fun
    Kind regards
    Beat
    NI Germany

  • PCIe-6321 counter failing at high frequency

    I'm trying to use the counter on the 6321 as a frequency divider that takes an 80 MHz sin wave input and generates a 10 MHz square wave output by digitizing the output of a 50 ohm device on PFI0.  The specifications to for my board list a counter "Max Source Frequency" of 100 MHz, leading me to believe that 80 MHz should be possible.  However, in my experimenting while the counter based divider works very well at lower frequencies, it fails at about 35 MHz by missing edges.  The result is an  unstable output frequency that bounces between 8:1 division, 9:1, 10:1... depending on how many  edges are missed.
    To explore this problem further, I swapped out my 2 meter 68-pin VHDCI for a 1 meter and plugged my function generator into the break out board with a < 30 cm cable, thinking that perhaps impedance mismatch was an issue.  However, even with < 1.5 m,  the device still works at 30 MHz and fails at 35 MHz.  This suggests to me that impedance mismatch is not the problem, as the maximum frequency was unchanged even though the cable length was nearly halved.   
    Is there something else I'm missing?  Is there a faster interface than PFI?  Or someway to 50 ohm terminate the device? 

    I see what you mean, but I guarantee you can't pass a 100 MHz signal through the X Series PFI lines.  ~25 MHz is what the bandwidth of the protection circuit is specified for (it's mentioned in this KB for instance).  I'm not sure offhand about the RTSI lines though (it might be worth an experiment as the bandwidth doesn't seem to be specified anywhere, but I wouldn't be too optimistic).
    As for other NI hardware, the 6602 can take an external source up to 80 MHz on its PFI lines assuming the input signal is a clean square wave at TTL voltage levels (I've actually pushed this up to 100 MHz in the past, but your results may vary).  It is programmed in DAQmx like the 6321.
    Or you could just implement this with an external circuit (e.g. comparator + ICS542).
    Best Regards,
    John Passiak

  • Which DAQ Driver I need to use for PCIe 6321 card

    I tried to install DAQ 9.2.1mx downloaded from net, but then I was unable to use DAQmx related sub VI's.... Then I tried DAQ 9.0mx but same happened with that also... Please suggest the solution.
    Any help from your side will be appreciated... Thanks
    Solved!
    Go to Solution.

    LabVIEW 7.1 is too old, 8.5, 8.6, 2009 may be better. At the same you should choose the corresponding DAQ driver. 
    Colin
    LV7.1/8.2/8.2.1/8.5/8.6/9.0/2010/2013; testing system development
    Please Mark the solution as accepted if your problem is solved and donate kudoes
    Home--www.colinzhang.net

  • PCI - 6143

    Bonjour,
    Je recherche l'équivalent l'equivalent en PCIexpress de la carte NI PCI 6143 car les ports PCI sont aujourd'hui obsolete.
    Ce que je recherche à avoir 8  voies isolées par carte.
    Merci.

    Bonjour Nico,
    Vous pouvez passer sur une carte NI PCIe-6321. Lorsque vous passez sur une plateforme PCIE vous aurez au minimum 16 Entrées Analogique.
    Sinon je vous propose d'appeler notre service commercial au 01 57 66 24 24 pour avoir des conseils sur votre configuration matériel.
    Merci,
    Cordialement
    Brice S.
    National Instruments France

  • Counter 6321

     Hello
    I use a capture card PCI-Express 6321, I measured Fréquency a way of counting (ctr0), my problem is I can not be precise enough, in fact, I measure up
    to 20 000, 21000 or 23000 Hz and I wish I could more accurately ie 23 150 Hz for example. How do I do?
    In my application, I used the NI-DAQ with LabView MX 8.6; Configuring the way of counting: counting with 2 High frequency counters, Unit: Hz
    Thank you in advance for your reply.
    @ +
    Laurent 
    Bonjour,
    J'utilise une carte d'acquisition PCI-Express 6321, je dois mesure la Fréqence sur une voie de comptage (ctr0), mon problème vient que je n'arrive pas à être assez précis, en effet, je mesure des valeurs de 20 000, 21 000 ou 23 000 Hz et j'aimerai pouvoir plus de précision c'est à dire 23 150 Hz par exemple. Comment puis-je faire?
    Dans mon application, j'ai utilisé les drivers NI-DAQ Mx avec LabView 8.6.
    Configuration de la voie de comptage : comptage Haute fréquence avec 2 compteurs, unité : Hz.
    Merci d'avance pour votre réponse.
    @+
    Laurent

    Based on my reading of the data sheet for the PCI-6321 card, there are 4 counters with 32-bit resolution with 3 internal base clocks available, 100MHz, 20MHz and 100kHz.  You could specify the 100MHz base clock and then set the 23150 Hz sample rate request and then use the "get actual rate" to see what the actual rate is?
    You can also feed in a clock signal from an external source, so you could use a signal generator to generate exactly 23150 Hz and use that source to sample the raw data.
    Or, maybe a different idea, feed the signal you want to measure at 23150 Hz into an Analog Input and sample the input at the card's maximum sample rate of 250kS/s and post process the data?
    Good Luck.

Maybe you are looking for