LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

exe file created in one pc is not running in other pc

Hi

i have installed labview 2010 in one pc & 2011 in anther pc & pci-6713  board in both pc. i have created  task & assign to analog channel 0 (i.e.. Dev0\a0) &  created application.exe.But when i try run application.exe in other pc it has same pci-6713 board.(dev4\a0).application.exe is running but not generating analog signal on channel 0 (Dev4\a0).

please help me

\

0 Kudos
Message 1 of 11
(3,361 Views)

If you have hardwired the resource input in the block diagram, it wont work as its dev0 on the first one and dev4 on the second pc. If thats your problem, possible solutions:

 

rename dev4 to dev0

find the resource and assign the device name programmatically

export max settings from the first pc and import it to the other.

 

hope this helps.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 2 of 11
(3,350 Views)

@9019745346 wrote:

Hi

i have installed labview 2010 in one pc & 2011 in anther pc & pci-6713  board in both pc. i have created  task & assign to analog channel 0 (i.e.. Dev0\a0) &  created application.exe.But when i try run application.exe in other pc it has same pci-6713 board.(dev4\a0).application.exe is running but not generating analog signal on channel 0 (Dev4\a0).

please help me

\


In your application.exe are you trapping ALL errors and displaying them someway? What if any errors are you seeing or you don't know if any errors are being thrown becase you are not trapping on them in your .exe. Errors are handled differently inside an exe.

 

Just to make sure - application.exe created on system with LabVIEW 2010 will need LabVIEW 2010 runtime engine installed on the other system with LabVIEW 2011 and vise versa. But you did say application.exe is running so I assume you have the run time engines installed.

 

Then there is the "dev0" vs "dev4". How are you referencing (or addressing) your pci-6713 devices on each machine when you create your task?

Can your application.exe use "dev0" on one systems and then know to use "dev4" on the other?

One way is to in MAX set the alias of the 6713 to the same on both systems.

Omar
Message 3 of 11
(3,336 Views)

 

hi

Thanks for your valuable suggestion question is if both system having 2 pci-6713 board  then i created .exe by using analog channel 0(a0) of one pci-6713 .If i  run this application in other pc how can it decide the which  board analog channel 0.

0 Kudos
Message 4 of 11
(3,322 Views)

Put in a DAQmx control that lets you choose the board and channel instead of hard coding a device/channel.

Message 5 of 11
(3,317 Views)

I have used DAQmx control to write the analog signal . l i  have not hardcode the device & channel .but still i am facing problem.

0 Kudos
Message 6 of 11
(3,310 Views)

Exactly what problem are you having now?

 

Post your VI.

0 Kudos
Message 7 of 11
(3,308 Views)

Hi

i have attached the vi

 

 

0 Kudos
Message 8 of 11
(3,300 Views)

You didn't say what problem you are still having.

 

Your VI just consists of a DAQmx write, a numeric control, and a DAQmx task constant.  You said you have a DAQmx control.  Your constant is hardcoded to the task name "MyVoltageOutChannel".

 

If you want to change what channels that refers to, you will either need to change the channels that make up that task by going to MAX.  Or you need to turn that constant into a control so that you can browse for and select your tasks or channels when you run your executable.

0 Kudos
Message 9 of 11
(3,275 Views)

Please send some vi ,that uses a DAQmx control..

 

0 Kudos
Message 10 of 11
(3,264 Views)