DAQ USB 6341 et boucle cadencée plante après un temps d'éxécution

Bonjour,
J'ai un souci avec un code (voir fichier joint Labview 8.6)
Je réalise sur un DAQ 6341 une sortie horloge laquelle est reliée sur une entrée numérique qui me sert d'horloge à une boucle cadencée (cadencement à 250ms). Dans cette boucle je ne fais qu'afficher le temps écoulé en comptant le nombre de top qui sert au cadencement de ma boucle. 
Lorsque j'exécute tous ce passe bien jusqu'à environ 247 seconde ou tout s'arrète:
Je n'ai plus mon signal d'horloge que j'ai créé sur le DAQ, et le code Labview semble planté.
Lorsque j'effectue plusieurs foi l'exécution du code le plantage intervient toujours aux alentours de de 247 secondes!!
Je ne comprend pas ce qu'il se passe, voyez vous quelque chose dans mon code qui ne colle pas????
Merci
Résolu !
Accéder à la solution.
Pièces jointes :
Test_sequence-cadence.vi ‏29 KB

J'ai trouvé d'ou vient le problème!
Pour ceux que cela intéresse il faut pour le VI DAQmx Cadencement câbler l'entrée "mode d'échantillonnage" avec "Echantillons continus".
Dans la doc de Labview il est indiqué nul par la valeur par défaut de cette entrée si on ne la câble pas!! Par contre je ne comprend pas pourquoi c'est seulement au bout de 247 secondes que la tache s'arrète???????
Ci joint le VI fonctionnant (Labview 8.6).
Pièces jointes :
Test_sequence-cadence.vi ‏39 KB

