LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.exe with nidaq

I have created some tasks in NIdaqmx and I was wondering when I build this into an executable will I have to rebuild these tasks on the target machine or is there a more simple way. also is there a way to install Max when I install the exexutable so that the end user will not have to do it manually.Any help will be appreciated because I have never built an application that is going outside the building. and if you think of anything else i might need to know please let me know.

Thanks in advance

Joe



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 1 of 6
(3,044 Views)
you can include a batch file to run with your installation that is linked to a support file which would be the MAX installer. If you wanna get really tricky you can install things silently. NI has some information on this. YOu also can utilize the create task function under the Daqmx palette >>advanced task options palette. You could also use the create global channel vi and combine the two functions to allow programmatic configuration. This should help you out. You can programmatically create your tasks. hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 2 of 6
(3,044 Views)
I could not find the create global channel VI. where is it. Do you have an example for me to look at.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 3 of 6
(3,044 Views)
It is actually named create virtual channel. sorry. it is under the daqmx palette. It is the first function in the top row. I unfortuneltly don't have an example but you can look at the LV examples and maybe it will help.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 4 of 6
(3,044 Views)
Joe,

If you are using the "DaqMX Task Name Constant", then you can right click on it, go to generate code and then select Configuration. This will create a Sub-VI which will contain all of the code necessary with the settings that you have created. This will still assume that you have MAX installed and the same cards in your other computers, but this would be easier than doing it manually.

Adam B.
Applications Engineer
National Instruments
Message 5 of 6
(3,044 Views)
Thanks Adam for your help.But I have another question. will I have to clear the task at the end of my program or is something that will happen automatically. The reason that I ask is because after I did what you said (with a name associated with it) I opened up MAX and did not see the name there. Maybe it is not supposed to be there but I'm just making sure and trying to think of all the potential problems.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 6 of 6
(3,044 Views)