National Instruments' LabVIEW graphical programming language fulfills many of the requirements for performing various laboratory experiments. The software's versatility is its most important quality. This is evident not only in the development of executable routines, which are called virtual instruments, but also in the ability to import and incorporate data files from peripheral hardware into these routines. Some file types are trickier to access than others. For example, files with a .cci extension are encoded using a communications protocol designed for use in fax machines. Importing a graph or screen from a .cci file and making it visible on the LabVIEW front panel might not be immediately intuitive, but LabVIEW's versatility can make this file usable, with the aid of the NI-IMAQ Vision software module.
Instructions
1. Start LabVIEW. On the top menu, left-click on the "File" tab to access the file menu. Select the "Create new .vi" option to create a blank virtual instrument. This opens two screens. The gray screen, or Front Panel, allows users to interface with an active program through buttons, switches, controls and indicators. The white screen, or Wiring Diagram, allows programmers to place and position icons, which contain previously established coded routines.
Instructions
1. Start LabVIEW. On the top menu, left-click on the "File" tab to access the file menu. Select the "Create new .vi" option to create a blank virtual instrument. This opens two screens. The gray screen, or Front Panel, allows users to interface with an active program through buttons, switches, controls and indicators. The white screen, or Wiring Diagram, allows programmers to place and position icons, which contain previously established coded routines.
2. Position the cursor on any empty portion of the Wiring Diagram screen. Right click to access LabVIEW's toolbox; this is where you access the icon library. Select the "For Loop" and place this on the wiring diagram. Locate the green box near the lower right-hand corner inside the loop. This box contains the loop's properties. Right click on this box. Select the "Create Control" option. This places a Control marker on the Wiring Diagram and an "Off Button" on the Front Panel. When the program is running, the user can use this button to end the program.
3. Position the cursor on the Wiring Diagram screen outside the For Loop. Right click to access the LabVIEW toolbox. Select the "IMAQ initialization routine" icon to place it on the Wiring Diagram. Right click on the "IMAQ initialization" icon to access its properties. Set the constant to read information from a file directly to the clipboard.
3. Position the cursor on the Wiring Diagram screen outside the For Loop. Right click to access the LabVIEW toolbox. Select the "IMAQ initialization routine" icon to place it on the Wiring Diagram. Right click on the "IMAQ initialization" icon to access its properties. Set the constant to read information from a file directly to the clipboard.
4. Position the cursor inside the For Loop. Right click to access the LabVIEW toolbox. Select the "Read From Clipboard" and the "Write Waveform Graph" routines to place them on the Wiring Diagram. Right click on the "Write Waveform Graph" routine to access its properties and add a graph indicator to the output. This will add an icon to the Wiring Diagram and an image window to the Front Panel.
5. Left click on the "IMAQ initialization" routine to connect it to the "For Loop." This connection, known as a wire, determines the order of operations. Connect the "For Loop" tunnel to the "Read From Clipboard" icon input. Connect the "Read from Clipboard" output to the "Write Waveform Graph." The program is now ready to run from the front panel.
0 comments:
Post a Comment