Exécution simultanée

Bonjour,
  J'ai créé un vi qui devrait exécution entre autres deux acquisitions analogiques simultanées avec une carte USB6008. Sur une entrée, je fais l'acquisition d'une valeur analogique fournie par un potentiomètre, et sur l'autre la valeur analogique fournie par un capteur de température, 10mV/°C. Lors de l'exécution du vi, il y a toujours qu'une des deux acquisitions qui est réalisée, et totalement aléatoire, jamais les deux ensemble.
  Merci pour votre aide.
  Jean Pierre Jouannet.
Résolu !
Accéder à la solution.
Pièces jointes :
EcritureSortieTOR.vi ‏42 KB

Le résultat devrait ressembler à ça:
Cordialement,
Micaël DA SILVA

Similar Messages

  • Exécution simultanée de deux taches

    Bonjour,
       J'ai conçu un petit VI Labview qui prend une mesure sur une sonde, pour cela j'utilise un trigger grâce à un port parallèle (c'est compliqué mais pour des raisons techniques je n'ai pas le choix). Je lis donc la donnée après avoir trigger, seulement je ne sais absolument pas comment trigger une fois que la lecture est lancée (lecture VISA sur RS232)
    Le trigger se fait très rapidement pour les besoins du programme global.
    Pourriez-vous m'expliquer comment faire? Je dispose de labview 2010 SP1 avec le module FPGA.
    Merci d'avance.
    Dark'
    Dark'
    Mines de Douai
    Promotion 2013
    Résolu !
    Accéder à la solution.

    Merci pour ton aide, je n'ai pas trouvé la fonction basculement de booléen peut-être que la traduction n'est pas la même pour la version anglaise. J'ai tout de même essayé d'utiliser une variable globale (je joins deux impression d'écran) mais j'ai encore et toujours cette erreur de Timeout...
    Merci d'avance!
    Dark'
    Mines de Douai
    Promotion 2013
    Pièces jointes :
    Mesure.JPG ‏54 KB
    Trigger.JPG ‏33 KB

  • Exécution de 4 modules simultanément

    Bonjour,
    J'utilise un châssis (NI cDAQ-9174) à 4 emplacements. Je branche 4 modules d'acquisitions sur les 4 emplacements. Mais en exécutant les 4 modules simultanément je reçois le message d'erreur suivant "-200022 la ressource a été déjà réservée". Donc je me demande si le problème d'exécution provient de l'ordinateur ou bien autre chose. Merci de me proposer vos idées. (je vous rappelle qu'en mettant 3 DAQ le programme fonctionne sans problème) .
    A+
    Résolu !
    Accéder à la solution.

    Bonjour,
    La réponse est très simple (cf Documentation)
    "The CDAQ-9174/9178 features three AI timing engines and is therefore capable of performing up to three Analog input tasks at different sampling rates.  These three timing engines are named ai, te0 & te1.  Once three analog input tasks are configured to run on different sampling rates, the same concepts described below apply to the CDAQ-9174/9178."
    Specifying Different Sample Rates for Multiple CompactDAQ Modules
    Cordialement,
    Da Helmut

  • Probleme avec DAQmxRegisterEveryNSamplesEvent, acquisition et émission simultané

    Bonjour
    J'essaye de générer et acquérir un signal simultanément. Typiquement, je relie l'entrée 0 et la sortie 0 et je reçois ce que je génére.
    J'utilise donc deux taches: une dédié à l'émission et l'autre à la réception. Pour les deux, j'utilise un déclenchement sur EveryNSamplesEvent.
    Mon problème est que lorsque que je lance les taches, avant même l'éxécution de la ligne de code suivante, j'ai un compte rendu d'émission correspondant à 2 secondes d'émission (en une fraction de seconde) à ma fréquence d'échantillonnage et que mon acquisition commence elle normalement (je crois). L'émission se termine ensuite seule environ 2 secondes après la fin de la génération.
    Dans l'idéal je voudrai même que l'émission et la réception soient synchrones. Je me suis donc inspiré du code exemple SynchAI-AO.c . Dans ce code seul l'acquisition fonctionne sous EveryNSamplesEvent. Néanmoins j'utilise comme dans le code exemple la définition du trigger sur /Dev1/ai/StartTrigger et la commande DAQmxCfgDigEdgeStartTrig appliqué à la tâche émission.
    Je ne comprend pas pourquoi l'EveryNSamplesEvent de l'émission se déclenche si rapidement dès le début, avant même l'acquisition.
    Merci de votre aide

    Désolé mais je n'arrive pas à supprimer ce topic. Pourriez-vous aller consulter le suivant s'il vous plait ?
    Merci

  • Comment acquérir plusieurs voies simultanément sans utiliser l'assistant DAQ

    Bonjours,
    Je souhaiterai savoir comment acquérir plusieurs voies simultanément sans utiliser l'assistant DAQ afin de pouvoir régler les paramètres (fréquence d'échantillonnage, nbre de points à acquérir, plage d'entrée min et max) sur la face avant lors de l'exécution de mon programme?
    De plus je souhaiterai savoir comment faire pour avoir ma courbe stable dans ma fenetre Graph (non déroulante).
    D'avance mercie beaucoup pour celui ou celle qui me répondra!
    Ludo

    Bonjour,
    Vous trouverez des exemples plus bas niveau que le DAQ Assistant à l'endroit suivant:
    * Ouvrez un VI vide et sélectionnez le Menu Aide >> Recherche d'exemples...
    * Sélectionnez la rubrique "E/S Matérielles >> DAQmx >> Mesures analogiques >> Tension"
    Ces exemples permettent de faire de l'acquisition finie, continue, point-par-point sur une ou plusieurs voies en réglant les paramètres depuis la face-avant du VI. Pour des applications plus avancées, je vous conseille de vous plonger dans les exemples ci-dessous:
    * NI-DAQmx >> Advanced Programming Techniques
    http://zone.ni.com/devzone/devzone.nsf/webcategories/B43F55011D54A29486256F190043B365
    Concernant l'affichage de votre graphe, la meilleure méthode est de désactiver la mise à l'echelle automatique de l'échelle des X et des Y dans les propriétés du graphe.
    Cordialement.
    Matthieu G.
    AE, NI France

  • Deux études simultanées

    Bonjour, j'ai fait un programme permettant de charger décharger une batterie tout en mesurant sa tension.
    Et je souhaites pouvoir le faire sur deux batteries en même temps. J'a d'abord essayé de lancer le programme deux fois (avec deux noms différents) en changeant les voies, ca na pas marché. Du coup j'ai modifié le programme, je travaillais de base dans une boucle while, et j'en ai créé une autre pour l'autre mesure, et ca ne marche toujours pas. J'ai cette erreur qui s'affiche : "L'erreur -50103 s'est produite à : DAQmx Start Task.vi:7220004"
    Auriez vous une idée ?
    Merci d'avance
    Pièces jointes :
    prog alim charge mesure 2 2 batteries.vi ‏210 KB

    Salut,
    Il est possible d'appeler simultanément un vi plusieurs fois, pour cela il faut configuré le vi en mode exécution réetrante: Fichier>>Propriétés du Vi>>Execution.
    Par défaut, les vi sont confgurés en "exéxution non réantrante", c'est à dire que si le vi est appelé plusieurs fois simultanément les appeleants doivent se relayer pour l'execution de celui-ci.
    Réentrance : autorisation d'appels simultanés au même sous-VI
    Reg

  • Problème avec DAQmxRegis​terEveryNS​amplesEven​t, acquisitio​n et émission simultané

    Bonjour
    J'essaye de générer et acquérir un signal simultanément. Typiquement, je relie l'entrée 0 et la sortie 0 et je reçois ce que je génére.
    J'utilise donc deux taches: une dédié à l'émission et l'autre à la réception. Pour les deux, j'utilise un déclenchement sur EveryNSamplesEvent.
    Mon problème est que lorsque que je lance les taches, avant même l'exécution de la ligne de code suivante, j'ai un compte rendu d'émission correspondant à 2 secondes d'émission (en une fraction de seconde) à ma fréquence d'échantillonnage et que mon acquisition commence elle normalement (je crois). L'émission se termine ensuite seule environ 2 secondes après la fin de la génération.
    Dans l'idéal je voudrai même que l'émission et la réception soient synchrones. Je me suis donc inspiré du code exemple SynchAI-AO.c . Dans ce code seul l'acquisition fonctionne sous EveryNSamplesEvent. Néanmoins j'utilise comme dans le code exemple la définition du trigger sur /Dev1/ai/StartTrigger et la commande DAQmxCfgDigEdgeStartTrig appliqué à la tâche émission.
    Dans l'ordre, je lance la tache d'émission puis la tache de réception. Si j'échange l'ordre, la tache d'émission a le même comportement jusqu'à ce que la tache de réception se lance. Ensuite, il semble que la fonction callback de l'émission n'est plus appelée.
    Je ne comprend pas pourquoi l'EveryNSamplesEvent de l'émission se déclenche si rapidement dès le début, avant même l'acquisition. Est-il en fait possible d'avoir deux tache fonctionnant par l'EveryNSamplesEvent ?
    Merci de votre aide

    Bonjour,
    J'ai l'impression qu'il y'a quelques incohérences dans votre explication:
    j'ai un compte rendu d'émission correspondant à 2 secondes d'émission (en une fraction de seconde) à ma fréquence d'échantillonnage
    Pourquoi parlez-vous de votre fréquence d'échantillonage? Si tous vos éléments sont générés d'un coup, au lieu d'être fait en 2 secondes, j'imagine que votre fréquence d'échantillonnage n'est pas respectée.
    L'émission se termine ensuite seule environ 2 secondes après la fin de la génération.
    Qu'entendez-vous par là? Si tous vos points ont été générés depuis 2 secondes, que considérez-vous comme la fin de l'émission?
    Dans l'idéal je voudrai même que l'émission et la réception soient synchrones. Je me suis donc inspiré du code exemple SynchAI-AO.c
    Qu'entendez-vous par là? Que voulez-vous faire exactement?
    Cet exemple implémente une AI et une AO qui sont synchronisés sur le même signal d'horloge, et démarrés en même temps par un trigger. Je pense qu'il répond donc à votre besoin.
    Pour ma part, cela me semble normal qu'il n'y ait que l'acquisition qui utilise le EveryNSamplesEvent. En effet, pour la génération, vous définissez votre tableau de points à générer, ainsi que la fréquence à laquelle ils doivent être générés, et la géénration se gère d'elle même. Ensuite, l'acquisition démarre, et vous remonte les infos seulement lorsqu'elle a reçu N Samples, cela vous évite de faire du polling sur l'acquisition.
    Ces informations vous éclairent-elles sur le fonctionnement de l'exemple?
    Cordialement,
    Olivier L. | Certified LabVIEW Developer

  • How Can I Login To Multiple User Accounts Simultaneously

    I am using an Intel iMac (2GHz Intel Core 2 Duo) with 1GB of memory and 10.4.11. I have Fast User Switching enabled. I restart the Mac every morning. Then I login to a second user account. While at work, I access these accounts via VNC.
    Sometimes I forget to login to the second user account. I do it from work via VNC, which sometimes causes complications.
    Does OSX support simultaneous multiple user account login? If not, is there a work-around solution such as an AppleScript? This would provide a time savings to me, as well as a convenience if I forgot to login to the second user account before leaving home.
    Thank you.
    Kurt R. Todoroff

    Seems to me, in another discussion, the simple Fast User Switching does not
    do much really fast or automatically; there are a few faster steps than having
    to log into each and every account change (even when FUS is enabled) so
    this later development sounds a little more automatic, esp over a distance.
    Is there a third party app or valid script that an do the multiple logins automatic
    after the first-run; so passwords need not be re-entered, and the screen can just
    switch over "fast" to another open account window, ready to go to work in there?
    {And not just a keyboard shortcut to save a few little steps, overall.}
    Whichever way the road turns...
    Good luck & happy computing!
    {edited}

  • Can two users share the same iMac simultaneously?

    I have recently acquired several 2009 Mac "towers" (kind of new to Mac, here...  have patience...) and I'm trying to stretch the 20 computers I was given so it can service 40 students.  They all have 6gb of RAM, a couple of TB's of memory, fast processors and (from my understanding) can support two demanding users at one time.  They also have two network ports.
    Now, I'm not talking about using two monitors on one Mac, because I know how to do that.  I'm trying to have two totally separate users, with two different accounts on a network, logging in totally independently and drawing off of a similar network.  So, I'm basically trying to make it so we "split" one Mac so that two students can use one machine.
    I thought about partitioning the drive so that I can have two parallel installations of iOS, running independently of each other (not sure if that's possible) but then I wouldn't know how to connect the machine to the internet.  I know it has two different network ports but I'm not sure how to make them operate independently.  The students need to have their own login and should not be able to mess with the other student's items.
    I appreciate any and all tips or help.
    Thanks again!

    You can create as many individual user accounts on a Mac as you like. Then, any one or more of those users can remotely log in from another Mac and use that Mac as their own, simultaneously. Each account will remain separate from all others.
    However, since each user needs to have a Mac to do that, I'm not sure how you could effectively double the number of users as you describe.

  • How can multiple users simultaneously use 1 library?

    We have 3 computers in our home and have our music on a networked drive, with on each computer an itunes library. We would like to have 1 itunes library on the networked drive, that each of the computers can access simultaneously. How can we achieve this?

    The Wine Bug wrote:
    How can we achieve this?
    only one instance of iTunes @ a time can access the same library, sorry.
    you should be able to +work around+ the problem using _*Home Sharing*_.
    JGG

  • Is there a way to adjust the settings on launchpad so that when I swipe into it all the open apps/pages are fully separated (like in exposé) so that I can fully view all of them simultaneously?

    Hi Apple community,
    This is my first go at this so be kind,
    My question concerns launchpad. Coming from Snow Leopard I had been using spaces. I like to keep certain bundles of programs on separate desktops, for example all word processing related tasks in one place. I have set up the equivalent on Yosemite.
    My problem is concerns the loss of exposé. Now I know when you swipe into launch pad you get a very similar effect but the issue I am having concerns the "zoom out" effect when you swipe into launchpad. With exposé all open apps/pages etc would be fully exposed - in my case several (sometimes as many as 9 word documents). What I am running into is when I do this in / into launch pad the "pile" of docs is exposed but they are still overlapping so I can't get a good look at which is which and visually identify where I want to navigate to.
    My question is this; Is there a way to adjust the settings on launchpad so that when I swipe into it all the open apps/pages are fully separated (like in exposé) so that I can fully view all of them simultaneously? If so, instructions on how to do so would be greatly appreciated. Any alternative suggestions to doing this outside of launchpad are also welcome. If there is an exposé app for example, I would be quite willing to go that route.
    My main concern is being able to quickly (ie a touchpad gesture) expand all the open pages so I can bounce between them.
    Much thanks from a loyal Apple friend.

    Hey Eric,
    Thanks for taking the time. Unfortunately no that does not solve it. Same as swipe it will get me there and it will show separate programs spaced out. The issue I am having is that all my open word files are bunched up in a pile on top of each other. I can see the edges of each one but I want them to be separated from each other enough that I can visually identify what file is what.
    Again, thanks for trying, it is appreciated.

  • Looking for a simple app that can output 8 channels simultaneously.

    Hello esteemed audio community.
    I have to create a little effect for an upcoming party. For this I have created the following audio tracks in Garage Band:
    - 4 separate audio channels (stereo front and stereo rear)
    - one mono combination of these four tracks (to drive a Light organ gizmo - makes the light flicker with the audio)
    - and finally two separate tracks with simple 1Khz pulses to trigger relays for a fog machine.
    I now need to be able to play these 7 tracks simultaneously and send them to different amplifiers and relays. So I need two things: 1) a software that can play them and 2) a hardware interface that can take these 7 channels out of the computer and convert them to line levels analog signals.
    I thought this would be pretty straight forward but it turns out that it is not, unless you want to throw $$$ at it which I really can't afford.
    Software wise, unfortunately, GB can only output 2 audio channel at one time. So I need to find a little app that can offers multitrack output. Ideally it would some shareware thing that would allow me to load in up to 8 tracks saved from GB, adjust their individual levels and then output them.
    Second issue is hardware. Here I have found the M-Audio 410 firewire. This box will take up to 10 audio "returns" and output them to analog. They can be found used for about $150. So I think this might work.
    Budget for this setup is very limited, hopefully no more than $150. Quality does not have to be very high although a good bass response will be important for the effect. I don't need any recording. Only playback.
    Would any one have any suggestion on how to best accomplish this? If this software does not exist, how complicated would it be to write it? Would Applescript be useful for this? All it needs to do is read 8 audio files (2 minutes max), allow me to adjust their level and output all 8 at the same time.
    Thank you very much for any help.
    Bo

    Ah. I'm surprised, but there we go.
    Have a look here ...
    http://jam.hitsquad.com/vocal/about2136.html
    (courtesy of googling 'OSX free multitrack recording software')
    Didn't have time to do more than skim, but 'Ardour' looked promising. Protools is the only one I've used, the full product is one of the industry standards, but the free 'lite' version listed here seems to be limited to 2 in/out as well.
    Referring to your original post, I'd think trying to write or 'script' something would be a nightmare ... synchronisation of streams within something like Applescript would be a major issue, quite apart from anything else.
    G5 Dual 2.7, MacMini, iMac 700; P4/XP Desk & Lap.   Mac OS X (10.4.8)   mLan:01x/i88x; DP 5.1, Cubase SX3, NI Komplete, Melodyne.

  • Can we load data simultaneously in ODS by various infopackage

    Hi Experts,
    I just wanted to ask that
    Can we trigger paralel load in ODS  by various infopackabyge, once I tried to load two files at the same time in ODS with 2 different package, I was able to load the files, the request id were different for both processes but the activation id was same.
    If anybody did the same , then tell me is there any problem to load Simultaneously in ODS

    Hi,
    No problem with the load...
    Activation ID is same after activation because u might have selected both the requests at the same time during activation processes....
    rgds,
    Edited by: Krishna Rao on May 21, 2009 7:11 PM

  • How to find the number simultaneous call at a given moment on UCCX ?

    Hello,
    I would to know how to find the number simultaneous call at a given moment on UCCX ?
    it's on UCCX or UCCX RTMT, I don't know thanks a lot for your help.
    Aubert

    Hi Gergely,
    I should made a report on the number simultaneous call at a given moment on UCC on the server (all calls on the server)..

  • Simultaneous data activation in cube - request for reporting available

    Hi,
    I'm on BW 3.5.
    I am loading several million records to a cube, processing is to PSA first and subsequently to data target.
    I have broken the load up into 4 separate loads to prevent caches from filling up and causing huge performance issues.
    When I load all the data in a single load, it takes 10 hours to load.  When I break it up into 4 loads it takes 3 hours.
    My problem is that during the loading from PSA to data target, the first data load becomes green and ready for reporting before the last one has finished loading, and so the users get inaccurate report results if they happen to run a report before the last request activates.
    Is it possible to get all 4 requests to activate simultaneously?
    I have tried adding an aggregate to the cube, no good.
    I have tried loading the 4 loads to the PSA in sequential order in the process chain, and then loading from PSA to data target simultaneously (side by side), no good.
    Does anyone have a solution?
    Many thanks,
    Paul White

    Hi ....
    Have you done the Roll up ?
    Since aggregates are there on that cube....until and unless you do the roll up that request will not be available for Reporting...
    Regards,
    Debjani....

