Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Task object: get_SynchronizingObject does not have an implementation.

Whenever I try to run a program with a Task object defined, including the examples provided by NI, I get the error:
 

Additional information: Method get_SynchronizingObject in type NationalInstruments.DAQmx.DaqSystem from assembly get_SynchronizingObject does not have an implementation.

Unhandled Exception: System.TypeLoadException: Method get_SynchronizingObject in type NationalInstruments.DAQmx.DaqSystem from assembly get_SynchronizingObject does not have an implementation.

at NationalInstruments.Examples.WriteDigitalChannel.MainForm..ctor()

at NationalInstruments.Examples.WriteDigitalChannel.MainForm.Main() in c:\documents and settings\e90238\my documents\visual studio projects\diotest\mainform.cs:line 360The program '[2396] DIOTest.exe' has exited with code 0 (0x0).

Note that the program never actually reaches the line where I declare the and initialize the Task object, it actually fails in my Main function on the Application.Run line for a Windows app or without ever reaching a line of code according to the debugger in a console app. I couldn't find any mention of this in the forums here or elsewhere. Any ideas on what could cause this?

Carter De Leo

0 Kudos
Message 1 of 4
(4,107 Views)

Hello Carter,

Since you are having problems running the NI Shipping examples, it sounds like you have a problem with your DAQ installation.  Please make sure you have the most recent version of the DAQmx driver (found here).  Once you have the newest driver you might want to try either repairing or upgrading your driver.  When you install the newest driver please make sure to include support for either .NET 2003 and/or .NET 2005 (whichever you are using). 

After upgrading (or reinstalling), if you are still having problems can you post back with more details.  For example, what hardware are you using, what driver version are you using, and what version of Visual Studio are you using?

Regards,

Jesse O.
Applications Engineering
National Instruments

Jesse O. | National Instruments R&D
0 Kudos
Message 2 of 4
(4,091 Views)

Thank you for your response. I tried reinstalling the driver when I returned to work today, but it did not fix my problem. I am using a PCI-6503 Digital IO card, Visual Studio .NET 2003, Framework version 1.0, and NI-NAQmx 8.1. Interestingly, as I started typing this, I realized that your documentation is all written for Framework version 1.1. Thinking this could be the problem, I quickly upgraded to 1.1 and tried to rerun some of the shipped examples. They failed on the line where the first NI object was declared saying "this application cannot run using the active version of the Microsoft .NET runtime". Not really a step forward. It seems like I must be missing something in the installation. Do any of these problems sound familiar? Do I need to be targeting Framework version 1.1, or does it not matter terribly?

Carter De Leo

0 Kudos
Message 3 of 4
(4,075 Views)
Hello Carter,

I think you found the problem.  If you look here, you will see that you cannot target .NET framework 1.0 with DAQmx.  DAQmx requires .NET 1.1.  Can you target framwork 1.1 and see if you have the same problems?

Regards,

Jesse O.
Applications Engineering
National Instruments
Jesse O. | National Instruments R&D
0 Kudos
Message 4 of 4
(4,050 Views)