LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I am getting an exception error after my program has been running for several minutes.

I have a labview program that seems to work fine for about 10 minutes of data collection. After that, I get this error. ( An exception occured within the external code called by a Call Library Node. This may have corrupted LabViews memory. You should save any work to a new location and restart LabView. VI NAME HERE was stopped at node 0X2380 of subVI "AI Single Scan (single-point waveform).vi"
This one is driving me crazy. I have several AI Single Scan VI's in my program. Any suggestions would be greatly appreciated.

ricky
0 Kudos
Message 1 of 3
(2,723 Views)
Hi ricky,

I would use highlight execution (light bulb on LabVIEW toolbar) to see exactly what AI Single Scan VI is causing the error. You could also use breakpoints on each wire right before the AI Single Scan VI is called so that you can turn highlight execution on to see if the call generates an error.

Another suggestion is to create a new VI and copy and paste all the VIs from your current VI to this new VI. This might correct a problem if the VI is corrupt.

Finally, you could use the AI Config, AI Start, AI Read VIs instead of the AI Single Scan. I doubt there is something wrong with the VI, it is morelikely a corrupt VI. Recreating the VI will morelikely fix this problem.

Anyway, hope that helps. Have a good day.

Ron
0 Kudos
Message 2 of 3
(2,723 Views)
Hi Ricky,

I did some investigating and I think there might be an issue when using AI Single Scan in a loop with a waveform chart/graph and the "waveform" datatype. My suggestion is to change the "polymorphic" type of the AI Single Scan to Scaled Array. You can do this by right-clicking on the VI and selecting "Select Type".

Another option would be to use the other analog input functions (AI Config, AI Start, AI Read AI Clear etc.) which are known to work well with the waveform datatype. Anyway, let me know if that helps your issue. Have a good day.

Ron
Applications Engineer
National Instruments
0 Kudos
Message 3 of 3
(2,723 Views)