NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
AzimJ
Posts: 22
0 Kudos
Accepted Solution

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

[ Edited ]

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

Member
Yupeng J.
Posts: 57
0 Kudos

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

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

Yupeng J.
Member
AzimJ
Posts: 22
0 Kudos

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

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

Member
Yupeng J.
Posts: 57
0 Kudos

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

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.
Member
AzimJ
Posts: 22
0 Kudos

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

[ Edited ]

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.

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page