LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Identify component on screen by typing name of component

Hi Guys,
 
I am using CVI8.5. I want to load the layout of schematic components on computer screen. When I type e.g. R1 on keyboard I would want the Resistor R1 on the screen to blink. The question is:
1.   Which software would be more appropriate to use to accomplish this task?
2.   What other necessary tools are required?
3.   What are the steps required to get this project done?
Your help in pointing me in the right direction would be very much appreciated.
Thank you in advance.
 
Robert
0 Kudos
Message 1 of 2
(2,621 Views)

Hello Robert,

I think what you are asking is very possible in both LabWindows/CVI and LabVIEW. Since they are very similar the process to create this program should be similar in both environments so you can use whichever you are more comfortable with.  Both programs should have everything you need for this task, so no outside tools should be needed.  Since you posted in the CVI forms I will address it from this angle.

I presume the schematics you speak of will be based on some image files, which you can load these images onto a canvas in CVI.  On that canvas you could use the mouse to highlight areas, in various basic shapes, and then have a popup appear which would allow you to associate a name to this shape.  This would allow you to draw shapes on the canvas around objects to highlight them.  You could then store this data in a dynamic array to hold all objects drawn in this session.  You then want another array to hold the objects currently drawn on the canvas so you can have multiple drawn objects.  Once an object is stored, you can use a textbox to type in the names an search the storage array to find the corresponding shape and re-draw it on the canvas.  Therefore managing the objects would only require simple array functions.  Also you may want to have the ability to write this data (the arrays) to disk so you can reload this data later.  There is an example that ships with CVI, search for 'canvas' in Example Finder, that should help illustrate the basic use of the canvas control. 

The above process should give you something similar to what you described, but you may have some specific requirements that might require changes to this outline. If you post those details we might be able to make more suggestions.  I hope this will give you a good starting point.

John B.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,596 Views)