Maybe you are looking for

  • Can i have two ipods on one computer

    I have two ipods the classic and nano, i want to use both the nano for working out and classic for all of my music. Can I use one computer for both

  • Error while running WDJ application using jxl.jar

    Hi Experts, I am using jxl.jar in my webdynpro java application in CE7.2. I added jxl.jar in java build path and place the jar file in lib directory of webdynpro DC. It shows error in development configuration perspective while building, then i creat

  • Macbook pro Freezes, Screen splits into two half, scrambled..

    Hi, Just bought a new Macbook Pro 15.4, 2 Ghz i7 processor, AMD Raedon HD 6490M 256 Mb Video, 4 Gb Memory... After Three days, whenever I try to play a video, in quicktime or vlc or just load a video song on virtual dj, the screen just freezes and sp

  • How to display the Image in PDF report by using iText Report

    Hi Im trying to display the image which is very big one. This is my code Document document=new Document(); PdfWriter.getInstance(document,new FileOutputStream("imagePDF.pdf")); document.open(); Image image = Image.getInstance ("1.bmp"); document.add(

  • Recently switched from windows to Mac-can't get ipod nano to sync

    After reading help pages, I believe I need to reset my ipod. HOwever, all the directions are asking me to select ipod from device list and mine won't even show up on the device page of itunes. At this point I just want to erase everything on it and s