Similar Messages

  • Is it possible to maintain the last AO value after the DAQmx task is done on device DAQ USB-6341 ?

    Hi all,
    I use the device DAQ USB-6341 to generate the desired voltage waveform by the "finite samples" sample mode.
    I notice that the channel resets to zero volts after the DAQmx task is done and the DAQ USB-6341 does not have 
    the property AO.idleOutputBehavior to select "Maintain Existing Value".
    How can I maintain the last AO value after the DAQmx task is done on device DAQ USB-6341 ?
    Thanks.
    Godel

    How many computers do you have in the network?
    What is the IP address and default gateway number on your computer?
    In order to connect to the wireless network, WVC80N should get valid IP address from the access point.
    If the access point has capacity to assign a private IP address to the computers and devices then I think you can use WVC80N.

  • USB 6341 versus 6215

    I was using a USB 6215 OK. It worked great. However I needed to controll my valves by hardware I/O. I just installed the new USB 6341. I am trying to control 1 line at a time. I am currently sending a binary or hex value to control the valve. It does not act the same way as the USB 6215 DAQ. Does anyone have a simple approch to control one bit at a time. I am not familur as yet with the DAQ USB 6341.
    Philip
    Solved!
    Go to Solution.
    Attachments:
    6341.JPG ‏42 KB

    Dennis Knutson wrote:
    tbob wrote:
    Put the write function before the start function.  The write function simply writes data to the DAQ card buffers.  The data does not get generated until the start function is called.  So in your code, you were telling the DAQ to write an empty buffer before you filled it with data.  Try reversing the order and see if it works.
    Sorry, putting the Start Task first is normal. Just look at one of the simple examples such as Write Dig Chan.
    Normal, maybe, but not always so.  Look at the example called Write Dig Chan-Ext Clk.  It has the write before the start.  I guess it works both ways.  I have always put the write before the start because I have sometimes used external triggers.  That lead me to believe that you have to write to the buffer before you start the task.  I do the same with Analog Outputs also.
    - tbob
    Inventor of the WORM Global

  • Using USB 6341 device for frequency generation but level is droped when conect

    i am using USB-6341 Daq Device for frequency generation. The desired frequency is generated correctly but when i connect to other device the voltage level i means the Peak to Peak voltage of the frequency dropped to 0.6, 1 Volt and also the frequency fluctuated. As I disconnect it from the load or the device the frequency becomes constant and peak to peak voltage becomes 5.
    Please some help me to resolve my problem.
    Thanks
    Best Regards
    Naseeb
    Solved!
    Go to Solution.

    Hi Nasib,
    I just wanted to clarify a few more things. Can you answer the following questions?
    What frequency are you trying to generate?
    When there is no load connected do you see the desired frequency?
    When the load is connected, does the frequency always change to the same value or does it fluctuate within a certain range? If it fluctuates, what is the range?
    Also, what microcontroller are you using?
    Can you provide any images?
    Regards,
    Travis Ann
    Applications Engineer
    National Instruments
    Applications Engineer
    National Instruments

  • Software differences between USB-6229 and USB-6341 A/D boards?

    I am writing code for a treadmill for wheelchair users. We are doing research with users of manual wheelchairs, and this second unit is very important for the clinic where we work. My OS is Windows 7. The Visual Studio is version 2008 (MS Visual C++ 2008).
    The code is fairly well developed and has been running for 2 or 3 years on the USB-6229 DAQ board. We have built a second unit, and the people who built it tried to save a little money by purchasing a USB-6341 board (money is very tight in our research clinic, and it saved them about $1000). We were assured by NI customer service that the software would run with no changes on this slightly different board. The Analog outs and digital outs work great with this new board. However, I cannot read the analog inputs correctly. I do block reads where I read back 10 samples from 8 channels with a simple DAQmxReadAnalogF64 read. The data I get back is interesting. 2 of the channels are returning 0 or 1. 2 channels seem to have a relationship to what is going on, but is not at the right amplitiude. and the other 4 channels just have a slowly decaying signal. I have checked all 8 Analog inputs using NI Max test panels, and the A/D card is returning the correct data to NI's test panel software.
    Any suggestions would be greatly appreciated!
    Thanks!

    Hi,
    The programming for the 6229 and 6341 should be very similar, as both cards use the same DAQmx functions. You mentioned that you tried using MAX Test Panels, did you get the completely correct data when you were using the Test Panels? Also, does this codes still work with the USB-6229? Are you using differential, RSE, or NRSE connections?
    Evan S.
    National Instruments

  • Usb 6341 counter number of buffer

    Hi
    I will use usb 6341 to measure digital pulse.
    What is maximum buffer when i use 25Mhz sample clock with buffered mode?
    (It shown error when i set 25Mhz clock, N sample mode, 1M sample)
    Is there any fast edge measerement with usb 6341?
    (I want ns time scale with long time)
    Thx

    25 MHz is a very large sample rate for a counter... can you elaborate on your application?  There really shouldn't be any reason to sample the counter this quickly.  If you're trying to timestamp your external pulses with the highest possible precision, I would instead use the external pulse as a sample clock and count the internal timebase (assuming the external pulse isn't also 25 MHz...).  Doing this would actually get you 10 ns resolution (instead of 40 ns that you are hoping for with a 25 MHz sample clock) and the required throughput would be based on the rate of your external signal (which is presumably less than 25 MHz, which is the highest frequency that you can connect through the PFI lines anyway...)
    To answer your question though...
    The on-board FIFO is 127 samples per counter.  If your task is measuring more samples than this, you would need to be able to read data off of the device at least as fast as it is coming in.  On USB that is going to be highly system dependant (one benchmark here reported 8 MHz).  If you really need the higher throughput you are asking for you will probably want to switch to the PCIe version of the 6341 (20 MHz on a single channel mentioned here, I'm not sure if higher rates were tested but I wouldn't be surprised if 25 MHz is sustainable as well).
    Best Regards,
    John Passiak

  • Comment créer une source de cadencement à 1MHz dans une boucle cadencée?

    Comment créer une source de cadencement à 1MHz dans une boucle cadencée?

    Bonjour Julie,
    Je ne comprends pas très bien votre question.
    Tout d'abord, à l'avenir, préférez recréer votre propre post sur le forum, celui-ci datant de 2006, vous pouvez être quasiment sûr que les gens qui y ont participé ne sont plus aussi disponible pour vous répondre.
    D'autre part, le module 8451, qui gère la communication SPI peut gérer des horloges jusqu'à 12MHz, je ne vois pas où est votre problème d'horloge à 1MHz.
    Le problème qui se posait dans le poste d'origine était d'avoir une boucle logicielle qui allait à plus d'1MHz, ce qui est très dur et qui demande du matériel particulier. C'est déjà une limite quasiment inatteignable avec un environnement RT, et il faudra plutot se tourner vers de la technologie FPGA.
    En revanche, si votre besoin est de gérer une comm SPI à 1MHz, vous pouvez très bien avoir le module 8451 qui fait le codage et décodage SPI, et votre programme qui lui tourne à quelques ms pour récupérer ou envoyer de nouvelles données sur le bus!
    J'espère vous avoir éclairé!
    Cordialement,
    Olivier L. | Certified LabVIEW Developer

  • Boucle cadencée sur horloge AO

    Bonjour,
    Je génére sur une voie analogique un signal Finit sans régénaration à une fréquence compris entre 10 et 200 Hz
    En parallèle de la génération je voudrais pouvoir démarrer ("Trigger") une boucle cadencée ayant la même frequence que celle de ma génération (10 à 200 Hz).
    En effet je cherche à synchroniser des taches en fonction de ma position dans le buffer AO.
    J'ai bien tenté de cablé sur ma boucle cadencée le VI "Daqmx creat timming source" en mode 'boucle de controle à partir d'une tache" seulement une erreur apparait indiquant  que ce n'était pas supporté pour ce type de materiel PXI 6251. 
    Est il possible de cadencé une boucle en fonction de l'horloge AO ?
    D'avance merci pour votre aide.

    Bonjour,
    J'ai essayé en partant d'un exemple simple.
    J'ai toujour l'erreur -200452.
    J'ai en fait une chaine de caractère vide en sortie du VI "boucle de controle à partir d'une tache".
    Quelqu'un a une idée pou y remedier ?
    Merci.
    Slts.
    Pièces jointes :
    Face_Avant.png ‏46 KB
    Diagramme.png ‏67 KB

  • Boucle cadencé myrio, le temps ne respecte pas

    Bonjour,
    J'utilise la carte myrio pour faire une acquisition de données.
    Je voudrais faire une acquisition toutes les 1 ms.Pour savoir le temps exact pour chaque boucle, j'ai utilisé 2 méthodes.
    1ère méthode: utiliser count(ms) et shift register pour chaque boucle
    2ème méthode: utiliser node output(period)
    Les 2 méthodes ne donnent pas le même résultat. J'aimerais bien savoir laquelle est correcte?
    Les résultats de 1ère méthode ne donne pas 1ms par boucle, la plupart est de 1ms, mais il y a aussi 2ms, 3ms,4ms etc.
    Pourriez-vous éclaire un peu sur ce sujet?
    Merci d'avance.
    Lily
    Pièces jointes :
    RT D4WIND.vi ‏237 KB

    Bonjour,
    Votre deuxième méthode accède à un nœud de la boucle cadencée pour récupérer la valeur désirée pour la période.
    En d'autre mot, ce n'est qu'un point d'accès pour récupérer la période théorique. Il se peut très bien que votre boucle soit en retard et c'est ce qui semble se passer.
    C'est la première méthode qui renvoie la période effective. Vous pouvez aussi monitorer si la boucle s'exécute avec du retard grâce au nœud "Finished late?"
    Cordialement
    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

  • Boucle cadencé, normale et utilisation des cores.

    Bonjour,
    J'ai plusieurs questions sur l'utilisation de boucles cadencées et notament sur le partage de core :
    J'ai réalisé un VI type producteur/consommateur. Dans ce VI j'ai 4 boucles consommatrices (4 files d'attentes) qui gèrent un appareil chacune. J'ai un Ordinateur 4 cores. Je souhaite donc attribuer un core pour chacune des boucles.
    1) Ce que je veux savoir est par quel core sera gérée la boucle productrice qui elle, n'est pas cadencée ?
    2) Est-il recommandé de cadencer la boucle productrice pour justement contrôler le problème et cibler un coeur ?
    Dans le modèle producteur/consommateur proposé par labview, la destruction de pile intervient lorsque l'on sort de la boucle évènement dite productrice. Malheureusement il arrive que cette destruction intervienne avant l'éxécution du dernier évènement des boucles consomatrices (exemple : la déconnection des appareils), surtout si les boucles consomatrices sont cadensées.
    3) Dans ce cas, avez vous une solution optimale pour gérer ce problème ? (ou l'utilisation de séquence est la seule solution ?)
    En vous remerciant d'avance.
    Cordialement, Harti.
    Résolu !
    Accéder à la solution.

    Bonjour,
    1) si tu laisse l'option de gestion du coeur par défaut à ta boucle cadencée productrice, ou que tu utilises une simple boucle While, tu laisses l'OS gérer le coeur sur lequel cette boucle va s'exécuter, tu ne peux pas prédire à l'avance.
    2) tout dépend ce qui est produit ds ta boucle productrice, mais personnellement j'aurais plus tendance à cadencr la boucle productrice et pas les consommatrices! Tes consommatrices doivent être cadencées par tes files d'attente (soit par l'arrivée d'un nouvel élément, soit par un timeout)
    3) Ce que tu peux faire, c'est utiliser la fonction "obtenir l'état d'une file d'attente", et attendre que toutes tes files soient vides avant d'appeler la fonction de destruction.
    Ai-je répondu à toutes tes interrogations?
    Cordialement,
    Olivier L. | Certified LabVIEW Developer

  • C# apply to DAQ USB-6008

    i have a problem about DAQ USB-6008 of application in c#, i would like to use c# code to program the window that can display the temperature c/f and wave graphic celsius versus time ,which is used in thermal couple,its my first time to use DAQ system ,i have no idea what to start , is there anying information about it?

    USB-6008 沒有冷點補償,所以無法量測溫度。
    建議USB-9211
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/14165
    C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples

  • USB-6341 and Temperature Measurement

    Has anyone been able to measure temperature using thermocouples connected to the USB 6341?  I have been told the unit does not have CJC,  which is surprising to me.  From what i see, there exists significant thermal variation when measuring temp with ta 6341.  Has anyone come up with a method of using a thermocouple or RTD with a 6341 to measure temp?
    Thanks,
    Erik

    I use the USB  6251 and 6351 to measure thermocouples all the time.  There is the issue of the dissimilar metals at the device terminals adding to the measurement so you have to keep the box iso-thermal but that's not a big problem if you're careful.  I usually just set the CJC to CONSTANT (25C) but you can dedicate an extra TC to compensation and stick it in a cup of ice water to get better accuracy.  You still may not get the accuracy of dedicated TC interfaces but it's good to a degreeC or so and does very well indicating the relative difference between two channels.  Wire up a couple TCs and test it out in your own lab before you trust anything though.  Environmental noise can be problematic, especially with long wire runs.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • Usage of DAQ USB-6211 with Sound and Vibration Measuremen​t Suite

    Hi,
    Could I use DAQ USB-6211 with Sound and Vibration Measurement Suite ? All examples are based on 24-bit devices (usually with IEPE-on) such as NI 9234 or similar.
    I don't need IEPE, 16 bit is sufficient for my dynamic range, could leave without simultaneous sampling - so 6211 (that I have) is OK for me.
    Actually I'm interested in S&V Toolkit ( or Measurement Suite) as a tool with some specific Signal processing capabilities (for example, short-time FFT etc.)
    Thanks in advance

    Hi sgabr,
    Yes, you can use the 6211 with some of the Sound and Vibration VIs, including most of the FFT functions.  I know that's a little vague -- I don't have a list of which functions do or do not support 16-bit devices, but I did test it out on my system this afternoon.  If there are specific functions or examples you'd like to know about, let me know, and I will try them out.
    You also have the option to download the evaluation version of the Sound and Vibration Measurement Suite.  That way, you can test drive it yourself!
    Kyle B  |  Product Support Engineer  |  ni.com/support

  • SCXI with USB-6341

    From a hardware standpoint, can a USB-6341 be used to capture data from an SCXI chassis (ignoring the connector/wiring situation)? I would like to use this scenario and program in C++ but the device access is controlled through MAX and MAX doesn't allow the USB device to be selected as a chassis communicator. It is my understanding that M-series USB mass terminated devices could be connected to SCXI so I'm wondering if it is just a list of compatible devices MAX uses and the USB version of the 6341 isn't on the list for whatever reason (which I would be curious to know).
    In this note mass termination is called out specifically (for the M-series USB). What is the difference between mass termination and the wiring pin to pin?
    I realize I can communicate with the SCXI in other ways but going through MAX would be much simpler for me (especially for calibration/troubleshooting) and I could use the NI provided DAQmx C examples.
    Thank you

    Unfortunately this is for work I do at home so I'm in the usual predicament of having to spend more time doing things myself where I can't afford to do it otherwise. I thought the device did have the APFI capability when I purchased it.  Accuracy isn't a concern for me because I just need to see the signals (for example: high channel count temperatures where most devices are +/- 1°C on the spec sheets and I just need to know if heat transfer is working properly). I am trying to move away from a DAQcard that I was using for the SCXI to something USB that I can use with any computer in the future.
    By the way, I'm only using bare wires inside the X-series enclosure. The cable is an EPM cable and I wired everything per the pinout diagram provided by NI for that cable.  The BNC breakout I have wired to the SCXI chassis was working properly so I assumed it was good to go but couldn't get the device to show in MAX. Now I realize it is just the feedthrough on the 1349 that is working and communcation with the chassis won't work.
    Thank you

  • Can Ni daq usb 6210 measure distance if attach with sharp proximity sensor?

    good evening. my name is hadi from university tun hussein malaysia. i already bought National instrument device DAq usb 6210 for my final year project. did my device can measure distance if i attach it with sharp proximity distance sensor.. hope your company can teach me or guide me. tq

    Mike,
    There are a couple of options for you to get your SCXI system up and running. You will need either a M-Series or an E-Series card to connect to your SCXI system or you could look into the NI SCXI-1600 which is a controller for your SCXI chassis and would allow you to connect your laptop to the controller through a USB cable. This controller is going to operate similar to the E-Series Cards and the M-Series Cards. 
    We also offer a couple of PCMCIA cards that would allow you to integrate the SCXI system with your laptop. These are the NI DAQCard-6036E and the NI DAQCard-6062E. Unfortunately, your NI USB-6210 is unable to be used as the Data Acquisition device for your SCXI chassis. The list of DAQ cards that are possible for use with your system can be found here under the "Controller" tab. 
    http://ohm.ni.com/advisors/scxi/pages/scxi/modules​.xhtml?conversationContext=1
    Also we have an older SCXI Getting Started Manual that you can find here: 
    http://digital.ni.com/manuals.nsf/websearch/C19589​5E8C9CAE3D8625691F004DB285
    Aaron W.
    National Instruments
    CLA, CTA and CPI

Maybe you are looking for