Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I distribute my Measurement appl. to another machine

Hi
Can someone please help me with this problem or point me in some direction.
The problem is when I try to run an dotnet application on another machine I get the following error message.
 
Application has generated an exception that could not be handled.
 
ProcessID....
 
The machine i want to run the program on only has MAX installed. The NiDaq card I use works with MAX.
 
I have tried to install the program on another machine without MAX to see if the errormessage changed, but I got exactly the same errormessage.
 
I have also tried using the guide

How Do I Distribute a .NET Application that Contains Measurement Studio Controls?

 
But that didn't work either.
 
Just to be sure I also included the CWUI, this without any notable change.
 
Can anyone please point me in some direction?
 
0 Kudos
Message 1 of 8
(3,394 Views)
Hi
I don't think this problem has something to do with MAX. It looks like there is a merge module missing in your setup project.
Maybe this forum link can help you.
Can you also post the entire error message and maybe the app. you are trying to build?
-----------------------------------------------------
Dennis Morini
District Sales Manager
National Instruments Denmark
http://www.ni.com/ask
0 Kudos
Message 2 of 8
(3,381 Views)

Hi Morini

It is exactly the same problem! The error message is also exactly the same. I have also tried to include the CWUI_OCX.msm. I have attached a screen dump of the solution explorer. 

It is actually easier for you to get  the "testproject"  in another way. Because this was an attempt to make a "hello World" on the real board I chose an application I was sure of would not give me any trouble (or so I thought 🙂 ) So I used one of Nationals own. It is placed here if you have access to a machine with MS8.0 or later.

C:\Program Files\National Instruments\MeasurementStudioVS2003\DotNET\Examples\DAQmx\Digital\Generate Values\WriteDigChan\Cs

By the way I use MS8.0 to build the project.  

0 Kudos
Message 3 of 8
(3,378 Views)
Hi, I have builded an app. from the exsample and it runs fine on my computer. The solution expolere looks identical compared with the attached .doc.
You should make sure that you have the same DAQ-card and NI-DAQmx version installed on your target machine.
-----------------------------------------------------
Dennis Morini
District Sales Manager
National Instruments Denmark
http://www.ni.com/ask
0 Kudos
Message 4 of 8
(3,371 Views)

Hi I don't have the same MAX

the build version is 4.0.3.3003 on the machine I build the software on and the version on the machine i try to run it on is 4.0.0.3010.

There is also another difference. On the machine where the build was made I was using a simulated board. On the other I am using the real board. But this shouldn't be the problem.

If the first thing is the problem is an easy way to "pack" the right dependency into the other code or is it better that I "upgrade" to the right MAX version?

 

0 Kudos
Message 5 of 8
(3,367 Views)
Hi, Try to install Measurement Studio 8.0 on your target PC, it should solve the problem.
-----------------------------------------------------
Dennis Morini
District Sales Manager
National Instruments Denmark
http://www.ni.com/ask
0 Kudos
Message 6 of 8
(3,359 Views)

Hi Dennis

It seems that the Daqmx driver or MAX version could have caused the trouble. I first installed VS2003, then MS8. That didn't help either. when I ran the application I got an System.IO.Fileloadexception error.

I also had a problem with missing daqmx in visualstudio after installing MS 8 this disappeard when I installed the driver that was shipped with the MS8 package.

When the (MAX,daqmx and MS8) where the same I could build a project on one computer and run it on another without any problems.

So I think it would work if MAX and Daqmx are the same on both machines.

 

 

 

 

0 Kudos
Message 7 of 8
(3,340 Views)

Hi Pia,

Yes you are right about your will need at least the same DAQmx version on both computer to get it running.

-----------------------------------------------------
Dennis Morini
District Sales Manager
National Instruments Denmark
http://www.ni.com/ask
0 Kudos
Message 8 of 8
(3,313 Views)