LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Update main vi in project

Hi All,

I have a project file created which has network published controls and indicators. The project uses a main vi which I created in my c-drive, I found an error in my main vi which I needed to correct. The error does not relate to any of the network published controls or indicators. When I update the main vi in my c-drive the vi works correctly, when I then deploy in the project my client vi still behaves the same, ie the error is still present like as if it is operating on the old rev of the main vi. Is there a way to rectify this?

Thanks,

David

0 Kudos
Message 1 of 10
(3,495 Views)

Verify that the project is using the same copy that you updated. This sounds like a classic case of a cross linking issue where the project is actually using a different copy of your VI.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 10
(3,489 Views)

Hi Mark,

Thank you for the reply. I am certain that i updated the file which i used when i created the periodic i/o server. When creating the io server for the project does it make a copy of the main vi and store it in another location? What is the correct method to verify what main vi the project is using. I created the client vi's within the project file and they show up in the project tree but my main vi does not show up in the project tree as it was built on the c-drive before i created the project.

David

0 Kudos
Message 3 of 10
(3,471 Views)

In the project click the Files tab. This will show you the location on disk of all of your project items.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 4 of 10
(3,469 Views)

Hi Mark,

My main vi does not show up in the project tree as it was built on the c-drive before i created the project. Should i have imported the main vi it into the project before i created the io server, can i still import it?

David

0 Kudos
Message 5 of 10
(3,464 Views)

Yes, you should add the main VI to the project.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 6 of 10
(3,450 Views)

Wait a minute.  Your main VI is not in your project?  Then how are you building an executable?  This tells me you are using another VI as you main VI.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 7 of 10
(3,438 Views)

Yes, i am using another vi as my main vi. I was not going to build an executable as this is a college project. Does this mean i have to leave it as is, ie not been able to alter the main vi.

Thanks, David

0 Kudos
Message 8 of 10
(3,433 Views)

My best advice for you is to make sure all of the VIs you are using are in your LabVIEW project.  That is the easiest way to make sure you are editing the right VIs.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 9 of 10
(3,423 Views)

Hi Mark,

Thanks for the advise, i will take it on board next time out.

David

0 Kudos
Message 10 of 10
(3,411 Views)