02-24-2016 02:24 PM
Hello,
When in a project I am working in I get error code -229771 every time I try to run "DAQmx Create Virtual Channel (VI)" This does not happen when I create a vi not in this one project. The problem is this project is very large andit appears impractical to recreate it. It is several hundred vi's. Is there something I have missed in forums and support that would explain this. I created the VI below in the project and outside of the project. In the project the error occurs outside the project it runs with no problems.
Message:
Error -229771 occurred at DAQmx Create Channel (AI-Voltage-Basic).vi:1780003
Possible reason(s):
Internal Software Error occurred in MIG software. Please contact National Instruments Support.
Task Name: _unnamedTask<C>
Any help would be appreciated. Thanks, Matt.
Labview Version: 15.052(32bit)
NI Max Version: 15.0.f0
NI DAQmx Verson: 15
OS: windows 7 service pack 1
PC: Intel Core i7-2600, 8 GB ram
Data Aquistion: NI DAQ USB-6289 Calibrated June 2015
This snippet returns the name of first analog input channel on the first device, Then attempts to create a task for it. Reads from the channel then closes the task.
Error Message
Solved! Go to Solution.
02-25-2016 11:23 AM
Hello mlansbergen,
I have seen this issue once in the past, and the solution at the time was disabling antivirus software. Do you have any antivirus software running on this PC that could be interfering?
02-26-2016 10:06 AM
Kaspersky Is running on my PC. I don't have access to disable it. I will call IT to see if we can disable it and test.
Thanks for the advice.
02-26-2016 11:24 AM
mlansbergen,
Thanks for the update!
Of course! If that doesn't work, keep the forum alive and we'll see what we can find out!
02-26-2016 12:28 PM
Previously I have reinstalled labview and found the same issue as stated in the Subject Title. Then I rebooted several times and still found the issue. I then closed the project and opened a new blank project and had no issues. So I closed the new project and opened the old project and the issue came back.
I have solved it but I don't know why it worked and if someone does I would appreciate the explaination.
I opened the original project that I am having this issue with. I opened NI-MAX at the same time. I selected the "TOOLS" drop down menu, then "RESET CONFIGURATION DATA".
Then the issue was cleared. I no longer recieve that error message when attempting to run daqmx vi's.
Again to be clear I don't know what this did to clear the issue. I can guess from the name of the drop down tool.
Thanks for reading this post. Thank you even more if you are able to explain this to me.
Matthew Lansbergen.
02-26-2016 01:59 PM
Hey Matthew,
Thanks for following up after resolving your issue. I am glad to hear you are not experiencing this issue anymore.
Here is an article that lists possible reasons for this error (although I unfortunately cannot pin down which one is the exact cause in this case).
http://digital.ni.com/public.nsf/allkb/03123D0E8A36C48E862577A4005B6BAA
NOTE: This article specifies the error occurs at the DAQmx Start Task VI. You are not using the Start Task VI, so the task automatically starts at the DAQmx Read function. The error will instead occur in the DAQmx Create Virtual Channel, as you are experiencing in your error.
Hopefully this gives you some insight on what could have gone wrong, and I do apologize there isn't more specific information.
Happy programming!
04-08-2016 10:12 AM
Hi,
I am sorry to write at this post, but so far it looks like not a clear solution was found... Matthew definetly found a workaround, and I would like to know as well the reason of that miracle solving... Why? Becasue I´m experiencing the same problem...
Opening a VI on its own, the DAQmx Create Task.vi works absolutely perfectly. However, at my project, from one day to another, the error -229771 shows up when executing the same VI within the project open. This was working fine and suddenly, it stopped working.
I did try all the solutions suggested by Eric, but it worked only a couple of times the reseting of the MAX database. After some while the DAQmx Create Task.vi subVI generated the error -229771 again.
But still... Closing Labview, and opening the DAQmx Create TAsk.vi on its own, make the DAQmx tasks work fine, with no error... So something must go on at the project which causes the DAQmx VIs to crash. Even the pull down list at this VI does not work and it does not locate channels. Only when opening out of the project.
I think that this has to do with Matthew´s problems... However, it only works fine for a while once I reset the MAX database...
Any other suggestion, Eric?
Thanks!
Dani
04-11-2016 08:37 AM
Hey danidpr,
That is definitely odd behavior for your to be seeing, especially if it was working one day and suddenly stopped. It sounds like something is continually corrupting your MAX data base if resetting works for a short period of time. Your best bet may to repair the install, or force reinstall DAQmx.
To repair the install, follow the steps outlined in this article:
How Do I Uninstall or Repair National Instruments Software?
http://digital.ni.com/public.nsf/allkb/AC6ED75D3D93375686256E8E00245F0D
Here is the procedure for force reinstalling NI Software. This specific document uses NI-VISA as an example. Here you will want to use the folders for DAQmx.
Force Reinstall NI Software From the Command Prompt in Windows
http://digital.ni.com/public.nsf/allkb/ADD22E807D5A12AD862579EC00760F79
Hopefully these help!
04-22-2016 10:37 AM
Ok, thank you for the instructions.
So far, since the last comment, it did not fail again, so I will wait for it to crash again. This is another unresolved mistery unfortunately.
Thank you very much anyway.
Best regards,
Dani
07-13-2022 03:47 PM
check the electrical connections. this problem comes after a voltage variation.
connect your equipment to an uninterruptible power system (ups) that is for motorized machines. and check the consumption specifications of your machines.