LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Building DAQmx 7.1 application without hardware

Hi,

Just wondering if anyone has been in this situation, and perhaps solved
it...

I am working on a 7.1 application that uses DAQmx. I do the work on my
laptop, without the hardware. It would be nice if I could create an
executable on that laptop. But when I try, the executable fails to work on
the target computers. One of them has LabVIEW installed, but we are
geographically separated.

When I start the created executable on a target I get (it does work on the
laptop):
+++++++++++++++
An error occurred loading VI 'DAQmx Read(Analog 2D DBL NChan NSamp).vi'.
Labview load error code 21: An external subroutine required for execution
could not be found

An error occurred loading VI 'DAQmx Read(Analog 1D DBL NChan NSamp).vi'.
Labview load error code 21: An external subroutine required for execution
could not be found

Missing subVI DAQmx Read(Analog 2D DBL NChan NSamp).vi in VI Aquire Motor
Data.vi
Missing subVI DAQmx Read(Analog 2D DBL NChan NSamp).vi in VI Aquire Motor
Data.vi
Missing subVI DAQmx Read(Analog 1D DBL NChan NSamp).vi in VI Hardware
Control.vi
+++++++++++++++

Now this is probably a problem with DAQmx versions. I have 7.1, 8.2.1 and
8.5 on my laptop, while the other pc only has 7.1 runtime engine.

I could live with dynamically loaded external libraries, but I am not sure
how that will turn out.

Does anyone have other ideas, or experiance with my solution?

Regards,

Wiebe.


0 Kudos
Message 1 of 4
(2,911 Views)
Some more information..

The mentioned messages are the result of a missing external library:
nilvaiu.dll

This is why I suspect a version conflict.

Regards,

Wiebe.


0 Kudos
Message 2 of 4
(2,905 Views)
When you say 'I have 7.1, 8.2.1 and 8.5 on my laptop, while the other pc only has 7.1 runtime engine.', are you talking about the LabVIEW version? If so, then what version of DAQmx do you have installed on the laptop and did you install the same version on the other pc? The error messages imply that you don't have DAQmx installed at all on it. Did you install MAX on the other pc and can you use that to verify DAQmx is there and working?
0 Kudos
Message 3 of 4
(2,905 Views)

"Dennis Knutson" <x@no.email> wrote in message
news:1229008206374-822648@exchange.ni.com...
> When you say 'I have 7.1, 8.2.1 and 8.5 on my laptop, while the other pc
only has 7.1 runtime engine.', are you talking about the LabVIEW version? If
so, then what version of DAQmx do you have installed on the laptop

Dennis, thanks for the reply.

Yes, I have LV version 7.1, 8.2.1 and 8.5 on my laptop.

I can't really check the version of DAQmx on the other PC, but I have
version 4.4.1. This version is copyrighted 2007, and I'm sure the remote
PC's are installed around 2002. So they have an older version of DAQmx for
sure.

> and did you install the same version on the other pc?

No. We had lots of trouble to get it working, and I really don't want to
install new a new version, unless it is absolutely needed.

> The error messages imply that you don't have DAQmx installed at all on it.

You are right. I've checked the DAQmx VI's from the remote system, and they
use the same dll, nilvaiu.dll. So now it is an even greater mystery, thanks!
Just kidding... The two vi's are 100% identical.

Why would a vi be able to find the dll, and a natively build exe also, while
my exe can't find it?

>Did you install MAX on the other pc and can you use that to verify DAQmx is
there and working?

Yes. I can actually run the LabVIEW application on that PC without any
problems. I can also build an executable on the remote pc and this exe runs
fine on all the remote PC's. I can also run Measurement explorer without
problems.


I do recall a project where I explicitly add DAQmx vi's to my project as
dynamic vi's. I did not know why I ever did that, but it might be related.

Thanks again,

Wiebe.



0 Kudos
Message 4 of 4
(2,893 Views)