LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call Library Function Node 0x0

Hi everybody:
 
Could you please help me out with this problem?
 
My program works fine, but It runs about 2 minutes and gives me an error.  Please see the attached codes and error message.
 
Thank you so much for your help and have a good night.
 
Brian
Download All
0 Kudos
Message 1 of 4
(2,921 Views)

Hi Brian,

      I can't open your VI (LV 7.1 here) though it's very easy to get into trouble with CLF - assuming that's the problem, first thing to do is locate the called-function's prototype, and review/compare it to the prototype shown in the CLF dialog.  You'll want the two prototypes to match byte-for-byte.  If I had $5 for every time I crashed LabVIEW while using CLF, I could afford LV8.0.   Smiley Very Happy

Cheers.

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 2 of 4
(2,912 Views)

hi there

add a "DAQmx Clear task.vi" to the AI Voltage task. you only stop the task, but you should also clear it.

btw: why do you reopen this AI task in each cycle? this will lead to an enormous overhead. if you want to change the AI channels at run time try to use a event structure. 

 

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 3 of 4
(2,904 Views)
Hi Chris:
 
I would like to thank you so much for your advice. My program works well now.
 
Have a good night.
 
Brian
0 Kudos
Message 4 of 4
(2,890 Views)