<span style="font-family: 'Times New Roman'; font-size: medium;">Je souhaite développer une partie acquisition de données (DAQ) en utilisant une Dll créée avec LabVIEW.</span>
<div style="min-height: 1em; font-family: 'Times New Roman'; font-size: medium;">Je commence au plus simple, en essayant d'utiliser une fonction d'addition de 2 entiers, sans succès :</div>
<div style="min-height: 1em; font-family: 'Times New Roman'; font-size: medium;">le chargement de la bibliothèque semble ok (link)</div>
<div style="min-height: 1em; font-family: 'Times New Roman'; font-size: medium;">mais blocage au niveau de l'appel de la fonction (call) </div>
<div style="min-height: 1em; font-family: 'Times New Roman'; font-size: medium;">le protype de ma fonction est :</div>
<div style="min-height: 1em; font-family: 'Times New Roman'; font-size: medium;">
<p class="MsoPlainText"><span style="font-family: 'Courier New';">void __cdecl AddInt(int32_t *a, int32_t *b, int32_t *res);</span></p>
</div>
<div style="min-height: 1em; font-family: 'Times New Roman'; font-size: medium;"> </div>
<div style="min-height: 1em; font-family: 'Times New Roman'; font-size: medium;">si quelqu'un a déjà fait cette manip? </div>
<div style="min-height: 1em; font-family: 'Times New Roman'; font-size: medium;">peut-être est-ce un simple problème de paramétrage de la fonction call.</div>
<div style="min-height: 1em; font-family: 'Times New Roman'; font-size: medium;"> </div>
<div style="min-height: 1em; font-family: 'Times New Roman'; font-size: medium;">exemples de retours :</div>
<div style="min-height: 1em; font-family: 'Times New Roman'; font-size: medium;">1°)</div>
<div style="min-height: 1em; font-family: 'Times New Roman'; font-size: medium;">
<div style="min-height: 1em;">-->call('AddInt',a,b,res)</div>
<div style="min-height: 1em;">Warning !!!</div>
<div style="min-height: 1em;">Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION)</div>
<div style="min-height: 1em;">with "call" function.</div>
<div style="min-height: 1em;">Save your data and restart Scilab.</div>
<div style="min-height: 1em;"> ans =</div>
<div style="min-height: 1em;"> </div>
<div style="min-height: 1em;"> 5. </div>
<div style="min-height: 1em;"> </div>
<div style="min-height: 1em;">Attention: problème avec la pile ... nettoyé.</div>
</div>
<div style="min-height: 1em; font-family: 'Times New Roman'; font-size: medium;"> </div>
<div style="min-height: 1em; font-family: 'Times New Roman'; font-size: medium;">2°)</div>
<div style="min-height: 1em; font-family: 'Times New Roman'; font-size: medium;">
<div style="min-height: 1em;">-->call('AddInt',a,1,"i",b,2,"i",res,3,"i","out",[1,1],4,"i")</div>
<div style="min-height: 1em;"> ans =</div>
<div style="min-height: 1em;"> </div>
<div style="min-height: 1em;"> - 11. </div>
<div style="min-height: 1em;"> le résultat n'est pas correct (-11 tout le temps, quels que soient a et b)</div>
</div>
<div style="min-height: 1em; font-family: 'Times New Roman'; font-size: medium;"> </div>
<div style="min-height: 1em; font-family: 'Times New Roman'; font-size: medium;">merci d'avance</div>
<div style="min-height: 1em; font-family: 'Times New Roman'; font-size: medium;">TR</div>