10-04-2018 07:23 AM
Bonjour,
Voici ma problématique :
Actuellement, j'utilise un cDAQ-9178 avec divers modules d'acquisition et de génération de signaux sur un banc de test. Aujourd'hui, j'envisage d'augmenter les fonctionnalités du banc de test en augmentant le volume d'E/S (I/O) et ainsi j'aurais besoin d'utiliser, par exemple, 2 modules NI-9476 (tâches numériques).
Il faut noter que le cadencement est dit "matériel".
Le problème du cDAQ est sa limitation du nombre de tâches soit 1 tâche pour les DO par exemple (= 1 seul module DO pilotable à la fois).
http://zone.ni.com/reference/en-XX/help/370466AF-01/mxdevconsid/simultaneoustasksmio/
Par conséquent, je vais devoir ajouter en parallèle un nouveau cDAQ et le synchroniser avec le premier par l'intermédiaire du module NI-9469 selon un commercial NI.
Ainsi, ma question est de savoir si la synchronisation est fiable, s’il n’y a pas risque de problème de timing et quelles seraient les particularités en terme de programmation LabVIEW d’une telle architecture ?
Evidemment, je suis preneur de toutes autres informations à ce sujet.
Merci,
10-05-2018 12:29 PM
You can have multiple NI 9476s in the same task. In LabVIEW, just call create channel for each module and make sure they share the same task. A single DO task can control an entire chassis full of modules.
If you want to synchronize two cDAQ-9178s with NI 9469s, it is pretty easy. Once you have the modules connected (connect port 1 on you module to port 0 on the other), you can go into MAX, select one of the cDAQ-9178s or NI 9469s, and select the Synchronization tab. Discover Connections (you can also do this in LabVIEW if you prefer). It should detect the connection between the two chassis. Now you can (almost) treat the two chassis as if they were one. You can create a task that contains channels from both chassis. Note that for digital output, you will have the same issue I mentioned previously--call Create Channel for each module in the task. The modules will share the same sample clock with a very small delay.