LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

16777217 Error at unidentified Location

The attached VI returns an Error 16777217 at unidentifed loaction.

The code is designed to perform the following steps:
1. AI read from one channel
2. Calculate the mean and 3*StDev of waveform.
3. Use these statictics to define a window trigger.
4. When trig met, Read 500 samples of data and plot.
5. Calculate the StDEv of waveform.
6. When the StDev is less than a selected tolerance, stop collecting data.

The hardware set up is a manually adjusted DC power supply attached to the channel on a PCI-MIO-16E-4 with SCB-68 connection box.

Steps 1-5 run smoothly. When the power supply stops varying and the StDev decreases the program breaks and displays the above error.

I would appreciate any help in identifyi
ng the source of the problem or an easier implementation of this process.

Brian Wells
Space Power Institute
Auburn University, AL
0 Kudos
Message 1 of 2
(3,062 Views)
Brian,

The program works fine...you are getting error 16777217 because the Task ID coming out of the AI Clear does not need to be connected to the Error Handler VI. The error handler is expecting a number different to 0, which corresponds to a certain error and therefore one error message is displayed.

All you have to do is disconnect the Task ID from the Error Handler VI. For displaying errors (in this case), it is only necessary to connect the error out of the AI Clear to the error in of the Error Handler.

Good luck with your project.
0 Kudos
Message 2 of 2
(3,062 Views)