From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error when trying to execute .exe after attaching an NI-DAQ Channel variable

In my development team, i bind my ni-daqx channel "FT001" to my variable "Variable1" (enable aliasing).

Captura.PNG

Later, after the build of the .exe aplication, i try to execute it on the target computer an i get an aliasing error with the variable.

 

Captura2.PNG

In addition, I have exported the configuration of my NI-MAX from the development team to the target team.

 

Would anyone know how to solve this problem?.

 

Thanks.

0 Kudos
Message 1 of 3
(1,916 Views)

NI DAQmx Aliases don't fit into floating point numbers very well.

 

A string might work but, WHY not CREATE the Task, Channel, Scale, DAQmx things in the Project?

 

For about 3000 words....

Capture.PNG

 

A Very simple project

With a simple Main.vi

snip.png

 

And if we open the PROJECT file in a text editor we see the DAQmx "Stuff"

Capture1.PNG

Yup, All the DAQmx-yish things are right there in that *.lvproj file (you could even edit outside of the LabVIEW IDE-----Don't do that!)

 

So, what happens for "Deployment!"? oh....  This configuration file is written for you in the build output!

Capture2.PNGCapture3.PNGCapture4.PNG


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 3
(1,886 Views)

Hello,

 

Thank you, but I dont want use NI-DAQ Task in my project.

 

I found a solution creating NI-DAQmx Global Virtual Channels and asociating them with my project.

 

Thank you very much anyway.

0 Kudos
Message 3 of 3
(1,866 Views)