Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Have problem with DAQ wizard

To whom it may concern,
I have built an application in LabView 7 that uses digital and analog outputs (PCI-6024E and PCI 6722). It was working all right but suddenly the following error began appearing. There is no bug un the program but the error crashes the system. If I run the program bit by bit, it crashes when it finds the DAQ wizard. The following message appears:
"
Labview: An exception occured within the external code called by a call library node. This might have corrupted labview`s memory. Save any work to a new location and restatr labview.
VI "jumexipicyt_4.vi" was stopped at node 0XA10 of subVI "DAQmx Create DO Channel (sub).vi"
"
Both DAQ cards work well in the Automation Explorer and with other program
s. The problem appearedo only on this file. I have saved it with different names with no results.
Thank you very much for your help
0 Kudos
Message 1 of 2
(3,200 Views)
mex,

I ran the subVI that was having problems, but was not able to reproduce the exception. After looking through the VIs I think it may be related to memory usage.

In most cases in your VIs the sequence structures can be replaced by just passing the error cluster from one VI to the next to force VIs to execute in a certain order (data flow programming). This will help reduce the amount of memory being used. Another thing I noticed is that you are using a lot of DAQ Assistants in sequence structures inside loops. Your application would benefit a lot from going to the NI-DAQmx VIs. Inside LabVIEW go to Help >> Find Examples and browse to Hardware Input and Output > DAQmx > Digital Generation > Write Dig Chan.vi. This example demonstrates how to use the NI-DA
Qmx VIs for digital output.

Ames
Applications Engineering
National Instruments
0 Kudos
Message 2 of 2
(3,200 Views)