LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does opening a VI inside a project break it with regard to DAQ-MX communications?

Solved!
Go to solution

Recently I imported a set of VI's into a Labview project (.LVPROJ file).  Now when I open and run the main VI from within the project my code that generates a signal using DAQ-MX vi's is broken (see error dialog below). Yet when I run the same VI from outside the project the VI works as expected.

 

Any ideas what is going on here?

daqmx-error.PNG

0 Kudos
Message 1 of 5
(2,594 Views)

Your error could probably be fixed following the instructions @ Why Do I Get Error 200378 When Running a Stand Alone Application?

Yupeng J.
0 Kudos
Message 2 of 5
(2,579 Views)

Thanks for finding that article. Following the advice on the page why do I get Error 200378, I added a custom scale to the project but then my app fails to run with the error -200356 cannot create scale because my VI creates the scale programmtically using "DAQmx Create Scale.vi". So, I don't think that helps.

 

createScaleError.PNG

0 Kudos
Message 3 of 5
(2,566 Views)
Solution
Accepted by topic author AzimJ

you need to modify the existing scale and overwrite it since you cannot create a scale with the same name

Here is a link to an example that shows how to open an existing scale and modify it:
Developer Zone Example: Change DAQmx scales in LabVIEW and save the changed scales to MAX

 

Please let me know if it works

Yupeng J.
0 Kudos
Message 4 of 5
(2,559 Views)

I guess I will give up on using projects except when I need to have to VI's with the same name open at the same time.  One odd thing is that if I run the VI outside of a project close it then open the project and rerun the VI the error dissappears?!

 

Anyawy, thanks you for your help.

0 Kudos
Message 5 of 5
(2,555 Views)