LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cDAQ not running with executable/installer

Solved!
Go to solution

I've built a VI that runs without issue on my host computer (laptop running Win7, LabVIEW 2009)  I'm installing onto a Windows XP machine.  Install goes fine, but when the target computer is running the cDAQ doesn't run.  Just sits there waiting.  I have other hardware (MCC USB-ERB24 relay board) that works as expected, just not the cDAQ.  The "Active" light never even flickers.  Thoughts anyone? 

Thanks!

C

0 Kudos
Message 1 of 26
(3,466 Views)

chuggins1434,

 

Make sure that you installed DAQmx Runtime on the target PC.  If you have defined any tasks or channels in MAX, you will need to export them to the target pc as well. 

0 Kudos
Message 2 of 26
(3,452 Views)

I believe I am... but just to verify, here's what I'm doing.

 

Once I've confirmed the VI is working properly when connected to my host computer, I go in and build the application.  Once that is complete I build the installer, including the following steps...

 

In the Project Explorer, I select Build Specifications/New/Installer.

 

This opens the Installer Properties box..

Product Infomation tab I leave as is.

Source Files tab, I select "My Application" and add it to the Destination View

Source File Settings and Shortcuts I leave as is.

Additional Installers tab, I'm checking all three of the NI-DAQmx instruments (Application Development Support, Core Runtime 9.0.2, and the MAX Configuration Support 9.0.2) and leaving the 2009 SP1 Run-Time Engine checked.  For a total of four items checked.

Dialog Info and Registry tabs I'm leaving as is.

Hardware Configuration tab, I'm checking the box to "Include hardware configuration from MAX", select the Configure button.  This opens the Confiuration Export Wizard, I leave all of the settings on the first page as is, hit Next. On the Export Items page I select the unit needed for this application under Devices and Interfaces and select Export.  I save the report and select Finish.  Back at the Hardware Config tab, I check the Launch MAX Config Import Wizard after installation box.

Advanced tab I leave as is.

Select Build and let it do its thing.

 

Once it's built I transfer the whole file from C:builds to a jump drive, copy it to my target computer and install it.  Restart the computer when prompted and try and run the application... again, still no joy on the cDAQ. 

 

Am I missing a step?  Maybe something I've done in one of my previous attempts?  I did initally install the 2010 RTE, but one of the windows that popped up specifically said I needed the 2009 RTE so I downloaded that and installed it.  Even though it's installing the 2009 RTE during the install maybe something from the 2010 version is interfering??   Thoughts anyone?

Thanks!

Chad

 

0 Kudos
Message 3 of 26
(3,442 Views)

Can you see the cDAQ from MAX?

0 Kudos
Message 4 of 26
(3,431 Views)

The target computer sees the cDAQ in MAX, no problem.  Ran self test on each part, each one passes every time.  Tried running the application again, still nothing from the cDAQ.  I am talking to it through a USB hub, but that's never been an issue.

0 Kudos
Message 5 of 26
(3,428 Views)

Is your executable generating any error messages?

0 Kudos
Message 6 of 26
(3,426 Views)

Nothing.  I'll switch my relays all day, but never take a reading from the cDAQ. 

0 Kudos
Message 7 of 26
(3,424 Views)

Can you post your code?

0 Kudos
Message 8 of 26
(3,422 Views)

Should be attached... 

 

Simple enough...

While loop running at 20hz. 

 

Two state engines...

"Blower Controls"...

When the BC switch is turned  on , a pair of PID loops are regulating a pair of 0-10VDC signals to ramp up/down two blowers based on feed back from a pressure sensor.  Stage1 ramps first motor up to 80%, then Stage2 holds that motor and starts ramping up the second motor.  Once both motors are at 80%, then ramps them up simultaneously to max.  There's a LED on the front panel that tells me when they are both at 100%.

 

"Sidewall Throw Controls"...

This is regulating airflow to a sidewall plenum.  Currently it only runs in two states, Run or Stopped, the Closing state is a work in progress that I haven't finished yet. (I have pneumatic valves on most of my supply systems that will open/close that leg of the system.  This particular leg doesn't have that feature and therefore I must close it with the control actuator.  The Closing state didn't work correctly when I first built it and I haven't had time to finish messing with it yet.)

 

..and two Case Structures..

"Test Drop Controls"...

Pretty much same type of flow controls that are either running or not.  The Manual/Auto button allows me to "bump" my flow control actuators if needed.

 

"Demo Flow Controls"...

Again, more of the same, flow controls trying to dial in the target flow.  All of the extra buttons are opening/closing relays that in turn open/close pneumatic valves.

 

In addition to this there are other outputs for 0-10VDC signals that are controlling electronic water valves, manually currently.  ..and proportional electric heaters.

 

I've used the basic parts of this on several different sets of controls and have never had an issue when running off of my host machine.  This is the first time I've tried to make a exe/installer in 2009.  So I may be missing something.  Thoughts are much appreciated!

Thanks,

Chad

0 Kudos
Message 9 of 26
(3,418 Views)

Have you tried testing using test panel in MAX?

0 Kudos
Message 10 of 26
(3,407 Views)