Synchronisation signal compteur

Bonjour,
Actuellement en stage, je dois faire un programme permettant la synchronisation
de deux signaux distincts.
Je travaille avec un Cristal liquide et une caméra. J'utilise la version 2012
de labview ainsi qu'un boîtier NIDAQ9184 contenant les modules suivants: NI
9401 ( qui sert de compteur) et NI 9263 ( qui sert à générer les signaux).
Je voudrais que le signal généré pour trigger la caméra se déclenche à un
moment bien précis et qu'il soit synchronisé avec la génération du signal
envoyé au cristal liquide (CL). Le signal envoyé au CL est un signal carré
(avec plusieurs paliers de tension) et modulé à 2kHz.
L'objectif est d'envoyer un signal de front montant à la caméra afin d'acquérir
des images. Lorsqu'on choisit un nombre d'image égal à 1, cela signifie que
pour chaque palier de tension du signal CL, un pic de tension est envoyé à la
caméra. Ces pics de tension (ou front montant) doivent être synchronisés avec
le signal CL d'après une horloge commune.
Dans un premier temps, on a tenté de visualiser les signaux: signal CL et
signal CAMERA en sortie du module 9401 sur un oscilloscope: (référencé comme
"génération des signaux CL et camera ok" dans le VI) et ça marche (l'horloge
est présente (référencée comme "configuration de l'horloge" dans le VI))
Puis nous avons tenté de rajouter un compteur (référencé comme "voie qui permet
la communication avec la caméra" dans le VI) qui permet d'envoyer le signal à
la caméra. cependant nous ne visualisons que le signal CL sur l'oscilloscope et
nous n'arrivons pas à établir une communication efficace avec la caméra.
L'erreur -201133 nous indique que la voie est déjà utilisée.
Il me semble donc que le problème réside dans la façon dont je communique avec
la caméra. Pourriez-vous m'indiquer si une erreur est présente dans le VI que
j'utilise?
Ci-joint les photos du boîtier nidaq ainsi que notre VI complet et un schéma de
la synchronisation souhaitée.
En vous remerciant d'avance
cordialement
Justine LETIEN 

Bonjour,
Voici un lien relatif à l'erreur que vous obtenez
http://digital.ni.com/public.nsf/allkb/0495B7D5E2345DF386257730007EFD17?OpenDocument
 

Similar Messages

  • Synchronisation of M Series and High Speed Digitizer

    Hello everybody,
    i just have a question regarding synchronisation/timing of two different PCI cards (M-Series PCI 6220 and High Speed Digitizer PCI 5112, connected via RTSI cable).
    I wonder how I can synchronise signals, because those cards use different mechanisms in Labview for timing and synchronisation.
    Can anybody tell me, how I can synchronise the clocksignals and let them use the same trigger (actually I want to use the external trigger of the 5112)? Witch VIs do I have to use?
    Thanks in advance
    Oliver

    Hello!
    First of all many thanks for your reply.
    Exporting the external trigger from the 5112 to 6220 via RTSI works.
    Synchronising the clocks in the same way as you wrote doesn't seem to work. May be I did something wrong.
    What I did was the following:
    I exported the "reference clock" signal of the PCI 5112 using "niScope export signal.vi" to RTSI 7.
    Than I used the daqmx "sample clock.vi"  to configure the
    clock.  I used the instance "sample clock" with "dev1/RTSI 7" as
    the source (dev 1 actually is PCI 6220) and as sample mode "continous
    samples". I started the PCI 6220 (daqmx) first, after that I started
    the 5112 (niScope).
    Running this vi I get the following error:
    "ADC conversion attempted before the prior conversion was complete.
    Increase the period between ADC conversions. If you are using an
    external clock, check your signal for the presence of noise or
    glitches."
    This is still a small problem, but meanwhile I came to a bigger one:
    I thought I could use the 6220 in the same way I can use the 5112:
    I want to fetch (or read) data on both cards contionously but also
    periodically. The period time is given by the External trigger I
    mentionend before. Till now I didn't find a way to aquire the data from
    the 6220 in records of a given length (let's say 100 samples, at 1kHz)
    every time the trigger occurs (External Trigger rate is about 250 Hz).
    This is possible with the 5112 board, but I wonder if this is also
    possible with the 6220?
    Kind regards
    Oliver
    PS: Sorry for the "witch"

  • How to preset the Enable pin functions by software using the frame graber 1422?

    Hi
    I'm looking for any information related to how to configure by software the enable pins on Frame grabber PCI-1422. I found some examples on NI WWW showing that Frame synchronisation signal was wired to Enable A and Line signal synchronisation signal was wired to EnableB.And this was for an Area SCAN type sensor. But in any case that i wish to use my actual setup/cable for a Line SCAN type camera, do I have to modify my cable in order to connect now the Line synchronisation signal on Enable A? Or there is a possibility to define this my software (Camera file for example)
    Thank you
    regards
    Bruno

    Hi bjsimard,
    I think your best bet in this case is going to be modifying your cable. I don't think you'll be able to modify your camera file in order to do this.

  • Utilisation du DMA avec le pad 6015

    Bonjour,
    Lors que j'excute un programme permettant de mesurer la largeur d'implulsion ( voir fichier joint, fichier d'exemple fourni par NI). Labview me renvois le message d'erreur -200141 et me propose d'utiliser le DMA  chose que je ne sais pas paramétrer. Merci d'avance pour votre aide.
    Renseignements complémentaires :
    systéme d'exploitation XP pro
    labview version 7.1
    systéme d'acquisition pad 6015
    Attachments:
    Meas Pulse Width-Buffered-Cont.vi ‏64 KB

    Bonjour,
    Cette erreur vient du fait que le DAQ pad 6015 a une très petite FIFO pour les compteurs et qu'il ne supporte pas les DMA pour les compteurs.
    Le petit buffer se remplit très vite et provoque des erreurs. Les solutions possibles sont:
    - Utiliser un autre module DAQ (PCI serie E)
    - Convertir le signal compteur en analogique et le lire en utilisant l'entrée analogique.
    Cordialement
    VéroniqueD
    NI France

  • Labview - paramétrage Assistant DAQ

    Bonjour,
    Je possède une carte 9401 montée sur un châssis 9172 et je souhaite brancher 2 codeurs en quadratures.
    Problème : L'assistant DAQ (dans labview), qui gère les deux codeurs en entrées, paramètre automatiquement le port A et B sur PFI0 et PFI2.
    Question 1 : Comment modifier ceci afin de pouvoir exploiter les deux codeurs sur des connexions différentes ?
    Question 2 : Quels ports utiliser ? ex : codeur 1 => PFI0 et PFI2 / codeur 2 => PFI? et PFI?
    Question 3 : Comment peut-on savoir sur quels pins brancher les codeurs ? Où peut-on trouver une doc technique qui montre sur quels pins de la carte on retrouve PFI0, PFI2, ... provenant du chassis ?
    Merci par avance,
    Cordialement,
    Eric
    Pièces jointes :
    labview.JPG ‏112 KB

    Bonjour,
    Voici deux exemples pour synchroniser vos compteurs:
    https://decibel.ni.com/content/docs/DOC-5706
    Malheureusement, vous ne pouvez pas faire de synchronisation avec du DAQ assistant. La synchronisation de voies entrée analogique/sortie analogique/Digital IO/compteur nécessite une programmation
    plus évoluée que l'assistant DAQ.
    De plus, la manière de programmer de la synchro diffère si vous voulez synchroniser des entrées analogiques ou des entrées numériques ou des compteurs.
    J'espère que les 2 exemples que je vous envoie aujourd'hui vous parleront. Il s’agit de la synchro de 2 compteurs.
    Dans le cas contraire, vous pouvez peut être demandé une formation (vu que vous êtes dans l'enseignement, vous avez des prix réduits)
    Cordialement,
    MatthieuR
    Matthieu RICORD
    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;}
    Été de LabVIEW 2014
    12 présentations en ligne, du 30 juin au 18 juillet

  • Synchronize 2 function generators

    I have created a VI that outputs a sine wave on 2  5421 function generators. The amplitudes can be adjusted on the fly. The problem I am having is trying to keep the 2 signals in phase. I have tried all different combinations of triggering but it always seems to bring up errors/ doesn't work.
    I have attached my code with out any triggering.
    Any advice would be great on how to align the phases or any better ways to create the sine wave. Eventually what i want to do is to create 2 sine waves one at 0.1V then the second sine wave is at 1 V then a second later the first sine waves amplitude increases to 0.2V and the second decreases to 0.8V and so on untill they have both switched amplitudes.
    Attachments:
    Sinewave generator.vi ‏30 KB

    Hi there, 
    It may be useful for you to look at some examples from the labview example finder. If you search for "NI-Fgen synchronize" there are examples of a few different methods of synchronising signals between modules using TClk
    A good place to start would be:
    Fgen Arb Synchronize (TClk).vi (also found here: https://decibel.ni.com/content/docs/DOC-8227#comment-15098 )
    Fgen Arb Synchronize Master Trigger (TClk).vi
    Fgen Arb Synchronize Multiple Rates (TClk).vi
    These can be found by clicking Help in the LabVIEW toolbar then Find Examples... then in the Search tab type in "NI-Fgen Synchronize" and scroll through to the above named examples. 
    I believe the functions listed in the Triggering and Synchronisation section of this manual will be of use:
    http://digital.ni.com/manuals.nsf/websearch/38233C10B9BCA40286256ED2007EA1DD
    You can also refer to 
    Programming»NI-TClk Synchronization Help in the NI Signal Generators Help http://digital.ni.com/manuals.nsf/websearch/4FD742EBC070AFEF862578F400734EE5
    Here is some further information on NI-TClk
    http://www.ni.com/white-paper/3675/en/
    I believe if you are using PCI modules (not PXI) then to use NI-TClk to synchronise between two modules you will need an RTSI cable to link them. If yuo are usign PXI 5421 modules then you should not need that cable. 
    I hope this helps
    Tim, CLD, CTD
    National Instruments (UK & Ireland)
    "No problem is insoluble in all conceivable circumstances"

  • Problem with video senders and On Demand

    I'm a new member although I have had BT Vision for 6 months now. So far I have been very pleased with it but I have a problem at the moment which I am hoping someone will help me resolve.
    I recently bought a Nikkai 5.8 GHz sender kit which works perfectly with Freeview channels. I have a great picture and sound but when I switch to watching On Demand I can have a great picture for a couple of minutes and then I get a blue screen and a bit of stuttering of the picture then the picture goes ok again. No amount of repositioning the receiver cures this and I'm baffled as to why I have stability with the Freeview but not the ON Demand.
    I know that I should be able to get the sender kit working fine with the On Demand as I previously used a Ferguson 2.4 GHz and had no problems at all except for the interference when using the laptop. The On Demand would work fine right through the evening.
    Has anyone else had this problem and if so, is there a way round it? Any suggestions/advice welcome.
    Solved!
    Go to Solution.

    The Macrovision copy protection signal is present on both of the SCART outputs, and is activated whenever copy protected content is viewed.
    This copy protection will interfere with the extraction on the synchronisation signals that your video sender needs, and cause loss of sync.
    The Ferguson video sender may simply have ignored the copy protection if it was a few years old.
    Most modern video equipment is designed not to work if copy protected content is present. Pressure on the manufacturers by copyright holders see to this.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Weird Video Squeezing Problem

    Hello.
    I'm having a weird video problem and I thought I'd see if anyone else has experienced it.
    I'm running the MSI nforce board with an AthlonXP 1700+ with two Micron 256MB PC2100.  Firmware 2.6.  Windows XP Home Edition with SP1.  I have a four-year old ViewSonic GT775 that I've always had good luck with.
    I've been using the latest nForce 2.93 drivers since they came out and am running the 41.03 Detonator drivers.  I've tried downgrading to the 40.72 with no change.
    I run my desktop at 1024x768x32bit and what has started happening the past couple of days is that the image on my desktop will randomly squeeze in about a half-inch on each side.  It will stay like this for a while and then randomly go back.  It wouldn't be a big deal if it just stayed like this, but it randomly clicks back and forth.  Changing the color depth or refresh rate does not affect it.  Even shutting down and then restarting doesn't affect it.  If it was squeezed when I shut down, it'll be squeezed when I restart.
    Very weird.  For now, every time it does it, I just use the monitor controls to resize the display, but it is annoying to have to do it.  It seems like right before its going to switch, I'll see minor tearing.
    Has anyone else experienced this?  Could it be my monitor?  I do have another computer at work and I could bring the monitor home.  My experience in the past with monitors is that when they start to go, the colors change and the brightness dims and then they just stop working.  My monitor today is as crisp and bright as the first day I bought it, so I think it's the onboard video.
    Does anyone have any ideas?
    Thanks!

    Your image resize problem sounds like a refresh rate problem to me. It looks as if your monitor cannot catch the correct refresh or follow the hi speed refresh you ask. It can come from either the board, the monitor or just a bad connection. I would tend to say the monitor, as it is getting a bit old.
    Failures in monitor can come from diffrent parts. If it is the electron canon, you can see a lowering of the luminosity/contrast. Same for the high voltage grid. A problem on your deflection parts could lead to a color shift or distorted image. Here, i'd say it is a problem with your synchronisation signal. Try a degauss also. You may just have a shifty ground.
    Frenchy

  • How can I tell if signals from two devices are truly synchronised?

    Hi there,
    How does one check that signals from two devices (two separate devices in a single X-series chassis) that should be synchronised actually are?   I am using a PXIe6361 and PXIe4331 on a PXIe-1073, with Labview 2001 SP1 64-bit. All devices are using the Sample Clock from the 4331 device, and an AI Start Trigger, so they should be synchronised.
    I thought that writing the signal data to file and checking the time stamp for each column of data would be the most accurate, but I have been told that timestamps are software created and therefore don't reflect the actual time that the signals were acquired by the hardware.  When I do this, the timestamps vary by up to 150ms which is larger than I expected.
    If I set the x-axis of the waveform graphs (on the GUI) to "Time" then it appears that the first data sample is taken at different times for the two plots (one plot per device).
    If I set the x-axis of the waveform graphs (on the GUI) to "Ignore time stamp" (so that the x-axis just starts from 0 rather than a date-time) then the first data point occurs at "0" for both graphs. However, I'm not sure that this reflects the actual alignment of the signal.
    What is the best way to check if signals collected on different devices in the same chassis are actually synchronised?
    Thanks,
    Claire.

    Hi Lynn,
    Thanks for your help and for sending the demo.
    I understand the concept of how the signals will look if they're not synchronised and your demo shows that nicely. I guess I have been perplexed by someone else telling me that the timestamps in the output file (and following from that I assume timestamps on a waveform graph) do not give an indication of whether signals are synchronised. The reason they gave for this was that the timestamps are manufactured by the software, not the DAQ hardware.  They suggested that I put the setting "ignore waveform timestamps" on my waveform graphs, and then check that both signals come in at the same time (i.e. both start at zero), but I'm not convinced about this. 
    When I use an analog trigger, neither the timestamps in my output file or on the two waveform graphs are synchronised. If I don't use the trigger, then there is far less disparity in the timestamps in the output file. I've attached two output files here, and my VI.
    This is my first attempt to synchronise a voltage module and a strain gauge module on an X-series chassis, so I want to make sure that I'm achieving the best synchronisation that I can, and the difference in behaviour with and without the trigger worries me.
    Thanks,
    Claire.
    Attachments:
    without trigger.txt ‏5 KB
    with trigger.txt ‏6 KB
    Multi-Device Synch-Analog Input-Finite Acq-Analog Start_Claire_wDigitalin_12June2012 PTbridge.vi ‏196 KB

  • Synchronisation with a slower external signal

    Hello,
    I would synchronize 1 KHz continuous acquisition with an slower external clock. For example, I have a 100 or 200 Hz external clock and on each clock signal, I would read the acquisition buffer.
    On which pin of the DAQ board could I connect the external code ?
    Which function could I use on LabVIEW to synchronise the application with the external clock ?
    Thanks for your input
    Hubert Robitaille

    Hello;
    I don't know if I got your application need correctly by your description. By my understanding you want to have multiple external signals clocking each channel of the DAQ board.
    If that is the case, it's not possible, since the DAQ board accepts only one Scan clock pulse train. One thing you can do is to use the fastest clock as the external scan clock, and then skip some points on the other channels so you can collect the datapoints that match each scan clock needed.
    Hope this helps.
    Filipe A.
    Applications Engineer
    National Instruments

  • Synchronise digital pattern output(6533) with a external signal

    I use a PCI-DIO32HS and i want to synchronise an output pattern with an external signal(TTL;T=1.7ms).
    ie :every time external signal become high(every 1.7ms)
    my dio32HS output a define pattern on a line.
    How can i do this?Thanks

    Thanks for your answer but see attached file to see what i want to do.
    I want to control delay between trigger(input signal T=1.7ms) and ouput and control the width of the ouput pulse
    Best regards
    Attachments:
    signal.txt ‏1 KB

  • Synchronise NI 9239 & NI USB 8473 with Signal express

    Hello, I have a Cdaq 9174 chassis with an NI 9239 module (analogue input at 50Khz/ch) with Signal Express.
    And I wanted to know if we could acquire this four inputs synchronised with datas from CAN connection by using a NI USB 8473 ?
    Many thanks.
    Patrick.

    For me you can't use the driver NI-CAN is not compatible with Signal Express. The Only way you could use it with SE, is to pass through LabVIEW VI.
    You'll find in the below link the way to do it.
    http://digital.ni.com/public.nsf/allkb/359D14941D6936E98625729D008387D5
    I advise you to stay in LabVIEW this kind of program. It's easier.
    Best regards.
    Sabri JATLAOUI - Certified LabVIEW Developer

  • Synchroniser un signal

    Bonjour,
    Je réalise l'acquisition d'un signal analogique sur la voie AI0 de ma carte PCI  6040E et je réalise le traitement et l'affichage à l'aide de Labview 6.1.
    Cependant mon soucis est de synchroniser ce signal par rapport à un seuil et de l'afficher en continu pour pouvoir le traiter par la suite (FFT).
    J'arrive tant bien que mal à réaliser ceci en modifiant les tableaux mais ce n'est pas ce que je désire obtenir.
    Ci-joint mon VI. Pouvez-vous me donner un petit coup de pouce pour l'améliorer.
    Merci d'avance pour votre aide. 
    Attachments:
    Acquisition d'un signal Analogique.vi ‏75 KB

    Bonjour,
    je pense que la réponse à ce problème se trouve au lien suivant :
    http://forums.ni.com/ni/board/message?board.id=4170&message.id=10111#M10111
    Attention à ne pas dupliquer les threads....
    Merci,
    Cordialement,
    Benjamin M
    NIF

  • Compteur décompteur sur labview pr signal triangulaire sur carte PCI-6024E

    Nous savons qu'il faut utiliser un compteur décompteur pr former un signal triangulaire sur la carte PCI-6024E, existe-t-il un vi sur labview préréaliser qui nous permettrai de générer un tel signal. Ou alors pourriez vous nous expliquer comment réaliser ce vi.
    meci

    Il exitse bien un VI qui permet de générer des signaux triangulaires.
    Il se situe dans la palette Analyse >> génération de waveforms >> waveform Triangulaire.
    Bonne continuation

  • Acquisition de 2 signaux PWM avec un seul compteur ?

    Bonjour,
    Je souhaiterais acquérir 2 signaux PWM afin d'en mesurer le rapport cyclique avec un seul compteur de la carte d'acquisition de données. Cela est-il possible?
    Si oui, comment faire?
    Je travaille sous Labwindows/CVI 2012 avec la DAQ NI6351. Les signaux PWM à acquérir ont une fréquence proche de 500Hz et un rapport cyclique de 10 à 90%
    Merci d'avance
    Cordialement,
    Hervé

    Bonjour,
    Merci tout d'abord d'avoir posté vos questions sur le forum.
    Je vous invite à lire les conseils présents ci-dessous :
    1) Using the DAQ Assistant in LabWindows/CVI
    http://www.ni.com/white-paper/4650/en/
    Vous pouvez utiliser le DAQ assistant pour venir mesurer le pulse width de votre signal par exemple.
    2) Je vous propose de regarder les exemples CVI qui devraient se trouver dans le répertoire suivant :
    C:\Program Files (x86)\National Instruments\CVI2012\samples
    C:\Users\Public\Documents\National Instruments\CVI\Samples\DAQmx\Counter
    Enfin, voici un exemple réalisé en LabVIEW mais toutes les étapes sont clairement identifiées. Ainsi il vous faudra appeler les fonctions dans CVI au lieu de LabVIEW.
    Measure Duty Cycle - Buffered - Finite
    https://decibel.ni.com/content/docs/DOC-12396
    Cordialement,
    Matthieu RICORD
    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;}
    Été de LabVIEW 2014
    12 présentations en ligne, du 30 juin au 18 juillet

Maybe you are looking for