LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Distributed LabVIEW executable won't work!

Hi,
I have two computers, computer A has the LabVIEW 7.0 Express for program development, computer B doesn't has the LabVIEW program installed and only used to run the LabVIEW executable. I have a PCI-6036E daq card and sc-2345 with several SCC modules. NI-DAQ 7.3 driver is installed on both computers. I first install the hardware on computer A and developed a simple LabVIEW program using NI-DAQmx, compile it to an executable and runs fine on computer A. Now I transfer the hardware to computer B, create the DAQmx "tasks" using MAX and make sure they work fine on the test panel. Then I install the executable to computer B using the installer compiled on computer A, which installed all the resource files and run-time, etc. The executable starts fine on computer B, the problem is it doesn't seem to communicate with the daq card. The relay is not close or open, no data is acquired, etc. I also tried to include the hardware configuration option in the compilation, where the exact NI-DAQmx tasks were cloned from computer A to B. Still, the executable can not comunicate with the daq card. Any suggestions?

Thanks,

Xiaofei Jiang
0 Kudos
Message 1 of 3
(3,049 Views)
Hello Xiaofei Jiang,

It sounds like you are doing everything correct, but for something things still are not working out. I have four suggestions for you.

1) Confirm that you are correctly using error handling in your VI. You need to make sure that if an error would happen to occur when runnning on the application machine that it would be appropriately notified.

2) Take a look through your code and confirm that no where in there are you hardcoding a path or a number that might not be the same on a development machine as a deployment machine. This might include paths to files or device numbers or additional information.

3) Instead of building an executable out of your code, open the example finder and open up Cont Acq&Graph Voltage-Int Clk.vi (assuming that you are doing some type of AI). Build this into an executable and see if this works out for you.

4) Try to run the deployment application on a different machine other than the one you are currently using, and one that has the same version of the LabVIEW RTE and NI-DAQ installed.

Post back if you have some additional information. Good luck.

Jared A
0 Kudos
Message 2 of 3
(2,998 Views)
Hi Jared,

Thank you for your answer. I just figure out the problem: I choose the wrong type of SC-2345 on the deployment computer. I deleted and re-created it in MAX and everything is working now.

Thanks,

Xiaofei Jiang
0 Kudos
Message 3 of 3
(2,993 Views)