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
t_houston
Posts: 28
0 Kudos
Accepted Solution

Link to tutorial on VITs

I've been programming in LV for a couple of decades but have run across an new area I have had zero exposure to.  I am having to fix/support an application written to handle multiple data streams across a network.  It uses VITs.  Can someone point me to a reasonable tutorial/description of VITs and how you set them up, etc?

 

I am a bit stumped since the code has zero documentation.  There is a queue (been there and done that) but it appears that they are pushing a cluster into it and magically there is another instance of this VIT.  An example or link would do wonders.  I've done a bit of searching but maybe I'm not using the correct magic incantation (key words)

 

Thanks

Trusted Enthusiast
mikeporter
Posts: 3,823
0 Kudos

Re: Link to tutorial on VITs

In terms of incantations I have found placing the entrails of an unspotted goat on the keyboard at moon-rise to be highly effective...

But seriously though folks... VITs are just VIs with a different file extension. The key difference is that when one is opened (manually or programatically) you get a copy of the routine in memory. Open it 10 times and you get 10 copies of the same code.
Now to your specific problem... Look at the code that is dequeuing the cluster. That is where to start looking for the code calling the VITs.

Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

mlportersr@gmail.com

"Safe? Who said anything about 'safe'? 'Course he's not safe - but he is good..."
Active Participant
Akiel
Posts: 299
0 Kudos

Re: Link to tutorial on VITs

aah thats were ive been going wrong Ive been waiting for a moonless night....

Please remember to accept any solutions and give kudos, Thanks


LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7
Member
t_houston
Posts: 28
0 Kudos

Re: Link to tutorial on VITs

Thanks for the info.  The problem is that I/we can't find anywhere that the queue is read and the vi in question is launched.  There must be another vi running that shares the queue but we can't seem to find where or how it is launched.  It has to be there because the vi gets launched.  I love taking over spagetti code with zero comments or documentation.  This is one HUGE convoluted disaster.

 

Due to not having worked with VITs before, I was wondering if there was some feature I was not aware of that would allow you to automatically fire one off from some type of wierd queue operation. It appears to be quite simple.......if you can find the code. 

Trusted Enthusiast
mikeporter
Posts: 3,823
0 Kudos

Re: Link to tutorial on VITs

Well, the queue has to be named so you could try doing a search for the queue name -- or a search on the dequeue function or open VI reference function.

Mike...

PS: Is houston you location or name?
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

mlportersr@gmail.com

"Safe? Who said anything about 'safe'? 'Course he's not safe - but he is good..."
Trusted Enthusiast
mikeporter
Posts: 3,823
0 Kudos

Re: Link to tutorial on VITs

Also, if the cluster is a typedef you could look for all the places it occurs.

Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

mlportersr@gmail.com

"Safe? Who said anything about 'safe'? 'Course he's not safe - but he is good..."
Member
thouston@iccnexergy.com
Posts: 19
0 Kudos

Re: Link to tutorial on VITs

I'm a Texas expatriot but that is my name. 

 

I found the code.  The app was written by a consulting company and apparently they wanted to come back to do upgrades because they tried to make things as difficult to figure out as possible.  They hid the launch VI's behind a white graphic so they did not show up.  They obfuscated everything.as much as possible.  I finally found the code after doing a bunch of find operations.

 

 

Trusted Enthusiast
mikeporter
Posts: 3,823
0 Kudos

Re: Link to tutorial on VITs

Would it be impolite to ask who the schmucks were that wrote that mess? You might consider it a public service...

Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

mlportersr@gmail.com

"Safe? Who said anything about 'safe'? 'Course he's not safe - but he is good..."
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