12-12-2011 09:28 AM
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
\
12-12-2011 10:37 AM
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.
12-12-2011 02:23 PM
@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.
12-12-2011 07:47 PM
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.
12-12-2011 08:35 PM
Put in a DAQmx control that lets you choose the board and channel instead of hard coding a device/channel.
12-12-2011 10:21 PM
I have used DAQmx control to write the analog signal . l i have not hardcode the device & channel .but still i am facing problem.
12-12-2011 11:03 PM
Exactly what problem are you having now?
Post your VI.
12-13-2011 12:17 AM
Hi
i have attached the vi
12-13-2011 08:31 AM
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.
12-13-2011 09:55 AM
Please send some vi ,that uses a DAQmx control..