LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NaN output - Urgent

Solved!
Go to solution

I am using DAQc 9172 Chassis and obtaining temperature using NI 9217 and Pressure from NI 9205. I get the output properly from the vi file. I am using Lab view 8.2.1 version. But when I build the executable  (Application.exe) and use it for execution at the standalone PC which already has been installed with only (LV version 8.5)Ni DAQmx and runtime Engine , I get the pressure and temperature values as NaN. 

 

However the application.exe file runs fine in the main PC which has been installed with Labview 8.2.1.

 

Can anyone help me in fixing this problem?

0 Kudos
Message 1 of 8
(4,477 Views)
Have you included the 8.2 runtime engine in your application? Your 8.2 exe file can not use the 8.5 runtime system


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 2 of 8
(4,474 Views)

the CD also contained Runtime Engine for Labview 8.2.1 and I also installed it.  But i get the output as Nan 

0 Kudos
Message 3 of 8
(4,463 Views)

Just curious...

 

Does your application read numeric values from a file (ie: a configuration file)?

 

Did you create an installer?  or do you simply copy the executable to the standalone PC?

 

You can post your development code for people to look at where the problem might originate from..

 

Message 4 of 8
(4,456 Views)
If your target computer have LV8.5 You may do some debugging on this computer. Check with MAX to sort out naming problems with the daq unit
Message Edited by t06afre on 02-09-2009 03:15 PM


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 5 of 8
(4,437 Views)

Thanks for the feedbacks. I still get a NaN

 

I made the script in Labview 8.2.1. I built the executable and then just copied it in the Standalone PC

 

In the Standalone PC, I just installed the device driver Daqmx (version 8.5) with LV runtime engines 8.2, 8.2.1 and Signal express. The MAX program recognizes my 9172 Chassis  and also the NI's 9205 and 9217. The devices passed the sample test and also I can see the signals coming from them when MAX is running.  But when I run the application file which I built in the main PC, it just gives the output as NaN.

 

I tried running the same application.exe file in the main PC, I get values.  I could not figure it out still.

 

 

0 Kudos
Message 6 of 8
(4,406 Views)
Solution
Accepted by andy2281
On the standalone pc, verify that the device numbers are exactly the same as on the developement pc. Also, if you used MAX to create task/custom scale, etc., you would want to export the hardware configuration and import it to the standalone pc.
Message 7 of 8
(4,402 Views)

Thanks a lot Dennis ....It is the device number. In the development PC 4 cDAQ chassis's were installed..and the device number was CDAQ4...and the device name/number in the development PC was CDAQ1. Changed it to CDAQ4 and it works!!..Thank you everyone for the suggestions!!

0 Kudos
Message 8 of 8
(4,339 Views)