Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Complete the following steps to create a project with an ARM target and a blank VI. 1. Launch LabVIEW and setup an ARM project Double click the LabVIEW icon on the desktop. The startup window below should appear.
2.
Select launch LabVIEW. The LabVIEW getting started screen should appear as below.
3. 4.
In the bottom left hand corner of the Getting started screen under the Targets heading ensure ARM Project is selected and select Go. The screen should appear as below
Page 1
5.
Ensure the option New ARM project, Blank VI is selected and select next.
6.
You must now select the target hardware. Select MCB2300 from the menu and press next to continue. The final setup screen shown overleaf will appear.
7.
Make sure the Run on simulator box is unchecked and select finish.
8.
A prompt will appear as above. Select save. A further message prompt as shown below will appear.
9.
You must now save your project and associated files. You must first save the project and then the program (VI) which is in the project.
a.
b. (a) Save the project as ex1 make sure the Save as type is Projects (*.lvproj) and select ok. (b) You will now be asked to name the VI call this ex1 make sure the Save as type is VIs (*.vi,*.vit) and select OK.
Page 2
10. The LabVIEW front panel and project explorer windows should now appear as below.
11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21.
Creating your first program You will now write a simple program which toggles an LED on the evaluation board every 1 second. From the task bar select Window>>Show Block Diagram The block Diagram will now appear. Place Functions on the block diagram. Under function palette select ARM>>MCB2300>>LCD>>MCB2300 LCD Init. Drag it to block diagram. Click Programming>>Structures>>While Loop and place it in the block diagram. Create constant at conditional terminal of while loop. Click the error output of the initialization function and wire it to the error output of the set text function. Now, lets create a string constant that will be written to the LCD screen. Click the MCB 2300 LCD set Text Function. Right Click and select Create>>Constant. Type a string Ex Hello. Close the functions palette. Compiling and running your program Select the run button from the taskbar. If prompted save your program. The code generation and compilation of your program should now start. This may take several minutes. If your program has no errors the program will be downloaded to the target hardware and automatically start running. A dialog box (For Example) should appear showing the current status of the system.
22. Now Hello can be seen through the LCD screen on MCB2300 kit.
Page 3
3. 4.
The new Elemental I/O window should appear. Open up the Analog Input selection menu by clicking on the + symbol to the left. Select AI0 and add this to the right panel by clicking the right arrow icon.
Select OK to close the window. You must now add the analogue input to your block diagram. Click AI0 to add an analog input to the block diagram. For this application, you will want to have the value in volts rather than the raw data. Click the AI0 button to open the properties of the node. Select Properties Click down on the Node Attributes ring until you see scaled voltage. Click OK to continue. Open the Function palette. Select string>>string/Number>>Number to Exponential string. Place inside the while loop. Wire the output of the Analog Input by clicking the AI0 output terminal. Now click the input of the Number to Exponential string function to connect the wire. Now, wire the output of the conversion by clicki ng Number to Exponential string Function. Now click the LCD Line 2input to connect the wire. Click the Run arrow to compile, download and run the program.
Page 4