├── .gitignore ├── .vipb ├── LabVIEW ├── examples │ └── LabVIEW Interface for Arduino │ │ ├── Arduino Analog Read Pin.vi │ │ ├── Arduino BlinkM.vi │ │ ├── Arduino Continuous Sampling.vi │ │ ├── Arduino Finite Analog Sampling.vi │ │ ├── Arduino IR Sensor.vi │ │ ├── Arduino LCD Event Based.vi │ │ ├── Arduino LCD Hello World 4-bit.vi │ │ ├── Arduino Light Show.vi │ │ ├── Arduino Photocell.vi │ │ ├── Arduino RGB LED.vi │ │ ├── Arduino Servo.vi │ │ ├── Arduino Seven Segment Display.vi │ │ ├── Arduino Stepper Motor.vi │ │ ├── Arduino Thermistor Read.vi │ │ ├── Arduino Thumbstick.vi │ │ └── Arduino Tone.vi ├── menus │ └── Categories │ │ └── Arduino │ │ ├── Examples.mnu │ │ ├── Low Level │ │ ├── Analog Sample.mnu │ │ ├── I2C.mnu │ │ ├── SPI.mnu │ │ └── dir.mnu │ │ ├── Sensors │ │ ├── BlinkM.mnu │ │ ├── Character LCD.mnu │ │ ├── Servo.mnu │ │ ├── Stepper.mnu │ │ └── dir.mnu │ │ ├── Utility.mnu │ │ └── dir.mnu └── vi.lib │ └── LabVIEW Interface for Arduino │ ├── Firmware │ ├── ChipKit │ │ └── LIFA_Uno32 │ │ │ ├── LIFA_Uno32.ino │ │ │ ├── LabVIEWInterface.h │ │ │ ├── LabVIEWInterface.ino │ │ │ └── keywords.txt │ └── LIFA_Base │ │ ├── AFMotor.cpp │ │ ├── AFMotor.h │ │ ├── AccelStepper.cpp │ │ ├── AccelStepper.h │ │ ├── IRremote.cpp │ │ ├── IRremote.h │ │ ├── IRremoteInt.h │ │ ├── IRremoteLICENSE.txt │ │ ├── LIFA_Base.ino │ │ ├── LabVIEWInterface.h │ │ ├── LabVIEWInterface.ino │ │ └── keywords.txt │ ├── LIFA.aliases │ ├── LIFA.lvlps │ ├── LabVIEW Interface for Arduino.aliases │ ├── LabVIEW Interface for Arduino.lvlib │ ├── LabVIEW Interface for Arduino.lvlps │ ├── LabVIEW Interface for Arduino.lvproj │ ├── Private │ ├── Helper VIs │ │ └── Audio Helpers │ │ │ ├── Config Sound Card.vi │ │ │ ├── Extract Waveform Data.vi │ │ │ ├── Freq Clamp And Note.vi │ │ │ ├── Get Sound Samples.vi │ │ │ ├── Init Sound Card.vi │ │ │ └── Randomize Colors.vi │ ├── Images │ │ ├── 7 Segment Display Example.png │ │ ├── Analog Read Example.png │ │ ├── Photocell Read Example.png │ │ ├── RGB LED Example.png │ │ ├── Thermistor Read Example.png │ │ └── Tone Example.png │ └── Type Defs │ │ ├── Analog Pin.ctl │ │ ├── Arduino Resource.ctl │ │ ├── Base.ctl │ │ ├── BlinkM Script.ctl │ │ ├── Board Type.ctl │ │ ├── Command.ctl │ │ ├── Connection Type.ctl │ │ ├── Digital Pin.ctl │ │ ├── Direction.ctl │ │ ├── IR Type.ctl │ │ ├── LCD Char Row.ctl │ │ ├── LCD Character.ctl │ │ ├── LCD Pin Config 4 bit.ctl │ │ ├── LCD Pin Config 8-bit.ctl │ │ ├── LCD Pin Config.ctl │ │ ├── Pin Mode.ctl │ │ ├── SPI Bit Order.ctl │ │ ├── SPI Clock Divider.ctl │ │ ├── SPI Data Mode.ctl │ │ └── Value.ctl │ ├── Public │ ├── Close.vi │ ├── Init.vi │ ├── Low Level │ │ ├── Analog Read Pin.vi │ │ ├── Analog Read Port.vi │ │ ├── Bus Specific │ │ │ ├── I2C │ │ │ │ ├── I2C Init.vi │ │ │ │ ├── I2C Read.vi │ │ │ │ └── I2C Write.vi │ │ │ └── SPI │ │ │ │ ├── SPI Close.vi │ │ │ │ ├── SPI Init.vi │ │ │ │ ├── SPI Send Receive.vi │ │ │ │ ├── SPI Set Bit Order.vi │ │ │ │ ├── SPI Set Clock Divider.vi │ │ │ │ └── SPI Set Data Mode.vi │ │ ├── Continuous Acquisition Off.vi │ │ ├── Continuous Acquisition Sample.vi │ │ ├── Continuous Aquisition On.vi │ │ ├── Digital Read Pin.vi │ │ ├── Digital Read Port.vi │ │ ├── Digital Write Pin.vi │ │ ├── Digital Write Port.vi │ │ ├── Finite Sample Start.vi │ │ ├── Get Finite Analog Sample.vi │ │ ├── PWM Configure Port.vi │ │ ├── PWM Write Pin.vi │ │ ├── PWM Write Port.vi │ │ ├── Set Digital Pin Mode.vi │ │ └── Tone.vi │ ├── Sensors │ │ ├── BlinkM │ │ │ ├── BlinkM FadeRandomRGB.vi │ │ │ ├── BlinkM FadeToRGB.vi │ │ │ ├── BlinkM GetAddress.vi │ │ │ ├── BlinkM GetRGB.vi │ │ │ ├── BlinkM GoToRGB.vi │ │ │ ├── BlinkM Init.vi │ │ │ ├── BlinkM PlayLightScript.vi │ │ │ ├── BlinkM ReadScriptLine.vi │ │ │ ├── BlinkM SetAddress.vi │ │ │ ├── BlinkM SetFadeSpeed.vi │ │ │ ├── BlinkM SetTimeAdjust.vi │ │ │ ├── BlinkM StopScript.vi │ │ │ └── BlinkM WriteScriptLine.vi │ │ ├── Character LCD │ │ │ ├── LCD Auto Scroll.vi │ │ │ ├── LCD Base Config.vi │ │ │ ├── LCD Clear.vi │ │ │ ├── LCD Configure 4-bit.vi │ │ │ ├── LCD Create Custom Char.vi │ │ │ ├── LCD Display Power.vi │ │ │ ├── LCD Init.vi │ │ │ ├── LCD Print Custom Char.vi │ │ │ ├── LCD Print.vi │ │ │ ├── LCD Scroll Display.vi │ │ │ ├── LCD Set Cursor Mode.vi │ │ │ ├── LCD Set Cursor Position.vi │ │ │ ├── LCD Set Print Direction.vi │ │ │ └── LCD Set Size.vi │ │ ├── IR Sensor Read.vi │ │ ├── IR Transmit NEC.vi │ │ ├── IR Transmit Raw.vi │ │ ├── Photocell Read.vi │ │ ├── RGB LED Configure.vi │ │ ├── RGB LED Write.vi │ │ ├── Servo │ │ │ ├── Configure Servo.vi │ │ │ ├── Detach Servo.vi │ │ │ ├── Servo Read Angle.vi │ │ │ ├── Servo Read Pulse Width.vi │ │ │ ├── Servo Write Angle.vi │ │ │ ├── Servo Write Pulse Width.vi │ │ │ └── Set Number of Servos.vi │ │ ├── Seven Segment Configure.vi │ │ ├── Seven Segment Write Char.vi │ │ ├── Seven Segment Write String.vi │ │ ├── Stepper │ │ │ ├── Stepper Close.vi │ │ │ ├── Stepper Configure.vi │ │ │ ├── Stepper ToGo.vi │ │ │ ├── Stepper Wait Till Steps Complete.vi │ │ │ └── Stepper Write.vi │ │ ├── Thermistor Read.vi │ │ ├── Thumbstick Config.vi │ │ └── Thumbstick Read.vi │ └── Utility │ │ ├── Angle Mag To RGB.vi │ │ ├── Auto Detect Arduino.vi │ │ ├── Calculate Update Rates.vi │ │ ├── Check For Pin Out Of Range.vi │ │ ├── Cycle RGB Colors.vi │ │ ├── Get Timing Data.vi │ │ ├── Packetize.vi │ │ ├── Send Receive.vi │ │ ├── Thumbstick Value To Angle.vi │ │ └── Wait For Bytes.vi │ └── Test Apps │ ├── Arduino Analog Read Pin Benchmark.vi │ └── Serial Command Test App.vi ├── README.md └── config.ini /.gitignore: -------------------------------------------------------------------------------- 1 | Installers 2 | -------------------------------------------------------------------------------- /.vipb: -------------------------------------------------------------------------------- 1 | 2 | 3 | national_instruments_lib_labview_interface_for_arduino 4 | 2.3.0.89 5 | false 6 | . 7 | Installers 8 | National Instruments 9 | 10 | 11 | 11.0 12 | true 13 | 00000D7E002800000C9A00000400000200020022002200080000000000FFFFFF00FF80000000FFFFFFFFFFFF0000FFFFFFFFCCCC0000FFFFFFFF99990000FFFFFFFF66660000FFFFFFFF33330000FFFFFFFF00000000FFFFCCCCFFFF0000FFFFCCCCCCCC0000FFFFCCCC99990000FFFFCCCC66660000FFFFCCCC33330000FFFFCCCC00000000FFFF9999FFFF0000FFFF9999CCCC0000FFFF999999990000FFFF999966660000FFFF999933330000FFFF999900000000FFFF6666FFFF0000FFFF6666CCCC0000FFFF666699990000FFFF666666660000FFFF666633330000FFFF666600000000FFFF3333FFFF0000FFFF3333CCCC0000FFFF333399990000FFFF333366660000FFFF333333330000FFFF333300000000FFFF0000FFFF0000FFFF0000CCCC0000FFFF000099990000FFFF000066660000FFFF000033330000FFFF000000000000CCCCFFFFFFFF0000CCCCFFFFCCCC0000CCCCFFFF99990000CCCCFFFF66660000CCCCFFFF33330000CCCCFFFF00000000CCCCCCCCFFFF0000CCCCCCCCCCCC0000CCCCCCCC99990000CCCCCCCC66660000CCCCCCCC33330000CCCCCCCC00000000CCCC9999FFFF0000CCCC9999CCCC0000CCCC999999990000CCCC999966660000CCCC999933330000CCCC999900000000CCCC6666FFFF0000CCCC6666CCCC0000CCCC666699990000CCCC666666660000CCCC666633330000CCCC666600000000CCCC3333FFFF0000CCCC3333CCCC0000CCCC333399990000CCCC333366660000CCCC333333330000CCCC333300000000CCCC0000FFFF0000CCCC0000CCCC0000CCCC000099990000CCCC000066660000CCCC000033330000CCCC0000000000009999FFFFFFFF00009999FFFFCCCC00009999FFFF999900009999FFFF666600009999FFFF333300009999FFFF000000009999CCCCFFFF00009999CCCCCCCC00009999CCCC999900009999CCCC666600009999CCCC333300009999CCCC0000000099999999FFFF000099999999CCCC0000999999999999000099999999666600009999999933330000999999990000000099996666FFFF000099996666CCCC0000999966669999000099996666666600009999666633330000999966660000000099993333FFFF000099993333CCCC0000999933339999000099993333666600009999333333330000999933330000000099990000FFFF000099990000CCCC000099990000999900009999000066660000999900003333000099990000000000006666FFFFFFFF00006666FFFFCCCC00006666FFFF999900006666FFFF666600006666FFFF333300006666FFFF000000006666CCCCFFFF00006666CCCCCCCC00006666CCCC999900006666CCCC666600006666CCCC333300006666CCCC0000000066669999FFFF000066669999CCCC0000666699999999000066669999666600006666999933330000666699990000000066666666FFFF000066666666CCCC0000666666669999000066666666666600006666666633330000666666660000000066663333FFFF000066663333CCCC0000666633339999000066663333666600006666333333330000666633330000000066660000FFFF000066660000CCCC000066660000999900006666000066660000666600003333000066660000000000003333FFFFFFFF00003333FFFFCCCC00003333FFFF999900003333FFFF666600003333FFFF333300003333FFFF000000003333CCCCFFFF00003333CCCCCCCC00003333CCCC999900003333CCCC666600003333CCCC333300003333CCCC0000000033339999FFFF000033339999CCCC0000333399999999000033339999666600003333999933330000333399990000000033336666FFFF000033336666CCCC0000333366669999000033336666666600003333666633330000333366660000000033333333FFFF000033333333CCCC0000333333339999000033333333666600003333333333330000333333330000000033330000FFFF000033330000CCCC000033330000999900003333000066660000333300003333000033330000000000000000FFFFFFFF00000000FFFFCCCC00000000FFFF999900000000FFFF666600000000FFFF333300000000FFFF000000000000CCCCFFFF00000000CCCCCCCC00000000CCCC999900000000CCCC666600000000CCCC333300000000CCCC0000000000009999FFFF000000009999CCCC0000000099999999000000009999666600000000999933330000000099990000000000006666FFFF000000006666CCCC0000000066669999000000006666666600000000666633330000000066660000000000003333FFFF000000003333CCCC0000000033339999000000003333666600000000333333330000000033330000000000000000FFFF000000000000CCCC0000000000009999000000000000666600000000000033330000EEEE000000000000DDDD000000000000BBBB000000000000AAAA0000000000008888000000000000777700000000000055550000000000004444000000000000222200000000000011110000000000000000EEEE000000000000DDDD000000000000BBBB000000000000AAAA0000000000008888000000000000777700000000000055550000000000004444000000000000222200000000000011110000000000000000EEEE000000000000DDDD000000000000BBBB000000000000AAAA0000000000008888000000000000777700000000000055550000000000004444000000000000222200000000000011110000EEEEEEEEEEEE0000DDDDDDDDDDDD0000BBBBBBBBBBBB0000AAAAAAAAAAAA00008888888888880000777777777777000055555555555500004444444444440000222222222222000011111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000000000000000000000FFCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDC6FF81000000000000FFFFFFFFFFFFCDFFFFFFFFFFFFFFFFFFFFC6FFFFFFFFFFCDFF81000000000000FF56565681FFCDC6CDCDCDC6C6C6CDCDCDC6CDCDCDCDCDC6FF81000000000000FF56565681FFCDCDFFFFFFCDC6C6C6C6C6C6C6C6C6C6C6C6FF81000000000000FF81818181FFCDCDFFFFFFCDCDCDCDCDCDCDCDCDCDCDCDC6FF81000000000000FFFFFFFFFFFFCDCDFFFFFFCDFFFFFFFFFFFFFFFFFFFFFFCDFF8100000000000000000000FFCDCDC6CDCDCDCDFFFFFFFFFFFFFFFFFFFFFFCDFF810000000000000000FFFFFFFFFFCDC656C6CDFFFFFFFFFFFFFFFFFFFFFFCDFF810000000000000000FFFFFFFFFFCD565656CDFFFFFFFFFFFFFFFFFFFFFFCDFF8100000000000000000000FFCDCDCDC656C6C6CDCDCDCDCDCDCDCDCDCDCDC6FF8100000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF810000000000000000000000818181818181818181818181818181818181818181000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003FFFFE003FFFFF03FFFFFF03FFFFFF03FFFFFF03FFFFFF03FFFFFF003FFFFF00FFFFFF00FFFFFF003FFFFF003FFFFF001FFFFF0000000000000000000000000000000000000000000000000000000000000000000000000002900000012000000020000000D01000000000100000000000A000000080000000000240024002900000012000000020000000D00B2B2B900010000000000100000001000000002002300000000000000000023002900000012000000020000000D00FCFCFD00010000000000100000001000000002002200010001000100010022002900000012000000020000000D00B2B2B900010000000000100000001000000002000000240024002400240000002900000012000000020000000D0080808A00010000000000100000001000000002000100230023002300230001 14 | LabVIEW Interface for Arduino 15 | true 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | .vipc 28 | 29 | An easy to use interface for the Arduino microcontroller platform. 30 | The LabVIEW Interface for Arduino toolkit provides an easy to use interface for the Arduino microcontroller platform. The LabVIEW Interface for Arduino allows you to quickly and easily create graphical user interfaces for virtually any component that is compatible with the Arduino microcontroller. This open source toolkit is made for customization allowing users to create custom drivers for their sensors. Please visit www.ni.com/arduino for more information. 31 | 32 | 33 | Sam Kristoff 34 | www.ni.com/arduino 35 | LabVIEW Interface for Arduino 36 | National Instruments 37 | 38 | For example code, demos, documentation and help please visit www.ni.com/arduino. 39 | 40 | 2.3.0 41 | Added dedicated Chipkit firmware and enhanced chipkit support. 42 | 43 | 2.2.0 44 | Added support for LabVIEW 2012 and IR Transmit VI's. 45 | 46 | 2.1.1 47 | Fixes for Mega 5002 Error - slowed down communication rate 48 | 2.1 49 | Bug Fixes for Stepper Motor and Digital Read 50 | 51 | 2.0 52 | Added Parrallax Passive Infared Sensor 53 | Examples now show up in LabVIEW 2011 Example Finder 54 | Added Stepper Motor API 55 | Added Continuous Analog Sampling Mode 56 | Added Finite Analog Sampling 57 | Support for Arduino 1.0 58 | Bug Fixes 59 | 60 | 1.4 61 | Added LabVIEW 2011 Support 62 | 63 | 1.3 64 | Added BlinkM Example 65 | Added Servo Support 66 | Added support for LabVIEW 2009 or later. 67 | 68 | 69 | 70 | false 71 | true 72 | <application> 73 | 74 | 75 | false 76 | true 77 | <application>\examples 78 | 79 | 80 | false 81 | true 82 | 83 | 84 | 85 | true 86 | 87 | 88 | 89 | true 90 | 91 | 92 | 93 | false 94 | true 95 | 96 | 97 | 98 | false 99 | true 100 | 101 | 102 | 103 | false 104 | true 105 | 106 | 107 | 108 | false 109 | true 110 | 111 | 112 | 113 | false 114 | false 115 | 116 | 117 | 118 | false 119 | false 120 | 121 | 122 | 123 | <LabVIEW> 124 | false 125 | true 126 | <application> 127 | 128 | 129 | vi.lib 130 | false 131 | true 132 | <vi.lib> 133 | 134 | 135 | menus 136 | false 137 | true 138 | <menus> 139 | 140 | 141 | 142 | 143 | . 144 | Toolkit VIs 145 | false 146 | 0 147 | 148 | 149 | LabVIEW\examples 150 | Toolkit VIs 151 | true 152 | 0 153 | 154 | 155 | LabVIEW\vi.lib 156 | Toolkit VIs 157 | true 158 | 0 159 | 160 | 161 | LabVIEW\menus 162 | Toolkit VIs 163 | true 164 | 0 165 | 166 | 167 | . 168 | 169 | 170 | 171 | . 172 | Prefix 173 | 174 | 175 | 176 | .git 177 | 178 | 179 | config.ini 180 | 181 | 182 | README.md 183 | 184 | 185 | LabVIEW\vi.lib\LabVIEW Interface for Arduino\LabVIEW Interface for Arduino.lvproj 186 | 187 | 188 | Installers 189 | 190 | 191 | .gitignore 192 | 193 | 194 | 195 | 196 | 197 | 198 | false 199 | 200 | 201 | 202 | 203 | 204 | <random:32> 205 | 206 | 207 | Default 208 | false 209 | 210 | 00000A3F002900000012000000020000000D00FFFFFF000100000000000A00000008000000000020002000280000007A00000054000000010007000500180000000000FFFFFF00000000000000000000000000000000010000000000000000010000010000010000000000010000010000010000000000010000010000000000010000010000010000000000000000010000000000000000000000000FFF9FFFDFFFDFFFBFFF9FFF0FFF0028000000650000003F000000060007000900180000000000FFFFFF00000000000000000000000000000000010000000000010000000000010000010000010000010000010000000000010000010000000000010000000000000000001FFF5FFFBFFFFFFFBFFFBFFF1FFF0028000000650000003F0000000A0007000D00180000000000FFFFFF00000000000000000000000000010000010000010000000000010000000000000000010000000000000000010000000000000000010000000000000000000000001FFFFFFF5FFF5FFF5FFF5FFF1FFF00280000003B000000150000000E0007000F00180000000000FFFFFF00000000000000010000010000010000010000010000007FFFFFFFFFFFFFFFFFFFFFFF7FFF0028000000650000003F000000100007001300180000000000FFFFFF00000000000000000000000000000000010000000000010000000000010000010000000000010000010000000000010000000000010000000000000000000000001FFF5FFFBFFFBFFFBFFF5FFF1FFF00280000007A00000054000000140007001800180000000000FFFFFF00000000000000000000000000000000010000000000000000010000010000010000000000010000010000010000000000010000010000000000010000010000010000000000000000010000000000000000000000000FFF9FFFDFFFDFFFBFFF9FFF0FFF0028000000650000003F000000190007001C00180000000000FFFFFF00000000000000000000000000000000010000000000010000000000010000010000010000010000010000000000010000010000000000010000000000000000001FFF5FFFBFFFFFFFBFFFBFFF1FFF0028000000500000002A0000001D0007001F00180000000000FFFFFF00000000000000000000010000000000010000000000010000000000010000000000010000010000000000003FFFBFFFBFFFBFFFBFFFFFFF3FFF00280000003B0000001500080000000F000100180000000000FFFFFF00000000000000010000010000010000010000010000007FFFFFFFFFFFFFFFFFFFFFFF7FFF00280000007A0000005400080002000F000600180000000000FFFFFF00000000000000000000000000000000010000000000000000010000010000010000000000010000010000010000000000010000010000000000010000010000010000000000000000010000000000000000000000000FFF9FFFDFFFDFFFBFFF9FFF0FFF0028000000650000003F00080007000F000A00180000000000FFFFFF00000000000000000000000000000000010000010000010000000000000000010000010000000000000000000000010000010000010000000000000000000000001FFF7FFF9FFFDFFF3FFFDFFF1FFF0028000000650000003F0008000B000F000E00180000000000FFFFFF00000000000000000000000000010000010000010000000000010000000000000000010000000000000000010000000000000000010000000000000000000000001FFFFFFF5FFF5FFF5FFF5FFF1FFF0028000000650000003F0008000F000F001200180000000000FFFFFF00000000000000000000000000010000010000000000010000000000010000010000010000000000010000000000010000010000000000010000000000000000001FFFDFFFBFFFDFFFBFFFBFFF1FFF0028000000650000003F00080013000F001600180000000000FFFFFF00000000000000000000000000010000000000010000010000000000010000010000000000010000010000000000010000010000010000010000000000000000001FFFBFFFBFFFBFFFBFFFFFFF1FFF00280000008F0000006900080017000F001C00180000000000FFFFFF000000000000000000000000000000000000000100000000000000000000000100000100000100000000000100000100000100000000000100000000000100000100000000000000000000000100000100000000000000000000000100000000000000000000000000000007FF8FFFDFFFAFFF8FFF8FFF07FF0028000000650000003F0008001D000F002000180000000000FFFFFF00000000000000000000000000010000010000010000010000000000000000010000010000000000010000000000000000010000010000010000000000000000001FFFFFFF9FFFDFFF9FFFFFFF1FFF002900000012000000020000000D00CCCCFF000100000000000A00000008001900000020002000280000007A00000054001900000020000400180000000000FFFFFF00000000000000000000000000006C00010000000000006C00016C00016C00010000006C00016C00016C00010000006C00016C00010000006C00016C00016C00010000000000006C00010000000000000000000000000FFF9FFFDFFFDFFFBFFF9FFF0FFF0028000000650000003F001900050020000800180000000000FFFFFF00000000000000000000000000006C00010000006C00010000006C00016C00016C00016C00016C00010000006C00016C00010000006C00010000000000000000001FFF5FFFBFFFFFFFBFFFBFFF1FFF0028000000650000003F001900090020000C00180000000000FFFFFF00000000000000000000006C00016C00016C00010000006C00010000000000006C00010000000000006C00010000000000006C00010000000000000000000000001FFFFFFF5FFF5FFF5FFF5FFF1FFF00280000003B000000150019000D0020000E00180000000000FFFFFF00000000006C00016C00016C00016C00016C00010000007FFFFFFFFFFFFFFFFFFFFFFF7FFF0028000000650000003F0019000F0020001200180000000000FFFFFF00000000000000000000000000006C00010000006C00010000006C00016C00010000006C00016C00010000006C00010000006C00010000000000000000000000001FFF5FFFBFFFBFFFBFFF5FFF1FFF00280000007A00000054001900130020001700180000000000FFFFFF00000000000000000000000000006C00010000000000006C00016C00016C00010000006C00016C00016C00010000006C00016C00010000006C00016C00016C00010000000000006C00010000000000000000000000000FFF9FFFDFFFDFFFBFFF9FFF0FFF0028000000650000003F001900180020001B00180000000000FFFFFF00000000000000000000000000006C00010000006C00010000006C00016C00016C00016C00016C00010000006C00016C00010000006C00010000000000000000001FFF5FFFBFFFFFFFBFFFBFFF1FFF0028000000500000002A0019001C0020001E00180000000000FFFFFF00000000000000006C00010000006C00010000006C00010000006C00010000006C00016C00010000000000003FFFBFFFBFFFBFFFBFFFFFFF3FFF 211 | 212 | Controls 213 | <menus>\Controls 214 | 215 | 216 | 217 | Functions 218 | <menus>\Categories 219 | 220 | 221 | 222 | 223 | true 224 | true 225 | true 226 | true 227 | true 228 | true 229 | false 230 | true 231 | 232 | 233 | 234 | -------------------------------------------------------------------------------- /LabVIEW/examples/LabVIEW Interface for Arduino/Arduino Analog Read Pin.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/examples/LabVIEW Interface for Arduino/Arduino Analog Read Pin.vi -------------------------------------------------------------------------------- /LabVIEW/examples/LabVIEW Interface for Arduino/Arduino BlinkM.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/examples/LabVIEW Interface for Arduino/Arduino BlinkM.vi -------------------------------------------------------------------------------- /LabVIEW/examples/LabVIEW Interface for Arduino/Arduino Continuous Sampling.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/examples/LabVIEW Interface for Arduino/Arduino Continuous Sampling.vi -------------------------------------------------------------------------------- /LabVIEW/examples/LabVIEW Interface for Arduino/Arduino Finite Analog Sampling.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/examples/LabVIEW Interface for Arduino/Arduino Finite Analog Sampling.vi -------------------------------------------------------------------------------- /LabVIEW/examples/LabVIEW Interface for Arduino/Arduino IR Sensor.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/examples/LabVIEW Interface for Arduino/Arduino IR Sensor.vi -------------------------------------------------------------------------------- /LabVIEW/examples/LabVIEW Interface for Arduino/Arduino LCD Event Based.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/examples/LabVIEW Interface for Arduino/Arduino LCD Event Based.vi -------------------------------------------------------------------------------- /LabVIEW/examples/LabVIEW Interface for Arduino/Arduino LCD Hello World 4-bit.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/examples/LabVIEW Interface for Arduino/Arduino LCD Hello World 4-bit.vi -------------------------------------------------------------------------------- /LabVIEW/examples/LabVIEW Interface for Arduino/Arduino Light Show.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/examples/LabVIEW Interface for Arduino/Arduino Light Show.vi -------------------------------------------------------------------------------- /LabVIEW/examples/LabVIEW Interface for Arduino/Arduino Photocell.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/examples/LabVIEW Interface for Arduino/Arduino Photocell.vi -------------------------------------------------------------------------------- /LabVIEW/examples/LabVIEW Interface for Arduino/Arduino RGB LED.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/examples/LabVIEW Interface for Arduino/Arduino RGB LED.vi -------------------------------------------------------------------------------- /LabVIEW/examples/LabVIEW Interface for Arduino/Arduino Servo.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/examples/LabVIEW Interface for Arduino/Arduino Servo.vi -------------------------------------------------------------------------------- /LabVIEW/examples/LabVIEW Interface for Arduino/Arduino Seven Segment Display.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/examples/LabVIEW Interface for Arduino/Arduino Seven Segment Display.vi -------------------------------------------------------------------------------- /LabVIEW/examples/LabVIEW Interface for Arduino/Arduino Stepper Motor.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/examples/LabVIEW Interface for Arduino/Arduino Stepper Motor.vi -------------------------------------------------------------------------------- /LabVIEW/examples/LabVIEW Interface for Arduino/Arduino Thermistor Read.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/examples/LabVIEW Interface for Arduino/Arduino Thermistor Read.vi -------------------------------------------------------------------------------- /LabVIEW/examples/LabVIEW Interface for Arduino/Arduino Thumbstick.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/examples/LabVIEW Interface for Arduino/Arduino Thumbstick.vi -------------------------------------------------------------------------------- /LabVIEW/examples/LabVIEW Interface for Arduino/Arduino Tone.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/examples/LabVIEW Interface for Arduino/Arduino Tone.vi -------------------------------------------------------------------------------- /LabVIEW/menus/Categories/Arduino/Examples.mnu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/menus/Categories/Arduino/Examples.mnu -------------------------------------------------------------------------------- /LabVIEW/menus/Categories/Arduino/Low Level/Analog Sample.mnu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/menus/Categories/Arduino/Low Level/Analog Sample.mnu -------------------------------------------------------------------------------- /LabVIEW/menus/Categories/Arduino/Low Level/I2C.mnu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/menus/Categories/Arduino/Low Level/I2C.mnu -------------------------------------------------------------------------------- /LabVIEW/menus/Categories/Arduino/Low Level/SPI.mnu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/menus/Categories/Arduino/Low Level/SPI.mnu -------------------------------------------------------------------------------- /LabVIEW/menus/Categories/Arduino/Low Level/dir.mnu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/menus/Categories/Arduino/Low Level/dir.mnu -------------------------------------------------------------------------------- /LabVIEW/menus/Categories/Arduino/Sensors/BlinkM.mnu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/menus/Categories/Arduino/Sensors/BlinkM.mnu -------------------------------------------------------------------------------- /LabVIEW/menus/Categories/Arduino/Sensors/Character LCD.mnu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/menus/Categories/Arduino/Sensors/Character LCD.mnu -------------------------------------------------------------------------------- /LabVIEW/menus/Categories/Arduino/Sensors/Servo.mnu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/menus/Categories/Arduino/Sensors/Servo.mnu -------------------------------------------------------------------------------- /LabVIEW/menus/Categories/Arduino/Sensors/Stepper.mnu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/menus/Categories/Arduino/Sensors/Stepper.mnu -------------------------------------------------------------------------------- /LabVIEW/menus/Categories/Arduino/Sensors/dir.mnu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/menus/Categories/Arduino/Sensors/dir.mnu -------------------------------------------------------------------------------- /LabVIEW/menus/Categories/Arduino/Utility.mnu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/menus/Categories/Arduino/Utility.mnu -------------------------------------------------------------------------------- /LabVIEW/menus/Categories/Arduino/dir.mnu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/menus/Categories/Arduino/dir.mnu -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Firmware/ChipKit/LIFA_Uno32/LIFA_Uno32.ino: -------------------------------------------------------------------------------- 1 | 2 | 3 | /********************************************************************************* 4 | ** 5 | ** LVFA_Firmware - Provides Basic Arduino Sketch For Interfacing With LabVIEW. 6 | ** 7 | ** Written By: Sam Kristoff - National Instruments 8 | ** Written On: November 2010 9 | ** Last Updated: Dec 2011 - Kevin Fort - National Instruments 10 | ** 11 | ** This File May Be Modified And Re-Distributed Freely. Original File Content 12 | ** Written By Sam Kristoff And Available At www.ni.com/arduino. 13 | ** 14 | *********************************************************************************/ 15 | 16 | 17 | /********************************************************************************* 18 | ** 19 | ** Includes. 20 | ** 21 | ********************************************************************************/ 22 | // Standard includes. These should always be included. 23 | #include 24 | #include 25 | #include 26 | #include "LabVIEWInterface.h" 27 | 28 | /********************************************************************************* 29 | ** setup() 30 | ** 31 | ** Initialize the Arduino and setup serial communication. 32 | ** 33 | ** Input: None 34 | ** Output: None 35 | *********************************************************************************/ 36 | void setup() 37 | { 38 | // Initialize Serial Port With The Default Baud Rate 39 | syncLV(); 40 | 41 | // Place your custom setup code here 42 | 43 | } 44 | 45 | 46 | /********************************************************************************* 47 | ** loop() 48 | ** 49 | ** The main loop. This loop runs continuously on the Arduino. It 50 | ** receives and processes serial commands from LabVIEW. 51 | ** 52 | ** Input: None 53 | ** Output: None 54 | *********************************************************************************/ 55 | void loop() 56 | { 57 | // Check for commands from LabVIEW and process them. 58 | 59 | checkForCommand(); 60 | // Place your custom loop code here (this may slow down communication with LabVIEW) 61 | 62 | 63 | if(acqMode==1) 64 | { 65 | sampleContinously(); 66 | } 67 | 68 | } 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Firmware/ChipKit/LIFA_Uno32/LabVIEWInterface.h: -------------------------------------------------------------------------------- 1 | /********************************************************************************* 2 | ** 3 | ** 4 | ** LVFA_Firmware - Provides Functions For Interfacing With The Arduino Uno 5 | ** 6 | ** Written By: Sam Kristoff - National Instruments 7 | ** Written On: November 2010 8 | ** Last Updated: Dec 2011 - Kevin Fort - National Instruments 9 | ** 10 | ** This File May Be Modified And Re-Distributed Freely. Original File Content 11 | ** Written By Sam Kristoff And Available At www.ni.com/arduino. 12 | ** 13 | *********************************************************************************/ 14 | 15 | 16 | /********************************************************************************* 17 | ** Define Constants 18 | ** 19 | ** Define directives providing meaningful names for constant values. 20 | *********************************************************************************/ 21 | 22 | #define FIRMWARE_MAJOR 02 23 | #define FIRMWARE_MINOR 00 24 | #define DEFAULTBAUDRATE 115200 25 | #define MODE_DEFAULT 0 // Defines Arduino Modes (Currently Not Used) 26 | #define COMMANDLENGTH 15 // Defines The Number Of Bytes In A Single LabVIEW Command (This must match the packet size specifid in LabVIEW) 27 | //#define STEPPER_SUPPORT 1 // Defines Whether The Stepper Library Is Included - Comment This Line To Exclude Stepper Support 28 | 29 | 30 | // Declare Variables 31 | unsigned char currentCommand[COMMANDLENGTH]; // The Current Command For The Arduino To Process 32 | //Globals for continuous aquisition 33 | unsigned char acqMode; 34 | unsigned char contAcqPin; 35 | float contAcqSpeed; 36 | float acquisitionPeriod; 37 | float iterationsFlt; 38 | int iterations; 39 | float delayTime; 40 | 41 | 42 | /********************************************************************************* 43 | ** syncLV 44 | ** 45 | ** Synchronizes with LabVIEW and sends info about the board and firmware (Unimplemented) 46 | ** 47 | ** Input: None 48 | ** Output: None 49 | *********************************************************************************/ 50 | void syncLV(); 51 | 52 | /********************************************************************************* 53 | ** setMode 54 | ** 55 | ** Sets the mode of the Arduino (Reserved For Future Use) 56 | ** 57 | ** Input: Int - Mode 58 | ** Output: None 59 | *********************************************************************************/ 60 | void setMode(int mode); 61 | 62 | /********************************************************************************* 63 | ** checkForCommand 64 | ** 65 | ** Checks for new commands from LabVIEW and processes them if any exists. 66 | ** 67 | ** Input: None 68 | ** Output: 1 - Command received and processed 69 | ** 0 - No new command 70 | *********************************************************************************/ 71 | int checkForCommand(void); 72 | 73 | /********************************************************************************* 74 | ** processCommand 75 | ** 76 | ** Processes a given command 77 | ** 78 | ** Input: command of COMMANDLENGTH bytes 79 | ** Output: 1 - Command received and processed 80 | ** 0 - No new command 81 | *********************************************************************************/ 82 | void processCommand(unsigned char command[]); 83 | 84 | /********************************************************************************* 85 | ** writeDigitalPort 86 | ** 87 | ** Write values to DIO pins 0 - 13. Pins must first be configured as outputs. 88 | ** 89 | ** Input: Command containing digital port data 90 | ** Output: None 91 | *********************************************************************************/ 92 | void writeDigitalPort(unsigned char command[]); 93 | 94 | /********************************************************************************* 95 | ** analogReadPort 96 | ** 97 | ** Reads all 6 analog input ports, builds 8 byte packet, send via RS232. 98 | ** 99 | ** Input: None 100 | ** Output: None 101 | *********************************************************************************/ 102 | void analogReadPort(); 103 | 104 | /********************************************************************************* 105 | ** sevenSegment_Config 106 | ** 107 | ** Configure digital I/O pins to use for seven segment display. Pins are stored in sevenSegmentPins array. 108 | ** 109 | ** Input: Pins to use for seven segment LED [A, B, C, D, E, F, G, DP] 110 | ** Output: None 111 | *********************************************************************************/ 112 | void sevenSegment_Config(unsigned char command[]); 113 | 114 | /********************************************************************************* 115 | ** sevenSegment_Write 116 | ** 117 | ** Write values to sevenSegment display. Must first use sevenSegment_Configure 118 | ** 119 | ** Input: Eight values to write to seven segment display 120 | ** Output: None 121 | *********************************************************************************/ 122 | void sevenSegment_Write(unsigned char command[]); 123 | 124 | /********************************************************************************* 125 | ** spi_setClockDivider 126 | ** 127 | ** Set the SPI Clock Divisor 128 | ** 129 | ** Input: SPI Clock Divider 2, 4, 8, 16, 32, 64, 128 130 | ** Output: None 131 | *********************************************************************************/ 132 | void spi_setClockDivider(unsigned char divider); 133 | 134 | /********************************************************************************* 135 | ** spi_sendReceive 136 | ** 137 | ** Sens / Receive SPI Data 138 | ** 139 | ** Input: Command Packet 140 | ** Output: None (This command sends one serail byte back to LV for each data byte. 141 | *********************************************************************************/ 142 | void spi_sendReceive(unsigned char command[]); 143 | 144 | /********************************************************************************* 145 | ** checksum_Compute 146 | ** 147 | ** Compute Packet Checksum 148 | ** 149 | ** Input: Command Packet 150 | ** Output: Char Checksum Value 151 | *********************************************************************************/ 152 | unsigned char checksum_Compute(unsigned char command[]); 153 | 154 | /********************************************************************************* 155 | ** checksum_Test 156 | ** 157 | ** Compute Packet Checksum And Test Against Included Checksum 158 | ** 159 | ** Input: Command Packet 160 | ** Output: 0 If Checksums Are Equal, Else 1 161 | *********************************************************************************/ 162 | int checksum_Test(unsigned char command[]); 163 | 164 | /********************************************************************************* 165 | ** AccelStepper_Write 166 | ** 167 | ** Parse command packet and write speed, direction, and number of steps to travel 168 | ** 169 | ** Input: Command Packet 170 | ** Output: None 171 | *********************************************************************************/ 172 | void AccelStepper_Write(unsigned char command[]); 173 | /********************************************************************************* 174 | ** SampleContinuosly 175 | ** 176 | ** Returns several analog input points at once. 177 | ** 178 | ** Input: void 179 | ** Output: void 180 | *********************************************************************************/ 181 | void sampleContinously(void); 182 | 183 | /********************************************************************************* 184 | ** finiteAcquisition 185 | ** 186 | ** Returns the number of samples specified at the rate specified. 187 | ** 188 | ** Input: pin to sampe on, speed to sample at, number of samples 189 | ** Output: void 190 | *********************************************************************************/ 191 | void finiteAcquisition(int analogPin, float acquisitionSpeed, int numberOfSamples ); 192 | /********************************************************************************* 193 | ** lcd_print 194 | ** 195 | ** Prints Data to the LCD With The Given Base 196 | ** 197 | ** Input: Command Packet 198 | ** Output: None 199 | *********************************************************************************/ 200 | void lcd_print(unsigned char command[]); 201 | 202 | -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Firmware/ChipKit/LIFA_Uno32/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map For IRremote 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | decode_results KEYWORD1 10 | IRrecv KEYWORD1 11 | IRsend KEYWORD1 12 | 13 | ####################################### 14 | # Methods and Functions (KEYWORD2) 15 | ####################################### 16 | 17 | blink13 KEYWORD2 18 | decode KEYWORD2 19 | enableIRIn KEYWORD2 20 | resume KEYWORD2 21 | enableIROut KEYWORD2 22 | sendNEC KEYWORD2 23 | sendSony KEYWORD2 24 | sendRaw KEYWORD2 25 | sendRC5 KEYWORD2 26 | sendRC6 KEYWORD2 27 | # 28 | ####################################### 29 | # Constants (LITERAL1) 30 | ####################################### 31 | 32 | NEC LITERAL1 33 | SONY LITERAL1 34 | RC5 LITERAL1 35 | RC6 LITERAL1 36 | UNKNOWN LITERAL1 37 | REPEAT LITERAL1 38 | -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Firmware/LIFA_Base/AFMotor.cpp: -------------------------------------------------------------------------------- 1 | // Adafruit Motor shield library 2 | // copyright Adafruit Industries LLC, 2009 3 | // this code is public domain, enjoy! 4 | 5 | 6 | #include 7 | #if defined(ARDUINO) && ARDUINO >= 100 8 | #include "Arduino.h" 9 | #else 10 | #include "WProgram.h" 11 | #endif 12 | 13 | #include "AFMotor.h" 14 | 15 | static uint8_t latch_state; 16 | 17 | #if (MICROSTEPS == 8) 18 | uint8_t microstepcurve[] = {0, 50, 98, 142, 180, 212, 236, 250, 255}; 19 | #elif (MICROSTEPS == 16) 20 | uint8_t microstepcurve[] = {0, 25, 50, 74, 98, 120, 141, 162, 180, 197, 212, 225, 236, 244, 250, 253, 255}; 21 | #endif 22 | 23 | AFMotorController::AFMotorController(void) { 24 | } 25 | 26 | void AFMotorController::enable(void) { 27 | // setup the latch 28 | /* 29 | LATCH_DDR |= _BV(LATCH); 30 | ENABLE_DDR |= _BV(ENABLE); 31 | CLK_DDR |= _BV(CLK); 32 | SER_DDR |= _BV(SER); 33 | */ 34 | pinMode(MOTORLATCH, OUTPUT); 35 | pinMode(MOTORENABLE, OUTPUT); 36 | pinMode(MOTORDATA, OUTPUT); 37 | pinMode(MOTORCLK, OUTPUT); 38 | 39 | latch_state = 0; 40 | 41 | latch_tx(); // "reset" 42 | 43 | //ENABLE_PORT &= ~_BV(ENABLE); // enable the chip outputs! 44 | digitalWrite(MOTORENABLE, LOW); 45 | } 46 | 47 | 48 | void AFMotorController::latch_tx(void) { 49 | uint8_t i; 50 | 51 | //LATCH_PORT &= ~_BV(LATCH); 52 | digitalWrite(MOTORLATCH, LOW); 53 | 54 | //SER_PORT &= ~_BV(SER); 55 | digitalWrite(MOTORDATA, LOW); 56 | 57 | for (i=0; i<8; i++) { 58 | //CLK_PORT &= ~_BV(CLK); 59 | digitalWrite(MOTORCLK, LOW); 60 | 61 | if (latch_state & _BV(7-i)) { 62 | //SER_PORT |= _BV(SER); 63 | digitalWrite(MOTORDATA, HIGH); 64 | } else { 65 | //SER_PORT &= ~_BV(SER); 66 | digitalWrite(MOTORDATA, LOW); 67 | } 68 | //CLK_PORT |= _BV(CLK); 69 | digitalWrite(MOTORCLK, HIGH); 70 | } 71 | //LATCH_PORT |= _BV(LATCH); 72 | digitalWrite(MOTORLATCH, HIGH); 73 | } 74 | 75 | static AFMotorController MC; 76 | 77 | 78 | /****************************************** 79 | MOTORS 80 | ******************************************/ 81 | inline void initPWM1(uint8_t freq) { 82 | #if defined(__AVR_ATmega8__) || \ 83 | defined(__AVR_ATmega48__) || \ 84 | defined(__AVR_ATmega88__) || \ 85 | defined(__AVR_ATmega168__) || \ 86 | defined(__AVR_ATmega328P__) 87 | // use PWM from timer2A on PB3 (Arduino pin #11) 88 | TCCR2A |= _BV(COM2A1) | _BV(WGM20) | _BV(WGM21); // fast PWM, turn on oc2a 89 | TCCR2B = freq & 0x7; 90 | OCR2A = 0; 91 | #elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) 92 | // on arduino mega, pin 11 is now PB5 (OC1A) 93 | TCCR1A |= _BV(COM1A1) | _BV(WGM10); // fast PWM, turn on oc1a 94 | TCCR1B = (freq & 0x7) | _BV(WGM12); 95 | OCR1A = 0; 96 | #else 97 | #error "This chip is not supported!" 98 | #endif 99 | pinMode(11, OUTPUT); 100 | } 101 | 102 | inline void setPWM1(uint8_t s) { 103 | #if defined(__AVR_ATmega8__) || \ 104 | defined(__AVR_ATmega48__) || \ 105 | defined(__AVR_ATmega88__) || \ 106 | defined(__AVR_ATmega168__) || \ 107 | defined(__AVR_ATmega328P__) 108 | // use PWM from timer2A on PB3 (Arduino pin #11) 109 | OCR2A = s; 110 | #elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) 111 | // on arduino mega, pin 11 is now PB5 (OC1A) 112 | OCR1A = s; 113 | #else 114 | #error "This chip is not supported!" 115 | #endif 116 | } 117 | 118 | inline void initPWM2(uint8_t freq) { 119 | #if defined(__AVR_ATmega8__) || \ 120 | defined(__AVR_ATmega48__) || \ 121 | defined(__AVR_ATmega88__) || \ 122 | defined(__AVR_ATmega168__) || \ 123 | defined(__AVR_ATmega328P__) 124 | // use PWM from timer2B (pin 3) 125 | TCCR2A |= _BV(COM2B1) | _BV(WGM20) | _BV(WGM21); // fast PWM, turn on oc2b 126 | TCCR2B = freq & 0x7; 127 | OCR2B = 0; 128 | #elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) 129 | // on arduino mega, pin 3 is now PE5 (OC3C) 130 | TCCR3A |= _BV(COM1C1) | _BV(WGM10); // fast PWM, turn on oc3c 131 | TCCR3B = (freq & 0x7) | _BV(WGM12); 132 | OCR3C = 0; 133 | #else 134 | #error "This chip is not supported!" 135 | #endif 136 | 137 | pinMode(3, OUTPUT); 138 | } 139 | 140 | inline void setPWM2(uint8_t s) { 141 | #if defined(__AVR_ATmega8__) || \ 142 | defined(__AVR_ATmega48__) || \ 143 | defined(__AVR_ATmega88__) || \ 144 | defined(__AVR_ATmega168__) || \ 145 | defined(__AVR_ATmega328P__) 146 | // use PWM from timer2A on PB3 (Arduino pin #11) 147 | OCR2B = s; 148 | #elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) 149 | // on arduino mega, pin 11 is now PB5 (OC1A) 150 | OCR3C = s; 151 | #else 152 | #error "This chip is not supported!" 153 | #endif 154 | } 155 | 156 | inline void initPWM3(uint8_t freq) { 157 | #if defined(__AVR_ATmega8__) || \ 158 | defined(__AVR_ATmega48__) || \ 159 | defined(__AVR_ATmega88__) || \ 160 | defined(__AVR_ATmega168__) || \ 161 | defined(__AVR_ATmega328P__) 162 | // use PWM from timer0A / PD6 (pin 6) 163 | TCCR0A |= _BV(COM0A1) | _BV(WGM00) | _BV(WGM01); // fast PWM, turn on OC0A 164 | //TCCR0B = freq & 0x7; 165 | OCR0A = 0; 166 | #elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) 167 | // on arduino mega, pin 6 is now PH3 (OC4A) 168 | TCCR4A |= _BV(COM1A1) | _BV(WGM10); // fast PWM, turn on oc4a 169 | TCCR4B = (freq & 0x7) | _BV(WGM12); 170 | //TCCR4B = 1 | _BV(WGM12); 171 | OCR4A = 0; 172 | #else 173 | #error "This chip is not supported!" 174 | #endif 175 | pinMode(6, OUTPUT); 176 | } 177 | 178 | inline void setPWM3(uint8_t s) { 179 | #if defined(__AVR_ATmega8__) || \ 180 | defined(__AVR_ATmega48__) || \ 181 | defined(__AVR_ATmega88__) || \ 182 | defined(__AVR_ATmega168__) || \ 183 | defined(__AVR_ATmega328P__) 184 | // use PWM from timer0A on PB3 (Arduino pin #6) 185 | OCR0A = s; 186 | #elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) 187 | // on arduino mega, pin 6 is now PH3 (OC4A) 188 | OCR4A = s; 189 | #else 190 | #error "This chip is not supported!" 191 | #endif 192 | } 193 | 194 | 195 | 196 | inline void initPWM4(uint8_t freq) { 197 | #if defined(__AVR_ATmega8__) || \ 198 | defined(__AVR_ATmega48__) || \ 199 | defined(__AVR_ATmega88__) || \ 200 | defined(__AVR_ATmega168__) || \ 201 | defined(__AVR_ATmega328P__) 202 | // use PWM from timer0B / PD5 (pin 5) 203 | TCCR0A |= _BV(COM0B1) | _BV(WGM00) | _BV(WGM01); // fast PWM, turn on oc0a 204 | //TCCR0B = freq & 0x7; 205 | OCR0B = 0; 206 | #elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) 207 | // on arduino mega, pin 5 is now PE3 (OC3A) 208 | TCCR3A |= _BV(COM1A1) | _BV(WGM10); // fast PWM, turn on oc3a 209 | TCCR3B = (freq & 0x7) | _BV(WGM12); 210 | //TCCR4B = 1 | _BV(WGM12); 211 | OCR3A = 0; 212 | #else 213 | #error "This chip is not supported!" 214 | #endif 215 | pinMode(5, OUTPUT); 216 | } 217 | 218 | inline void setPWM4(uint8_t s) { 219 | #if defined(__AVR_ATmega8__) || \ 220 | defined(__AVR_ATmega48__) || \ 221 | defined(__AVR_ATmega88__) || \ 222 | defined(__AVR_ATmega168__) || \ 223 | defined(__AVR_ATmega328P__) 224 | // use PWM from timer0A on PB3 (Arduino pin #6) 225 | OCR0B = s; 226 | #elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) 227 | // on arduino mega, pin 6 is now PH3 (OC4A) 228 | OCR3A = s; 229 | #else 230 | #error "This chip is not supported!" 231 | #endif 232 | } 233 | 234 | AF_DCMotor::AF_DCMotor(uint8_t num, uint8_t freq) { 235 | motornum = num; 236 | pwmfreq = freq; 237 | 238 | MC.enable(); 239 | 240 | switch (num) { 241 | case 1: 242 | latch_state &= ~_BV(MOTOR1_A) & ~_BV(MOTOR1_B); // set both motor pins to 0 243 | MC.latch_tx(); 244 | initPWM1(freq); 245 | break; 246 | case 2: 247 | latch_state &= ~_BV(MOTOR2_A) & ~_BV(MOTOR2_B); // set both motor pins to 0 248 | MC.latch_tx(); 249 | initPWM2(freq); 250 | break; 251 | case 3: 252 | latch_state &= ~_BV(MOTOR3_A) & ~_BV(MOTOR3_B); // set both motor pins to 0 253 | MC.latch_tx(); 254 | initPWM3(freq); 255 | break; 256 | case 4: 257 | latch_state &= ~_BV(MOTOR4_A) & ~_BV(MOTOR4_B); // set both motor pins to 0 258 | MC.latch_tx(); 259 | initPWM4(freq); 260 | break; 261 | } 262 | } 263 | 264 | void AF_DCMotor::run(uint8_t cmd) { 265 | uint8_t a, b; 266 | switch (motornum) { 267 | case 1: 268 | a = MOTOR1_A; b = MOTOR1_B; break; 269 | case 2: 270 | a = MOTOR2_A; b = MOTOR2_B; break; 271 | case 3: 272 | a = MOTOR3_A; b = MOTOR3_B; break; 273 | case 4: 274 | a = MOTOR4_A; b = MOTOR4_B; break; 275 | default: 276 | return; 277 | } 278 | 279 | switch (cmd) { 280 | case FORWARD: 281 | latch_state |= _BV(a); 282 | latch_state &= ~_BV(b); 283 | MC.latch_tx(); 284 | break; 285 | case BACKWARD: 286 | latch_state &= ~_BV(a); 287 | latch_state |= _BV(b); 288 | MC.latch_tx(); 289 | break; 290 | case RELEASE: 291 | latch_state &= ~_BV(a); 292 | latch_state &= ~_BV(b); 293 | MC.latch_tx(); 294 | break; 295 | } 296 | } 297 | 298 | void AF_DCMotor::setSpeed(uint8_t speed) { 299 | switch (motornum) { 300 | case 1: 301 | setPWM1(speed); break; 302 | case 2: 303 | setPWM2(speed); break; 304 | case 3: 305 | setPWM3(speed); break; 306 | case 4: 307 | setPWM4(speed); break; 308 | } 309 | } 310 | 311 | /****************************************** 312 | STEPPERS 313 | ******************************************/ 314 | 315 | AF_Stepper::AF_Stepper(uint16_t steps, uint8_t num) { 316 | MC.enable(); 317 | 318 | revsteps = steps; 319 | steppernum = num; 320 | currentstep = 0; 321 | 322 | if (steppernum == 1) { 323 | latch_state &= ~_BV(MOTOR1_A) & ~_BV(MOTOR1_B) & 324 | ~_BV(MOTOR2_A) & ~_BV(MOTOR2_B); // all motor pins to 0 325 | MC.latch_tx(); 326 | 327 | // enable both H bridges 328 | pinMode(11, OUTPUT); 329 | pinMode(3, OUTPUT); 330 | digitalWrite(11, HIGH); 331 | digitalWrite(3, HIGH); 332 | 333 | // use PWM for microstepping support 334 | initPWM1(MOTOR12_64KHZ); 335 | initPWM2(MOTOR12_64KHZ); 336 | setPWM1(255); 337 | setPWM2(255); 338 | 339 | } else if (steppernum == 2) { 340 | latch_state &= ~_BV(MOTOR3_A) & ~_BV(MOTOR3_B) & 341 | ~_BV(MOTOR4_A) & ~_BV(MOTOR4_B); // all motor pins to 0 342 | MC.latch_tx(); 343 | 344 | // enable both H bridges 345 | pinMode(5, OUTPUT); 346 | pinMode(6, OUTPUT); 347 | digitalWrite(5, HIGH); 348 | digitalWrite(6, HIGH); 349 | 350 | // use PWM for microstepping support 351 | // use PWM for microstepping support 352 | initPWM3(1); 353 | initPWM4(1); 354 | setPWM3(255); 355 | setPWM4(255); 356 | } 357 | } 358 | 359 | void AF_Stepper::setSpeed(uint16_t rpm) { 360 | usperstep = 60000000 / ((uint32_t)revsteps * (uint32_t)rpm); 361 | steppingcounter = 0; 362 | } 363 | 364 | void AF_Stepper::release(void) { 365 | if (steppernum == 1) { 366 | latch_state &= ~_BV(MOTOR1_A) & ~_BV(MOTOR1_B) & 367 | ~_BV(MOTOR2_A) & ~_BV(MOTOR2_B); // all motor pins to 0 368 | MC.latch_tx(); 369 | } else if (steppernum == 2) { 370 | latch_state &= ~_BV(MOTOR3_A) & ~_BV(MOTOR3_B) & 371 | ~_BV(MOTOR4_A) & ~_BV(MOTOR4_B); // all motor pins to 0 372 | MC.latch_tx(); 373 | } 374 | } 375 | 376 | void AF_Stepper::step(uint16_t steps, uint8_t dir, uint8_t style) { 377 | uint32_t uspers = usperstep; 378 | uint8_t ret = 0; 379 | 380 | if (style == INTERLEAVE) { 381 | uspers /= 2; 382 | } 383 | else if (style == MICROSTEP) { 384 | uspers /= MICROSTEPS; 385 | steps *= MICROSTEPS; 386 | #ifdef MOTORDEBUG 387 | Serial.print("steps = "); Serial.println(steps, DEC); 388 | #endif 389 | } 390 | 391 | while (steps--) { 392 | ret = onestep(dir, style); 393 | delay(uspers/1000); // in ms 394 | steppingcounter += (uspers % 1000); 395 | if (steppingcounter >= 1000) { 396 | delay(1); 397 | steppingcounter -= 1000; 398 | } 399 | } 400 | if (style == MICROSTEP) { 401 | while ((ret != 0) && (ret != MICROSTEPS)) { 402 | ret = onestep(dir, style); 403 | delay(uspers/1000); // in ms 404 | steppingcounter += (uspers % 1000); 405 | if (steppingcounter >= 1000) { 406 | delay(1); 407 | steppingcounter -= 1000; 408 | } 409 | } 410 | } 411 | } 412 | 413 | uint8_t AF_Stepper::onestep(uint8_t dir, uint8_t style) { 414 | uint8_t a, b, c, d; 415 | uint8_t ocrb, ocra; 416 | 417 | ocra = ocrb = 255; 418 | 419 | if (steppernum == 1) { 420 | a = _BV(MOTOR1_A); 421 | b = _BV(MOTOR2_A); 422 | c = _BV(MOTOR1_B); 423 | d = _BV(MOTOR2_B); 424 | } else if (steppernum == 2) { 425 | a = _BV(MOTOR3_A); 426 | b = _BV(MOTOR4_A); 427 | c = _BV(MOTOR3_B); 428 | d = _BV(MOTOR4_B); 429 | } else { 430 | return 0; 431 | } 432 | 433 | // next determine what sort of stepping procedure we're up to 434 | if (style == SINGLE) { 435 | if ((currentstep/(MICROSTEPS/2)) % 2) { // we're at an odd step, weird 436 | if (dir == FORWARD) { 437 | currentstep += MICROSTEPS/2; 438 | } 439 | else { 440 | currentstep -= MICROSTEPS/2; 441 | } 442 | } else { // go to the next even step 443 | if (dir == FORWARD) { 444 | currentstep += MICROSTEPS; 445 | } 446 | else { 447 | currentstep -= MICROSTEPS; 448 | } 449 | } 450 | } else if (style == DOUBLE) { 451 | if (! (currentstep/(MICROSTEPS/2) % 2)) { // we're at an even step, weird 452 | if (dir == FORWARD) { 453 | currentstep += MICROSTEPS/2; 454 | } else { 455 | currentstep -= MICROSTEPS/2; 456 | } 457 | } else { // go to the next odd step 458 | if (dir == FORWARD) { 459 | currentstep += MICROSTEPS; 460 | } else { 461 | currentstep -= MICROSTEPS; 462 | } 463 | } 464 | } else if (style == INTERLEAVE) { 465 | if (dir == FORWARD) { 466 | currentstep += MICROSTEPS/2; 467 | } else { 468 | currentstep -= MICROSTEPS/2; 469 | } 470 | } 471 | 472 | if (style == MICROSTEP) { 473 | if (dir == FORWARD) { 474 | currentstep++; 475 | } else { 476 | // BACKWARDS 477 | currentstep--; 478 | } 479 | 480 | currentstep += MICROSTEPS*4; 481 | currentstep %= MICROSTEPS*4; 482 | 483 | ocra = ocrb = 0; 484 | if ( (currentstep >= 0) && (currentstep < MICROSTEPS)) { 485 | ocra = microstepcurve[MICROSTEPS - currentstep]; 486 | ocrb = microstepcurve[currentstep]; 487 | } else if ( (currentstep >= MICROSTEPS) && (currentstep < MICROSTEPS*2)) { 488 | ocra = microstepcurve[currentstep - MICROSTEPS]; 489 | ocrb = microstepcurve[MICROSTEPS*2 - currentstep]; 490 | } else if ( (currentstep >= MICROSTEPS*2) && (currentstep < MICROSTEPS*3)) { 491 | ocra = microstepcurve[MICROSTEPS*3 - currentstep]; 492 | ocrb = microstepcurve[currentstep - MICROSTEPS*2]; 493 | } else if ( (currentstep >= MICROSTEPS*3) && (currentstep < MICROSTEPS*4)) { 494 | ocra = microstepcurve[currentstep - MICROSTEPS*3]; 495 | ocrb = microstepcurve[MICROSTEPS*4 - currentstep]; 496 | } 497 | } 498 | 499 | currentstep += MICROSTEPS*4; 500 | currentstep %= MICROSTEPS*4; 501 | 502 | #ifdef MOTORDEBUG 503 | Serial.print("current step: "); Serial.println(currentstep, DEC); 504 | Serial.print(" pwmA = "); Serial.print(ocra, DEC); 505 | Serial.print(" pwmB = "); Serial.println(ocrb, DEC); 506 | #endif 507 | 508 | if (steppernum == 1) { 509 | setPWM1(ocra); 510 | setPWM2(ocrb); 511 | } else if (steppernum == 2) { 512 | setPWM3(ocra); 513 | setPWM4(ocrb); 514 | } 515 | 516 | 517 | // release all 518 | latch_state &= ~a & ~b & ~c & ~d; // all motor pins to 0 519 | 520 | //Serial.println(step, DEC); 521 | if (style == MICROSTEP) { 522 | if ((currentstep >= 0) && (currentstep < MICROSTEPS)) 523 | latch_state |= a | b; 524 | if ((currentstep >= MICROSTEPS) && (currentstep < MICROSTEPS*2)) 525 | latch_state |= b | c; 526 | if ((currentstep >= MICROSTEPS*2) && (currentstep < MICROSTEPS*3)) 527 | latch_state |= c | d; 528 | if ((currentstep >= MICROSTEPS*3) && (currentstep < MICROSTEPS*4)) 529 | latch_state |= d | a; 530 | } else { 531 | switch (currentstep/(MICROSTEPS/2)) { 532 | case 0: 533 | latch_state |= a; // energize coil 1 only 534 | break; 535 | case 1: 536 | latch_state |= a | b; // energize coil 1+2 537 | break; 538 | case 2: 539 | latch_state |= b; // energize coil 2 only 540 | break; 541 | case 3: 542 | latch_state |= b | c; // energize coil 2+3 543 | break; 544 | case 4: 545 | latch_state |= c; // energize coil 3 only 546 | break; 547 | case 5: 548 | latch_state |= c | d; // energize coil 3+4 549 | break; 550 | case 6: 551 | latch_state |= d; // energize coil 4 only 552 | break; 553 | case 7: 554 | latch_state |= d | a; // energize coil 1+4 555 | break; 556 | } 557 | } 558 | 559 | 560 | MC.latch_tx(); 561 | return currentstep; 562 | } 563 | 564 | 565 | -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Firmware/LIFA_Base/AFMotor.h: -------------------------------------------------------------------------------- 1 | // Adafruit Motor shield library 2 | // copyright Adafruit Industries LLC, 2009 3 | // this code is public domain, enjoy! 4 | 5 | #ifndef _AFMotor_h_ 6 | #define _AFMotor_h_ 7 | 8 | #include 9 | #include 10 | 11 | //#define MOTORDEBUG 1 12 | 13 | #define MICROSTEPS 16 // 8 or 16 14 | 15 | #define MOTOR12_64KHZ _BV(CS20) // no prescale 16 | #define MOTOR12_8KHZ _BV(CS21) // divide by 8 17 | #define MOTOR12_2KHZ _BV(CS21) | _BV(CS20) // divide by 32 18 | #define MOTOR12_1KHZ _BV(CS22) // divide by 64 19 | 20 | #define MOTOR34_64KHZ _BV(CS00) // no prescale 21 | #define MOTOR34_8KHZ _BV(CS01) // divide by 8 22 | #define MOTOR34_1KHZ _BV(CS01) | _BV(CS00) // divide by 64 23 | 24 | #define MOTOR1_A 2 25 | #define MOTOR1_B 3 26 | #define MOTOR2_A 1 27 | #define MOTOR2_B 4 28 | #define MOTOR4_A 0 29 | #define MOTOR4_B 6 30 | #define MOTOR3_A 5 31 | #define MOTOR3_B 7 32 | 33 | #define FORWARD 1 34 | #define BACKWARD 2 35 | #define BRAKE 3 36 | #define RELEASE 4 37 | 38 | #define SINGLE 1 39 | #define DOUBLE 2 40 | #define INTERLEAVE 3 41 | #define MICROSTEP 4 42 | 43 | /* 44 | #define LATCH 4 45 | #define LATCH_DDR DDRB 46 | #define LATCH_PORT PORTB 47 | 48 | #define CLK_PORT PORTD 49 | #define CLK_DDR DDRD 50 | #define CLK 4 51 | 52 | #define ENABLE_PORT PORTD 53 | #define ENABLE_DDR DDRD 54 | #define ENABLE 7 55 | 56 | #define SER 0 57 | #define SER_DDR DDRB 58 | #define SER_PORT PORTB 59 | */ 60 | 61 | // Arduino pin names 62 | #define MOTORLATCH 12 63 | #define MOTORCLK 4 64 | #define MOTORENABLE 7 65 | #define MOTORDATA 8 66 | 67 | class AFMotorController 68 | { 69 | public: 70 | AFMotorController(void); 71 | void enable(void); 72 | friend class AF_DCMotor; 73 | void latch_tx(void); 74 | }; 75 | 76 | class AF_DCMotor 77 | { 78 | public: 79 | AF_DCMotor(uint8_t motornum, uint8_t freq = MOTOR34_8KHZ); 80 | void run(uint8_t); 81 | void setSpeed(uint8_t); 82 | 83 | private: 84 | uint8_t motornum, pwmfreq; 85 | }; 86 | 87 | class AF_Stepper { 88 | public: 89 | AF_Stepper(uint16_t, uint8_t); 90 | void step(uint16_t steps, uint8_t dir, uint8_t style = SINGLE); 91 | void setSpeed(uint16_t); 92 | uint8_t onestep(uint8_t dir, uint8_t style); 93 | void release(void); 94 | uint16_t revsteps; // # steps per revolution 95 | uint8_t steppernum; 96 | uint32_t usperstep, steppingcounter; 97 | private: 98 | uint8_t currentstep; 99 | 100 | }; 101 | 102 | uint8_t getlatchstate(void); 103 | 104 | #endif 105 | 106 | -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Firmware/LIFA_Base/AccelStepper.cpp: -------------------------------------------------------------------------------- 1 | // AccelStepper.cpp 2 | // 3 | // Copyright (C) 2009 Mike McCauley 4 | // $Id: AccelStepper.cpp,v 1.4 2011/01/05 01:51:01 mikem Exp $ 5 | 6 | #if defined(ARDUINO) && ARDUINO >= 100 7 | #include "Arduino.h" 8 | #else 9 | #include "WProgram.h" 10 | #endif 11 | 12 | #include "AccelStepper.h" 13 | 14 | void AccelStepper::moveTo(long absolute) 15 | { 16 | _targetPos = absolute; 17 | computeNewSpeed(); 18 | } 19 | 20 | void AccelStepper::move(long relative) 21 | { 22 | moveTo(_currentPos + relative); 23 | } 24 | 25 | // Implements steps according to the current speed 26 | // You must call this at least once per step 27 | // returns true if a step occurred 28 | boolean AccelStepper::runSpeed() 29 | { 30 | unsigned long time = micros(); 31 | 32 | // if ( (time >= (_lastStepTime + _stepInterval)) // okay if both current time and next step time wrap 33 | // || ((time < _lastRunTime) && (time > (0xFFFFFFFF-(_lastStepTime+_stepInterval)))) ) // check if only current time has wrapped 34 | 35 | // unsigned long nextStepTime = _lastStepTime + _stepInterval; 36 | // if ( ((nextStepTime < _lastStepTime) && (time < _lastStepTime) && (time >= nextStepTime)) 37 | // || ((nextStepTime >= _lastStepTime) && (time >= nextStepTime))) 38 | 39 | // TESTING: 40 | //time += (0xffffffff - 10000000); 41 | 42 | 43 | // Gymnastics to detect wrapping of either the nextStepTime and/or the current time 44 | unsigned long nextStepTime = _lastStepTime + _stepInterval; 45 | if ( ((nextStepTime >= _lastStepTime) && ((time >= nextStepTime) || (time < _lastStepTime))) 46 | || ((nextStepTime < _lastStepTime) && ((time >= nextStepTime) && (time < _lastStepTime)))) 47 | 48 | { 49 | if (_speed > 0.0f) 50 | { 51 | // Clockwise 52 | _currentPos += 1; 53 | } 54 | else if (_speed < 0.0f) 55 | { 56 | // Anticlockwise 57 | _currentPos -= 1; 58 | } 59 | step(_currentPos & 0x7); // Bottom 3 bits (same as mod 8, but works with + and - numbers) 60 | 61 | // _lastRunTime = time; 62 | _lastStepTime = time; 63 | return true; 64 | } 65 | else 66 | { 67 | // _lastRunTime = time; 68 | return false; 69 | } 70 | } 71 | 72 | long AccelStepper::distanceToGo() 73 | { 74 | return _targetPos - _currentPos; 75 | } 76 | 77 | long AccelStepper::targetPosition() 78 | { 79 | return _targetPos; 80 | } 81 | 82 | long AccelStepper::currentPosition() 83 | { 84 | return _currentPos; 85 | } 86 | 87 | // Useful during initialisations or after initial positioning 88 | void AccelStepper::setCurrentPosition(long position) 89 | { 90 | _targetPos = _currentPos = position; 91 | computeNewSpeed(); // Expect speed of 0 92 | } 93 | 94 | void AccelStepper::computeNewSpeed() 95 | { 96 | setSpeed(desiredSpeed()); 97 | } 98 | 99 | // Work out and return a new speed. 100 | // Subclasses can override if they want 101 | // Implement acceleration, deceleration and max speed 102 | // Negative speed is anticlockwise 103 | // This is called: 104 | // after each step 105 | // after user changes: 106 | // maxSpeed 107 | // acceleration 108 | // target position (relative or absolute) 109 | float AccelStepper::desiredSpeed() 110 | { 111 | float requiredSpeed; 112 | long distanceTo = distanceToGo(); 113 | 114 | // Max possible speed that can still decelerate in the available distance 115 | // Use speed squared to avoid using sqrt 116 | if (distanceTo == 0) 117 | return 0.0f; // We're there 118 | else if (distanceTo > 0) // Clockwise 119 | requiredSpeed = (2.0f * distanceTo * _acceleration); 120 | else // Anticlockwise 121 | requiredSpeed = -(2.0f * -distanceTo * _acceleration); 122 | 123 | float sqrSpeed = (_speed * _speed) * ((_speed > 0.0f) ? 1.0f : -1.0f); 124 | if (requiredSpeed > sqrSpeed) 125 | { 126 | if (_speed == _maxSpeed) // Reduces processor load by avoiding extra calculations below 127 | { 128 | // Maintain max speed 129 | requiredSpeed = _maxSpeed; 130 | } 131 | else 132 | { 133 | // Need to accelerate in clockwise direction 134 | if (_speed == 0.0f) 135 | requiredSpeed = sqrt(2.0f * _acceleration); 136 | else 137 | requiredSpeed = _speed + abs(_acceleration / _speed); 138 | if (requiredSpeed > _maxSpeed) 139 | requiredSpeed = _maxSpeed; 140 | } 141 | } 142 | else if (requiredSpeed < sqrSpeed) 143 | { 144 | if (_speed == -_maxSpeed) // Reduces processor load by avoiding extra calculations below 145 | { 146 | // Maintain max speed 147 | requiredSpeed = -_maxSpeed; 148 | } 149 | else 150 | { 151 | // Need to accelerate in clockwise direction 152 | if (_speed == 0.0f) 153 | requiredSpeed = -sqrt(2.0f * _acceleration); 154 | else 155 | requiredSpeed = _speed - abs(_acceleration / _speed); 156 | if (requiredSpeed < -_maxSpeed) 157 | requiredSpeed = -_maxSpeed; 158 | } 159 | } 160 | else // if (requiredSpeed == sqrSpeed) 161 | requiredSpeed = _speed; 162 | 163 | // Serial.println(requiredSpeed); 164 | return requiredSpeed; 165 | } 166 | 167 | // Run the motor to implement speed and acceleration in order to proceed to the target position 168 | // You must call this at least once per step, preferably in your main loop 169 | // If the motor is in the desired position, the cost is very small 170 | // returns true if we are still running to position 171 | boolean AccelStepper::run() 172 | { 173 | if (_targetPos == _currentPos) 174 | return false; 175 | 176 | if (runSpeed()) 177 | computeNewSpeed(); 178 | return true; 179 | } 180 | 181 | AccelStepper::AccelStepper(uint8_t pins, uint8_t pin1, uint8_t pin2, uint8_t pin3, uint8_t pin4) 182 | { 183 | _pins = pins; 184 | _currentPos = 0; 185 | _targetPos = 0; 186 | _speed = 0.0; 187 | _maxSpeed = 1.0; 188 | _acceleration = 1.0; 189 | _stepInterval = 0; 190 | // _lastRunTime = 0; 191 | _minPulseWidth = 1; 192 | _lastStepTime = 0; 193 | _pin1 = pin1; 194 | _pin2 = pin2; 195 | _pin3 = pin3; 196 | _pin4 = pin4; 197 | //_stepInterval = 20000; 198 | //_speed = 50.0; 199 | //_lastRunTime = 0xffffffff - 20000; 200 | //_lastStepTime = 0xffffffff - 20000 - 10000; 201 | enableOutputs(); 202 | } 203 | 204 | AccelStepper::AccelStepper(void (*forward)(), void (*backward)()) 205 | { 206 | _pins = 0; 207 | _currentPos = 0; 208 | _targetPos = 0; 209 | _speed = 0.0; 210 | _maxSpeed = 1.0; 211 | _acceleration = 1.0; 212 | _stepInterval = 0; 213 | // _lastRunTime = 0; 214 | _minPulseWidth = 1; 215 | _lastStepTime = 0; 216 | _pin1 = 0; 217 | _pin2 = 0; 218 | _pin3 = 0; 219 | _pin4 = 0; 220 | _forward = forward; 221 | _backward = backward; 222 | } 223 | 224 | void AccelStepper::setMaxSpeed(float speed) 225 | { 226 | _maxSpeed = speed; 227 | computeNewSpeed(); 228 | } 229 | 230 | void AccelStepper::setAcceleration(float acceleration) 231 | { 232 | _acceleration = acceleration; 233 | computeNewSpeed(); 234 | } 235 | 236 | void AccelStepper::setSpeed(float speed) 237 | { 238 | if (speed == _speed) 239 | return; 240 | 241 | if ((speed > 0.0f) && (speed > _maxSpeed)) 242 | _speed = _maxSpeed; 243 | else if ((speed < 0.0f) && (speed < -_maxSpeed)) 244 | _speed = -_maxSpeed; 245 | else 246 | _speed = speed; 247 | 248 | _stepInterval = abs(1000000.0 / _speed); 249 | } 250 | 251 | float AccelStepper::speed() 252 | { 253 | return _speed; 254 | } 255 | 256 | // Subclasses can override 257 | void AccelStepper::step(uint8_t step) 258 | { 259 | switch (_pins) 260 | { 261 | case 0: 262 | step0(); 263 | break; 264 | case 1: 265 | step1(step); 266 | break; 267 | 268 | case 2: 269 | step2(step); 270 | break; 271 | 272 | case 4: 273 | step4(step); 274 | break; 275 | 276 | case 8: 277 | step8(step); 278 | break; 279 | } 280 | } 281 | 282 | // 0 pin step function (ie for functional usage) 283 | void AccelStepper::step0() 284 | { 285 | if (_speed > 0) { 286 | _forward(); 287 | } else { 288 | _backward(); 289 | } 290 | } 291 | 292 | // 1 pin step function (ie for stepper drivers) 293 | // This is passed the current step number (0 to 7) 294 | // Subclasses can override 295 | void AccelStepper::step1(uint8_t step) 296 | { 297 | digitalWrite(_pin2, _speed > 0); // Direction 298 | // Caution 200ns setup time 299 | digitalWrite(_pin1, HIGH); 300 | // Delay the minimum allowed pulse width 301 | delayMicroseconds(_minPulseWidth); 302 | digitalWrite(_pin1, LOW); 303 | } 304 | 305 | // 2 pin step function 306 | // This is passed the current step number (0 to 7) 307 | // Subclasses can override 308 | void AccelStepper::step2(uint8_t step) 309 | { 310 | switch (step & 0x3) 311 | { 312 | case 0: /* 01 */ 313 | digitalWrite(_pin1, LOW); 314 | digitalWrite(_pin2, HIGH); 315 | break; 316 | 317 | case 1: /* 11 */ 318 | digitalWrite(_pin1, HIGH); 319 | digitalWrite(_pin2, HIGH); 320 | break; 321 | 322 | case 2: /* 10 */ 323 | digitalWrite(_pin1, HIGH); 324 | digitalWrite(_pin2, LOW); 325 | break; 326 | 327 | case 3: /* 00 */ 328 | digitalWrite(_pin1, LOW); 329 | digitalWrite(_pin2, LOW); 330 | break; 331 | } 332 | } 333 | 334 | // 4 pin step function for half stepper 335 | // This is passed the current step number (0 to 7) 336 | // Subclasses can override 337 | void AccelStepper::step4(uint8_t step) 338 | { 339 | switch (step & 0x3) 340 | { 341 | case 0: // 1010 342 | digitalWrite(_pin1, HIGH); 343 | digitalWrite(_pin2, LOW); 344 | digitalWrite(_pin3, HIGH); 345 | digitalWrite(_pin4, LOW); 346 | break; 347 | 348 | case 1: // 0110 349 | digitalWrite(_pin1, LOW); 350 | digitalWrite(_pin2, HIGH); 351 | digitalWrite(_pin3, HIGH); 352 | digitalWrite(_pin4, LOW); 353 | break; 354 | 355 | case 2: //0101 356 | digitalWrite(_pin1, LOW); 357 | digitalWrite(_pin2, HIGH); 358 | digitalWrite(_pin3, LOW); 359 | digitalWrite(_pin4, HIGH); 360 | break; 361 | 362 | case 3: //1001 363 | digitalWrite(_pin1, HIGH); 364 | digitalWrite(_pin2, LOW); 365 | digitalWrite(_pin3, LOW); 366 | digitalWrite(_pin4, HIGH); 367 | break; 368 | } 369 | } 370 | 371 | 372 | // 4 pin step function 373 | // This is passed the current step number (0 to 3) 374 | // Subclasses can override 375 | void AccelStepper::step8(uint8_t step) 376 | { 377 | switch (step & 0x7) 378 | { 379 | case 0: // 1000 380 | digitalWrite(_pin1, HIGH); 381 | digitalWrite(_pin2, LOW); 382 | digitalWrite(_pin3, LOW); 383 | digitalWrite(_pin4, LOW); 384 | break; 385 | 386 | case 1: // 1010 387 | digitalWrite(_pin1, HIGH); 388 | digitalWrite(_pin2, LOW); 389 | digitalWrite(_pin3, HIGH); 390 | digitalWrite(_pin4, LOW); 391 | break; 392 | 393 | case 2: // 0010 394 | digitalWrite(_pin1, LOW); 395 | digitalWrite(_pin2, LOW); 396 | digitalWrite(_pin3, HIGH); 397 | digitalWrite(_pin4, LOW); 398 | break; 399 | 400 | case 3: // 0110 401 | digitalWrite(_pin1, LOW); 402 | digitalWrite(_pin2, HIGH); 403 | digitalWrite(_pin3, HIGH); 404 | digitalWrite(_pin4, LOW); 405 | break; 406 | 407 | case 4: // 0100 408 | digitalWrite(_pin1, LOW); 409 | digitalWrite(_pin2, HIGH); 410 | digitalWrite(_pin3, LOW); 411 | digitalWrite(_pin4, LOW); 412 | break; 413 | 414 | case 5: //0101 415 | digitalWrite(_pin1, LOW); 416 | digitalWrite(_pin2, HIGH); 417 | digitalWrite(_pin3, LOW); 418 | digitalWrite(_pin4, HIGH); 419 | break; 420 | 421 | case 6: // 0001 422 | digitalWrite(_pin1, LOW); 423 | digitalWrite(_pin2, LOW); 424 | digitalWrite(_pin3, LOW); 425 | digitalWrite(_pin4, HIGH); 426 | break; 427 | 428 | case 7: //1001 429 | digitalWrite(_pin1, HIGH); 430 | digitalWrite(_pin2, LOW); 431 | digitalWrite(_pin3, LOW); 432 | digitalWrite(_pin4, HIGH); 433 | break; 434 | } 435 | } 436 | 437 | // Prevents power consumption on the outputs 438 | void AccelStepper::disableOutputs() 439 | { 440 | if (! _pins) return; 441 | 442 | digitalWrite(_pin1, LOW); 443 | digitalWrite(_pin2, LOW); 444 | if (_pins == 4 || _pins == 8) 445 | { 446 | digitalWrite(_pin3, LOW); 447 | digitalWrite(_pin4, LOW); 448 | } 449 | } 450 | 451 | void AccelStepper::enableOutputs() 452 | { 453 | if (! _pins) return; 454 | 455 | pinMode(_pin1, OUTPUT); 456 | pinMode(_pin2, OUTPUT); 457 | if (_pins == 4 || _pins == 8) 458 | { 459 | pinMode(_pin3, OUTPUT); 460 | pinMode(_pin4, OUTPUT); 461 | } 462 | } 463 | 464 | void AccelStepper::setMinPulseWidth(unsigned int minWidth) 465 | { 466 | _minPulseWidth = minWidth; 467 | } 468 | 469 | // Blocks until the target position is reached 470 | void AccelStepper::runToPosition() 471 | { 472 | while (run()) 473 | ; 474 | } 475 | 476 | boolean AccelStepper::runSpeedToPosition() 477 | { 478 | return _targetPos!=_currentPos ? runSpeed() : false; 479 | } 480 | 481 | // Blocks until the new target position is reached 482 | void AccelStepper::runToNewPosition(long position) 483 | { 484 | moveTo(position); 485 | runToPosition(); 486 | } 487 | 488 | -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Firmware/LIFA_Base/AccelStepper.h: -------------------------------------------------------------------------------- 1 | // AccelStepper.h 2 | // 3 | /// \mainpage AccelStepper library for Arduino 4 | /// 5 | /// This is the Arduino AccelStepper library. 6 | /// It provides an object-oriented interface for 2 or 4 pin stepper motors. 7 | /// 8 | /// The standard Arduino IDE includes the Stepper library 9 | /// (http://arduino.cc/en/Reference/Stepper) for stepper motors. It is 10 | /// perfectly adequate for simple, single motor applications. 11 | /// 12 | /// AccelStepper significantly improves on the standard Arduino Stepper library in several ways: 13 | /// \li Supports acceleration and deceleration 14 | /// \li Supports multiple simultaneous steppers, with independent concurrent stepping on each stepper 15 | /// \li API functions never delay() or block 16 | /// \li Supports 2 and 4 wire steppers, plus 4 wire half steppers. 17 | /// \li Supports alternate stepping functions to enable support of AFMotor (https://github.com/adafruit/Adafruit-Motor-Shield-library) 18 | /// \li Supports stepper drivers such as the Sparkfun EasyDriver (based on 3967 driver chip) 19 | /// \li Very slow speeds are supported 20 | /// \li Extensive API 21 | /// \li Subclass support 22 | /// 23 | /// The latest version of this documentation can be downloaded from 24 | /// http://www.open.com.au/mikem/arduino/AccelStepper 25 | /// 26 | /// Example Arduino programs are included to show the main modes of use. 27 | /// 28 | /// The version of the package that this documentation refers to can be downloaded 29 | /// from http://www.open.com.au/mikem/arduino/AccelStepper/AccelStepper-1.9.zip 30 | /// You can find the latest version at http://www.open.com.au/mikem/arduino/AccelStepper 31 | /// 32 | /// Tested on Arduino Diecimila and Mega with arduino-0018 & arduino-0021 33 | /// on OpenSuSE 11.1 and avr-libc-1.6.1-1.15, 34 | /// cross-avr-binutils-2.19-9.1, cross-avr-gcc-4.1.3_20080612-26.5. 35 | /// 36 | /// \par Installation 37 | /// Install in the usual way: unzip the distribution zip file to the libraries 38 | /// sub-folder of your sketchbook. 39 | /// 40 | /// This software is Copyright (C) 2010 Mike McCauley. Use is subject to license 41 | /// conditions. The main licensing options available are GPL V2 or Commercial: 42 | /// 43 | /// \par Open Source Licensing GPL V2 44 | /// This is the appropriate option if you want to share the source code of your 45 | /// application with everyone you distribute it to, and you also want to give them 46 | /// the right to share who uses it. If you wish to use this software under Open 47 | /// Source Licensing, you must contribute all your source code to the open source 48 | /// community in accordance with the GPL Version 2 when your application is 49 | /// distributed. See http://www.gnu.org/copyleft/gpl.html 50 | /// 51 | /// \par Commercial Licensing 52 | /// This is the appropriate option if you are creating proprietary applications 53 | /// and you are not prepared to distribute and share the source code of your 54 | /// application. Contact info@open.com.au for details. 55 | /// 56 | /// \par Revision History 57 | /// \version 1.0 Initial release 58 | /// 59 | /// \version 1.1 Added speed() function to get the current speed. 60 | /// \version 1.2 Added runSpeedToPosition() submitted by Gunnar Arndt. 61 | /// \version 1.3 Added support for stepper drivers (ie with Step and Direction inputs) with _pins == 1 62 | /// \version 1.4 Added functional contructor to support AFMotor, contributed by Limor, with example sketches. 63 | /// \version 1.5 Improvements contributed by Peter Mousley: Use of microsecond steps and other speed improvements 64 | /// to increase max stepping speed to about 4kHz. New option for user to set the min allowed pulse width. 65 | /// Added checks for already running at max speed and skip further calcs if so. 66 | /// \version 1.6 Fixed a problem with wrapping of microsecond stepping that could cause stepping to hang. 67 | /// Reported by Sandy Noble. 68 | /// Removed redundant _lastRunTime member. 69 | /// \version 1.7 Fixed a bug where setCurrentPosition() did always work as expected. Reported by Peter Linhart. 70 | /// Reported by Sandy Noble. 71 | /// Removed redundant _lastRunTime member. 72 | /// \version 1.8 Added support for 4 pin half-steppers, requested by Harvey Moon 73 | /// \version 1.9 setCurrentPosition() now also sets motor speed to 0. 74 | /// 75 | /// 76 | /// \author Mike McCauley (mikem@open.com.au) 77 | // Copyright (C) 2009 Mike McCauley 78 | // $Id: AccelStepper.h,v 1.5 2011/03/21 00:42:15 mikem Exp mikem $ 79 | 80 | #ifndef AccelStepper_h 81 | #define AccelStepper_h 82 | 83 | #include 84 | #if defined(ARDUINO) && ARDUINO >= 100 85 | #include 86 | #else 87 | #include 88 | #endif 89 | 90 | 91 | 92 | // These defs cause trouble on some versions of Arduino 93 | #undef round 94 | 95 | ///////////////////////////////////////////////////////////////////// 96 | /// \class AccelStepper AccelStepper.h 97 | /// \brief Support for stepper motors with acceleration etc. 98 | /// 99 | /// This defines a single 2 or 4 pin stepper motor, or stepper moter with fdriver chip, with optional 100 | /// acceleration, deceleration, absolute positioning commands etc. Multiple 101 | /// simultaneous steppers are supported, all moving 102 | /// at different speeds and accelerations. 103 | /// 104 | /// \par Operation 105 | /// This module operates by computing a step time in microseconds. The step 106 | /// time is recomputed after each step and after speed and acceleration 107 | /// parameters are changed by the caller. The time of each step is recorded in 108 | /// microseconds. The run() function steps the motor if a new step is due. 109 | /// The run() function must be called frequently until the motor is in the 110 | /// desired position, after which time run() will do nothing. 111 | /// 112 | /// \par Positioning 113 | /// Positions are specified by a signed long integer. At 114 | /// construction time, the current position of the motor is consider to be 0. Positive 115 | /// positions are clockwise from the initial position; negative positions are 116 | /// anticlockwise. The curent position can be altered for instance after 117 | /// initialization positioning. 118 | /// 119 | /// \par Caveats 120 | /// This is an open loop controller: If the motor stalls or is oversped, 121 | /// AccelStepper will not have a correct 122 | /// idea of where the motor really is (since there is no feedback of the motor's 123 | /// real position. We only know where we _think_ it is, relative to the 124 | /// initial starting point). 125 | /// 126 | /// The fastest motor speed that can be reliably supported is 4000 steps per 127 | /// second (4 kHz) at a clock frequency of 16 MHz. However, any speed less than that 128 | /// down to very slow speeds (much less than one per second) are also supported, 129 | /// provided the run() function is called frequently enough to step the motor 130 | /// whenever required for the speed set. 131 | class AccelStepper 132 | { 133 | public: 134 | /// Constructor. You can have multiple simultaneous steppers, all moving 135 | /// at different speeds and accelerations, provided you call their run() 136 | /// functions at frequent enough intervals. Current Position is set to 0, target 137 | /// position is set to 0. MaxSpeed and Acceleration default to 1.0. 138 | /// The motor pins will be initialised to OUTPUT mode during the 139 | /// constructor by a call to enableOutputs(). 140 | /// \param[in] pins Number of pins to interface to. 1, 2 or 4 are 141 | /// supported. 1 means a stepper driver (with Step and Direction pins) 142 | /// 2 means a 2 wire stepper. 4 means a 4 wire stepper. 8 means a 4 wire half stepper 143 | /// Defaults to 4 pins. 144 | /// \param[in] pin1 Arduino digital pin number for motor pin 1. Defaults 145 | /// to pin 2. For a driver (pins==1), this is the Step input to the driver. Low to high transition means to step) 146 | /// \param[in] pin2 Arduino digital pin number for motor pin 2. Defaults 147 | /// to pin 3. For a driver (pins==1), this is the Direction input the driver. High means forward. 148 | /// \param[in] pin3 Arduino digital pin number for motor pin 3. Defaults 149 | /// to pin 4. 150 | /// \param[in] pin4 Arduino digital pin number for motor pin 4. Defaults 151 | /// to pin 5. 152 | AccelStepper(uint8_t pins = 4, uint8_t pin1 = 2, uint8_t pin2 = 3, uint8_t pin3 = 4, uint8_t pin4 = 5); 153 | 154 | /// Alternate Constructor which will call your own functions for forward and backward steps. 155 | /// You can have multiple simultaneous steppers, all moving 156 | /// at different speeds and accelerations, provided you call their run() 157 | /// functions at frequent enough intervals. Current Position is set to 0, target 158 | /// position is set to 0. MaxSpeed and Acceleration default to 1.0. 159 | /// Any motor initialization should happen before hand, no pins are used or initialized. 160 | /// \param[in] forward void-returning procedure that will make a forward step 161 | /// \param[in] backward void-returning procedure that will make a backward step 162 | AccelStepper(void (*forward)(), void (*backward)()); 163 | 164 | /// Set the target position. The run() function will try to move the motor 165 | /// from the current position to the target position set by the most 166 | /// recent call to this function. 167 | /// \param[in] absolute The desired absolute position. Negative is 168 | /// anticlockwise from the 0 position. 169 | void moveTo(long absolute); 170 | 171 | /// Set the target position relative to the current position 172 | /// \param[in] relative The desired position relative to the current position. Negative is 173 | /// anticlockwise from the current position. 174 | void move(long relative); 175 | 176 | /// Poll the motor and step it if a step is due, implementing 177 | /// accelerations and decelerations to achive the ratget position. You must call this as 178 | /// fequently as possible, but at least once per minimum step interval, 179 | /// preferably in your main loop. 180 | /// \return true if the motor is at the target position. 181 | boolean run(); 182 | 183 | /// Poll the motor and step it if a step is due, implmenting a constant 184 | /// speed as set by the most recent call to setSpeed(). 185 | /// \return true if the motor was stepped. 186 | boolean runSpeed(); 187 | 188 | /// Sets the maximum permitted speed. the run() function will accelerate 189 | /// up to the speed set by this function. 190 | /// \param[in] speed The desired maximum speed in steps per second. Must 191 | /// be > 0. Speeds of more than 1000 steps per second are unreliable. 192 | void setMaxSpeed(float speed); 193 | 194 | /// Sets the acceleration and deceleration parameter. 195 | /// \param[in] acceleration The desired acceleration in steps per second 196 | /// per second. Must be > 0. 197 | void setAcceleration(float acceleration); 198 | 199 | /// Sets the desired constant speed for use with runSpeed(). 200 | /// \param[in] speed The desired constant speed in steps per 201 | /// second. Positive is clockwise. Speeds of more than 1000 steps per 202 | /// second are unreliable. Very slow speeds may be set (eg 0.00027777 for 203 | /// once per hour, approximately. Speed accuracy depends on the Arduino 204 | /// crystal. Jitter depends on how frequently you call the runSpeed() function. 205 | void setSpeed(float speed); 206 | 207 | /// The most recently set speed 208 | /// \return the most recent speed in steps per second 209 | float speed(); 210 | 211 | /// The distance from the current position to the target position. 212 | /// \return the distance from the current position to the target position 213 | /// in steps. Positive is clockwise from the current position. 214 | long distanceToGo(); 215 | 216 | /// The most recently set target position. 217 | /// \return the target position 218 | /// in steps. Positive is clockwise from the 0 position. 219 | long targetPosition(); 220 | 221 | 222 | /// The currently motor position. 223 | /// \return the current motor position 224 | /// in steps. Positive is clockwise from the 0 position. 225 | long currentPosition(); 226 | 227 | /// Resets the current position of the motor, so that wherever the motor 228 | /// happens to be right now is considered to be the new 0 position. Useful 229 | /// for setting a zero position on a stepper after an initial hardware 230 | /// positioning move. 231 | /// Has the side effect of setting the current motor speed to 0. 232 | /// \param[in] position The position in steps of wherever the motor 233 | /// happens to be right now. 234 | void setCurrentPosition(long position); 235 | 236 | /// Moves the motor to the target position and blocks until it is at 237 | /// position. Dont use this in event loops, since it blocks. 238 | void runToPosition(); 239 | 240 | /// Runs at the currently selected speed until the target position is reached 241 | /// Does not implement accelerations. 242 | boolean runSpeedToPosition(); 243 | 244 | /// Moves the motor to the new target position and blocks until it is at 245 | /// position. Dont use this in event loops, since it blocks. 246 | /// \param[in] position The new target position. 247 | void runToNewPosition(long position); 248 | 249 | /// Disable motor pin outputs by setting them all LOW 250 | /// Depending on the design of your electronics this may turn off 251 | /// the power to the motor coils, saving power. 252 | /// This is useful to support Arduino low power modes: disable the outputs 253 | /// during sleep and then reenable with enableOutputs() before stepping 254 | /// again. 255 | void disableOutputs(); 256 | 257 | /// Enable motor pin outputs by setting the motor pins to OUTPUT 258 | /// mode. Called automatically by the constructor. 259 | void enableOutputs(); 260 | 261 | /// Sets the minimum pulse width allowed by the stepper driver. 262 | /// \param[in] minWidth The minimum pulse width in microseconds. 263 | void setMinPulseWidth(unsigned int minWidth); 264 | 265 | protected: 266 | 267 | /// Forces the library to compute a new instantaneous speed and set that as 268 | /// the current speed. Calls 269 | /// desiredSpeed(), which can be overridden by subclasses. It is called by 270 | /// the library: 271 | /// \li after each step 272 | /// \li after change to maxSpeed through setMaxSpeed() 273 | /// \li after change to acceleration through setAcceleration() 274 | /// \li after change to target position (relative or absolute) through 275 | /// move() or moveTo() 276 | void computeNewSpeed(); 277 | 278 | /// Called to execute a step. Only called when a new step is 279 | /// required. Subclasses may override to implement new stepping 280 | /// interfaces. The default calls step1(), step2(), step4() or step8() depending on the 281 | /// number of pins defined for the stepper. 282 | /// \param[in] step The current step phase number (0 to 7) 283 | virtual void step(uint8_t step); 284 | 285 | /// Called to execute a step using stepper functions (pins = 0) Only called when a new step is 286 | /// required. Calls _forward() or _backward() to perform the step 287 | virtual void step0(void); 288 | 289 | /// Called to execute a step on a stepper drover (ie where pins == 1). Only called when a new step is 290 | /// required. Subclasses may override to implement new stepping 291 | /// interfaces. The default sets or clears the outputs of Step pin1 to step, 292 | /// and sets the output of _pin2 to the desired direction. The Step pin (_pin1) is pulsed for 1 microsecond 293 | /// which is the minimum STEP pulse width for the 3967 driver. 294 | /// \param[in] step The current step phase number (0 to 7) 295 | virtual void step1(uint8_t step); 296 | 297 | /// Called to execute a step on a 2 pin motor. Only called when a new step is 298 | /// required. Subclasses may override to implement new stepping 299 | /// interfaces. The default sets or clears the outputs of pin1 and pin2 300 | /// \param[in] step The current step phase number (0 to 7) 301 | virtual void step2(uint8_t step); 302 | 303 | /// Called to execute a step on a 4 pin motor. Only called when a new step is 304 | /// required. Subclasses may override to implement new stepping 305 | /// interfaces. The default sets or clears the outputs of pin1, pin2, 306 | /// pin3, pin4. 307 | /// \param[in] step The current step phase number (0 to 7) 308 | virtual void step4(uint8_t step); 309 | 310 | /// Called to execute a step on a 4 pin half-steper motor. Only called when a new step is 311 | /// required. Subclasses may override to implement new stepping 312 | /// interfaces. The default sets or clears the outputs of pin1, pin2, 313 | /// pin3, pin4. 314 | /// \param[in] step The current step phase number (0 to 7) 315 | virtual void step8(uint8_t step); 316 | 317 | /// Compute and return the desired speed. The default algorithm uses 318 | /// maxSpeed, acceleration and the current speed to set a new speed to 319 | /// move the motor from teh current position to the target 320 | /// position. Subclasses may override this to provide an alternate 321 | /// algorithm (but do not block). Called by computeNewSpeed whenever a new speed neds to be 322 | /// computed. 323 | virtual float desiredSpeed(); 324 | 325 | private: 326 | /// Number of pins on the stepper motor. Permits 2 or 4. 2 pins is a 327 | /// bipolar, and 4 pins is a unipolar. 328 | uint8_t _pins; // 2 or 4 329 | 330 | /// Arduino pin number for the 2 or 4 pins required to interface to the 331 | /// stepper motor. 332 | uint8_t _pin1, _pin2, _pin3, _pin4; 333 | 334 | /// The current absolution position in steps. 335 | long _currentPos; // Steps 336 | 337 | /// The target position in steps. The AccelStepper library will move the 338 | /// motor from teh _currentPos to the _targetPos, taking into account the 339 | /// max speed, acceleration and deceleration 340 | long _targetPos; // Steps 341 | 342 | /// The current motos speed in steps per second 343 | /// Positive is clockwise 344 | float _speed; // Steps per second 345 | 346 | /// The maximum permitted speed in steps per second. Must be > 0. 347 | float _maxSpeed; 348 | 349 | /// The acceleration to use to accelerate or decelerate the motor in steps 350 | /// per second per second. Must be > 0 351 | float _acceleration; 352 | 353 | /// The current interval between steps in microseconds 354 | unsigned long _stepInterval; 355 | 356 | /// The last run time (when runSpeed() was last called) in microseconds 357 | // unsigned long _lastRunTime; 358 | 359 | /// The last step time in microseconds 360 | unsigned long _lastStepTime; 361 | 362 | /// The minimum allowed pulse width in microseconds 363 | unsigned int _minPulseWidth; 364 | 365 | // The pointer to a forward-step procedure 366 | void (*_forward)(); 367 | 368 | // The pointer to a backward-step procedure 369 | void (*_backward)(); 370 | }; 371 | 372 | #endif 373 | 374 | -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Firmware/LIFA_Base/IRremote.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * IRremote 3 | * Version 0.11 August, 2009 4 | * Copyright 2009 Ken Shirriff 5 | * For details, see http://arcfn.com/2009/08/multi-protocol-infrared-remote-library.html 6 | * 7 | * Interrupt code based on NECIRrcv by Joe Knapp 8 | * http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1210243556 9 | * Also influenced by http://zovirl.com/2008/11/12/building-a-universal-remote-with-an-arduino/ 10 | */ 11 | 12 | #include "IRremote.h" 13 | #include "IRremoteInt.h" 14 | 15 | // Provides ISR 16 | #include 17 | 18 | volatile irparams_t irparams; 19 | 20 | // These versions of MATCH, MATCH_MARK, and MATCH_SPACE are only for debugging. 21 | // To use them, set DEBUG in IRremoteInt.h 22 | // Normally macros are used for efficiency 23 | #ifdef DEBUG 24 | int MATCH(int measured, int desired) { 25 | Serial.print("Testing: "); 26 | Serial.print(TICKS_LOW(desired), DEC); 27 | Serial.print(" <= "); 28 | Serial.print(measured, DEC); 29 | Serial.print(" <= "); 30 | Serial.println(TICKS_HIGH(desired), DEC); 31 | return measured >= TICKS_LOW(desired) && measured <= TICKS_HIGH(desired); 32 | } 33 | 34 | int MATCH_MARK(int measured_ticks, int desired_us) { 35 | Serial.print("Testing mark "); 36 | Serial.print(measured_ticks * USECPERTICK, DEC); 37 | Serial.print(" vs "); 38 | Serial.print(desired_us, DEC); 39 | Serial.print(": "); 40 | Serial.print(TICKS_LOW(desired_us + MARK_EXCESS), DEC); 41 | Serial.print(" <= "); 42 | Serial.print(measured_ticks, DEC); 43 | Serial.print(" <= "); 44 | Serial.println(TICKS_HIGH(desired_us + MARK_EXCESS), DEC); 45 | return measured_ticks >= TICKS_LOW(desired_us + MARK_EXCESS) && measured_ticks <= TICKS_HIGH(desired_us + MARK_EXCESS); 46 | } 47 | 48 | int MATCH_SPACE(int measured_ticks, int desired_us) { 49 | Serial.print("Testing space "); 50 | Serial.print(measured_ticks * USECPERTICK, DEC); 51 | Serial.print(" vs "); 52 | Serial.print(desired_us, DEC); 53 | Serial.print(": "); 54 | Serial.print(TICKS_LOW(desired_us - MARK_EXCESS), DEC); 55 | Serial.print(" <= "); 56 | Serial.print(measured_ticks, DEC); 57 | Serial.print(" <= "); 58 | Serial.println(TICKS_HIGH(desired_us - MARK_EXCESS), DEC); 59 | return measured_ticks >= TICKS_LOW(desired_us - MARK_EXCESS) && measured_ticks <= TICKS_HIGH(desired_us - MARK_EXCESS); 60 | } 61 | #endif 62 | 63 | void IRsend::sendNEC(unsigned long data, int nbits) 64 | { 65 | enableIROut(38); 66 | mark(NEC_HDR_MARK); 67 | space(NEC_HDR_SPACE); 68 | for (int i = 0; i < nbits; i++) { 69 | if (data & TOPBIT) { 70 | mark(NEC_BIT_MARK); 71 | space(NEC_ONE_SPACE); 72 | } 73 | else { 74 | mark(NEC_BIT_MARK); 75 | space(NEC_ZERO_SPACE); 76 | } 77 | data <<= 1; 78 | } 79 | mark(NEC_BIT_MARK); 80 | space(0); 81 | } 82 | 83 | void IRsend::sendSony(unsigned long data, int nbits) { 84 | enableIROut(40); 85 | mark(SONY_HDR_MARK); 86 | space(SONY_HDR_SPACE); 87 | data = data << (32 - nbits); 88 | for (int i = 0; i < nbits; i++) { 89 | if (data & TOPBIT) { 90 | mark(SONY_ONE_MARK); 91 | space(SONY_HDR_SPACE); 92 | } 93 | else { 94 | mark(SONY_ZERO_MARK); 95 | space(SONY_HDR_SPACE); 96 | } 97 | data <<= 1; 98 | } 99 | } 100 | 101 | void IRsend::sendRaw(unsigned int buf[], int len, int hz) 102 | { 103 | enableIROut(hz); 104 | for (int i = 0; i < len; i++) { 105 | if (i & 1) { 106 | space(buf[i]); 107 | } 108 | else { 109 | mark(buf[i]); 110 | } 111 | } 112 | space(0); // Just to be sure 113 | } 114 | 115 | // Note: first bit must be a one (start bit) 116 | void IRsend::sendRC5(unsigned long data, int nbits) 117 | { 118 | enableIROut(36); 119 | data = data << (32 - nbits); 120 | mark(RC5_T1); // First start bit 121 | space(RC5_T1); // Second start bit 122 | mark(RC5_T1); // Second start bit 123 | for (int i = 0; i < nbits; i++) { 124 | if (data & TOPBIT) { 125 | space(RC5_T1); // 1 is space, then mark 126 | mark(RC5_T1); 127 | } 128 | else { 129 | mark(RC5_T1); 130 | space(RC5_T1); 131 | } 132 | data <<= 1; 133 | } 134 | space(0); // Turn off at end 135 | } 136 | 137 | // Caller needs to take care of flipping the toggle bit 138 | void IRsend::sendRC6(unsigned long data, int nbits) 139 | { 140 | enableIROut(36); 141 | data = data << (32 - nbits); 142 | mark(RC6_HDR_MARK); 143 | space(RC6_HDR_SPACE); 144 | mark(RC6_T1); // start bit 145 | space(RC6_T1); 146 | int t; 147 | for (int i = 0; i < nbits; i++) { 148 | if (i == 3) { 149 | // double-wide trailer bit 150 | t = 2 * RC6_T1; 151 | } 152 | else { 153 | t = RC6_T1; 154 | } 155 | if (data & TOPBIT) { 156 | mark(t); 157 | space(t); 158 | } 159 | else { 160 | space(t); 161 | mark(t); 162 | } 163 | 164 | data <<= 1; 165 | } 166 | space(0); // Turn off at end 167 | } 168 | 169 | void IRsend::mark(int time) { 170 | // Sends an IR mark for the specified number of microseconds. 171 | // The mark output is modulated at the PWM frequency. 172 | TCCR2A |= _BV(COM2B1); // Enable pin 3 PWM output 173 | delayMicroseconds(time); 174 | } 175 | 176 | /* Leave pin off for time (given in microseconds) */ 177 | void IRsend::space(int time) { 178 | // Sends an IR space for the specified number of microseconds. 179 | // A space is no output, so the PWM output is disabled. 180 | TCCR2A &= ~(_BV(COM2B1)); // Disable pin 3 PWM output 181 | delayMicroseconds(time); 182 | } 183 | 184 | void IRsend::enableIROut(int khz) { 185 | // Enables IR output. The khz value controls the modulation frequency in kilohertz. 186 | // The IR output will be on pin 3 (OC2B). 187 | // This routine is designed for 36-40KHz; if you use it for other values, it's up to you 188 | // to make sure it gives reasonable results. (Watch out for overflow / underflow / rounding.) 189 | // TIMER2 is used in phase-correct PWM mode, with OCR2A controlling the frequency and OCR2B 190 | // controlling the duty cycle. 191 | // There is no prescaling, so the output frequency is 16MHz / (2 * OCR2A) 192 | // To turn the output on and off, we leave the PWM running, but connect and disconnect the output pin. 193 | // A few hours staring at the ATmega documentation and this will all make sense. 194 | // See my Secrets of Arduino PWM at http://arcfn.com/2009/07/secrets-of-arduino-pwm.html for details. 195 | 196 | 197 | // Disable the Timer2 Interrupt (which is used for receiving IR) 198 | TIMSK2 &= ~_BV(TOIE2); //Timer2 Overflow Interrupt 199 | 200 | pinMode(3, OUTPUT); 201 | digitalWrite(3, LOW); // When not sending PWM, we want it low 202 | 203 | // COM2A = 00: disconnect OC2A 204 | // COM2B = 00: disconnect OC2B; to send signal set to 10: OC2B non-inverted 205 | // WGM2 = 101: phase-correct PWM with OCRA as top 206 | // CS2 = 000: no prescaling 207 | TCCR2A = _BV(WGM20); 208 | TCCR2B = _BV(WGM22) | _BV(CS20); 209 | 210 | // The top value for the timer. The modulation frequency will be SYSCLOCK / 2 / OCR2A. 211 | OCR2A = SYSCLOCK / 2 / khz / 1000; 212 | OCR2B = OCR2A / 3; // 33% duty cycle 213 | } 214 | 215 | IRrecv::IRrecv(int recvpin) 216 | { 217 | irparams.recvpin = recvpin; 218 | irparams.blinkflag = 0; 219 | } 220 | 221 | // initialization 222 | void IRrecv::enableIRIn() { 223 | // setup pulse clock timer interrupt 224 | TCCR2A = 0; // normal mode 225 | 226 | //Prescale /8 (16M/8 = 0.5 microseconds per tick) 227 | // Therefore, the timer interval can range from 0.5 to 128 microseconds 228 | // depending on the reset value (255 to 0) 229 | cbi(TCCR2B,CS22); 230 | sbi(TCCR2B,CS21); 231 | cbi(TCCR2B,CS20); 232 | 233 | //Timer2 Overflow Interrupt Enable 234 | sbi(TIMSK2,TOIE2); 235 | 236 | RESET_TIMER2; 237 | 238 | sei(); // enable interrupts 239 | 240 | // initialize state machine variables 241 | irparams.rcvstate = STATE_IDLE; 242 | irparams.rawlen = 0; 243 | 244 | 245 | // set pin modes 246 | pinMode(irparams.recvpin, INPUT); 247 | } 248 | 249 | // enable/disable blinking of pin 13 on IR processing 250 | void IRrecv::blink13(int blinkflag) 251 | { 252 | irparams.blinkflag = blinkflag; 253 | if (blinkflag) 254 | pinMode(BLINKLED, OUTPUT); 255 | } 256 | 257 | // TIMER2 interrupt code to collect raw data. 258 | // Widths of alternating SPACE, MARK are recorded in rawbuf. 259 | // Recorded in ticks of 50 microseconds. 260 | // rawlen counts the number of entries recorded so far. 261 | // First entry is the SPACE between transmissions. 262 | // As soon as a SPACE gets long, ready is set, state switches to IDLE, timing of SPACE continues. 263 | // As soon as first MARK arrives, gap width is recorded, ready is cleared, and new logging starts 264 | ISR(TIMER2_OVF_vect) 265 | { 266 | RESET_TIMER2; 267 | 268 | uint8_t irdata = (uint8_t)digitalRead(irparams.recvpin); 269 | 270 | irparams.timer++; // One more 50us tick 271 | if (irparams.rawlen >= RAWBUF) { 272 | // Buffer overflow 273 | irparams.rcvstate = STATE_STOP; 274 | } 275 | switch(irparams.rcvstate) { 276 | case STATE_IDLE: // In the middle of a gap 277 | if (irdata == MARK) { 278 | if (irparams.timer < GAP_TICKS) { 279 | // Not big enough to be a gap. 280 | irparams.timer = 0; 281 | } 282 | else { 283 | // gap just ended, record duration and start recording transmission 284 | irparams.rawlen = 0; 285 | irparams.rawbuf[irparams.rawlen++] = irparams.timer; 286 | irparams.timer = 0; 287 | irparams.rcvstate = STATE_MARK; 288 | } 289 | } 290 | break; 291 | case STATE_MARK: // timing MARK 292 | if (irdata == SPACE) { // MARK ended, record time 293 | irparams.rawbuf[irparams.rawlen++] = irparams.timer; 294 | irparams.timer = 0; 295 | irparams.rcvstate = STATE_SPACE; 296 | } 297 | break; 298 | case STATE_SPACE: // timing SPACE 299 | if (irdata == MARK) { // SPACE just ended, record it 300 | irparams.rawbuf[irparams.rawlen++] = irparams.timer; 301 | irparams.timer = 0; 302 | irparams.rcvstate = STATE_MARK; 303 | } 304 | else { // SPACE 305 | if (irparams.timer > GAP_TICKS) { 306 | // big SPACE, indicates gap between codes 307 | // Mark current code as ready for processing 308 | // Switch to STOP 309 | // Don't reset timer; keep counting space width 310 | irparams.rcvstate = STATE_STOP; 311 | } 312 | } 313 | break; 314 | case STATE_STOP: // waiting, measuring gap 315 | if (irdata == MARK) { // reset gap timer 316 | irparams.timer = 0; 317 | } 318 | break; 319 | } 320 | 321 | if (irparams.blinkflag) { 322 | if (irdata == MARK) { 323 | PORTB |= B00100000; // turn pin 13 LED on 324 | } 325 | else { 326 | PORTB &= B11011111; // turn pin 13 LED off 327 | } 328 | } 329 | } 330 | 331 | void IRrecv::resume() { 332 | irparams.rcvstate = STATE_IDLE; 333 | irparams.rawlen = 0; 334 | } 335 | 336 | 337 | 338 | // Decodes the received IR message 339 | // Returns 0 if no data ready, 1 if data ready. 340 | // Results of decoding are stored in results 341 | int IRrecv::decode(decode_results *results) { 342 | results->rawbuf = irparams.rawbuf; 343 | results->rawlen = irparams.rawlen; 344 | if (irparams.rcvstate != STATE_STOP) { 345 | return ERR; 346 | } 347 | #ifdef DEBUG 348 | Serial.println("Attempting NEC decode"); 349 | #endif 350 | if (decodeNEC(results)) { 351 | return DECODED; 352 | } 353 | #ifdef DEBUG 354 | Serial.println("Attempting Sony decode"); 355 | #endif 356 | if (decodeSony(results)) { 357 | return DECODED; 358 | } 359 | #ifdef DEBUG 360 | Serial.println("Attempting RC5 decode"); 361 | #endif 362 | if (decodeRC5(results)) { 363 | return DECODED; 364 | } 365 | #ifdef DEBUG 366 | Serial.println("Attempting RC6 decode"); 367 | #endif 368 | if (decodeRC6(results)) { 369 | return DECODED; 370 | } 371 | if (results->rawlen >= 6) { 372 | // Only return raw buffer if at least 6 bits 373 | results->decode_type = UNKNOWN; 374 | results->bits = 0; 375 | results->value = 0; 376 | return DECODED; 377 | } 378 | // Throw away and start over 379 | resume(); 380 | return ERR; 381 | } 382 | 383 | long IRrecv::decodeNEC(decode_results *results) { 384 | long data = 0; 385 | int offset = 1; // Skip first space 386 | // Initial mark 387 | if (!MATCH_MARK(results->rawbuf[offset], NEC_HDR_MARK)) { 388 | return ERR; 389 | } 390 | offset++; 391 | // Check for repeat 392 | if (irparams.rawlen == 4 && 393 | MATCH_SPACE(results->rawbuf[offset], NEC_RPT_SPACE) && 394 | MATCH_MARK(results->rawbuf[offset+1], NEC_BIT_MARK)) { 395 | results->bits = 0; 396 | results->value = REPEAT; 397 | results->decode_type = NEC; 398 | return DECODED; 399 | } 400 | if (irparams.rawlen < 2 * NEC_BITS + 4) { 401 | return ERR; 402 | } 403 | // Initial space 404 | if (!MATCH_SPACE(results->rawbuf[offset], NEC_HDR_SPACE)) { 405 | return ERR; 406 | } 407 | offset++; 408 | for (int i = 0; i < NEC_BITS; i++) { 409 | if (!MATCH_MARK(results->rawbuf[offset], NEC_BIT_MARK)) { 410 | return ERR; 411 | } 412 | offset++; 413 | if (MATCH_SPACE(results->rawbuf[offset], NEC_ONE_SPACE)) { 414 | data = (data << 1) | 1; 415 | } 416 | else if (MATCH_SPACE(results->rawbuf[offset], NEC_ZERO_SPACE)) { 417 | data <<= 1; 418 | } 419 | else { 420 | return ERR; 421 | } 422 | offset++; 423 | } 424 | // Success 425 | results->bits = NEC_BITS; 426 | results->value = data; 427 | results->decode_type = NEC; 428 | return DECODED; 429 | } 430 | 431 | long IRrecv::decodeSony(decode_results *results) { 432 | long data = 0; 433 | if (irparams.rawlen < 2 * SONY_BITS + 2) { 434 | return ERR; 435 | } 436 | int offset = 1; // Skip first space 437 | // Initial mark 438 | if (!MATCH_MARK(results->rawbuf[offset], SONY_HDR_MARK)) { 439 | return ERR; 440 | } 441 | offset++; 442 | 443 | while (offset + 1 < irparams.rawlen) { 444 | if (!MATCH_SPACE(results->rawbuf[offset], SONY_HDR_SPACE)) { 445 | break; 446 | } 447 | offset++; 448 | if (MATCH_MARK(results->rawbuf[offset], SONY_ONE_MARK)) { 449 | data = (data << 1) | 1; 450 | } 451 | else if (MATCH_MARK(results->rawbuf[offset], SONY_ZERO_MARK)) { 452 | data <<= 1; 453 | } 454 | else { 455 | return ERR; 456 | } 457 | offset++; 458 | } 459 | 460 | // Success 461 | results->bits = (offset - 1) / 2; 462 | if (results->bits < 12) { 463 | results->bits = 0; 464 | return ERR; 465 | } 466 | results->value = data; 467 | results->decode_type = SONY; 468 | return DECODED; 469 | } 470 | 471 | // Gets one undecoded level at a time from the raw buffer. 472 | // The RC5/6 decoding is easier if the data is broken into time intervals. 473 | // E.g. if the buffer has MARK for 2 time intervals and SPACE for 1, 474 | // successive calls to getRClevel will return MARK, MARK, SPACE. 475 | // offset and used are updated to keep track of the current position. 476 | // t1 is the time interval for a single bit in microseconds. 477 | // Returns -1 for error (measured time interval is not a multiple of t1). 478 | int IRrecv::getRClevel(decode_results *results, int *offset, int *used, int t1) { 479 | if (*offset >= results->rawlen) { 480 | // After end of recorded buffer, assume SPACE. 481 | return SPACE; 482 | } 483 | int width = results->rawbuf[*offset]; 484 | int val = ((*offset) % 2) ? MARK : SPACE; 485 | int correction = (val == MARK) ? MARK_EXCESS : - MARK_EXCESS; 486 | 487 | int avail; 488 | if (MATCH(width, t1 + correction)) { 489 | avail = 1; 490 | } 491 | else if (MATCH(width, 2*t1 + correction)) { 492 | avail = 2; 493 | } 494 | else if (MATCH(width, 3*t1 + correction)) { 495 | avail = 3; 496 | } 497 | else { 498 | return -1; 499 | } 500 | 501 | (*used)++; 502 | if (*used >= avail) { 503 | *used = 0; 504 | (*offset)++; 505 | } 506 | #ifdef DEBUG 507 | if (val == MARK) { 508 | Serial.println("MARK"); 509 | } 510 | else { 511 | Serial.println("SPACE"); 512 | } 513 | #endif 514 | return val; 515 | } 516 | 517 | long IRrecv::decodeRC5(decode_results *results) { 518 | if (irparams.rawlen < MIN_RC5_SAMPLES + 2) { 519 | return ERR; 520 | } 521 | int offset = 1; // Skip gap space 522 | long data = 0; 523 | int used = 0; 524 | // Get start bits 525 | if (getRClevel(results, &offset, &used, RC5_T1) != MARK) return ERR; 526 | if (getRClevel(results, &offset, &used, RC5_T1) != SPACE) return ERR; 527 | if (getRClevel(results, &offset, &used, RC5_T1) != MARK) return ERR; 528 | int nbits; 529 | for (nbits = 0; offset < irparams.rawlen; nbits++) { 530 | int levelA = getRClevel(results, &offset, &used, RC5_T1); 531 | int levelB = getRClevel(results, &offset, &used, RC5_T1); 532 | if (levelA == SPACE && levelB == MARK) { 533 | // 1 bit 534 | data = (data << 1) | 1; 535 | } 536 | else if (levelA == MARK && levelB == SPACE) { 537 | // zero bit 538 | data <<= 1; 539 | } 540 | else { 541 | return ERR; 542 | } 543 | } 544 | 545 | // Success 546 | results->bits = nbits; 547 | results->value = data; 548 | results->decode_type = RC5; 549 | return DECODED; 550 | } 551 | 552 | long IRrecv::decodeRC6(decode_results *results) { 553 | if (results->rawlen < MIN_RC6_SAMPLES) { 554 | return ERR; 555 | } 556 | int offset = 1; // Skip first space 557 | // Initial mark 558 | if (!MATCH_MARK(results->rawbuf[offset], RC6_HDR_MARK)) { 559 | return ERR; 560 | } 561 | offset++; 562 | if (!MATCH_SPACE(results->rawbuf[offset], RC6_HDR_SPACE)) { 563 | return ERR; 564 | } 565 | offset++; 566 | long data = 0; 567 | int used = 0; 568 | // Get start bit (1) 569 | if (getRClevel(results, &offset, &used, RC6_T1) != MARK) return ERR; 570 | if (getRClevel(results, &offset, &used, RC6_T1) != SPACE) return ERR; 571 | int nbits; 572 | for (nbits = 0; offset < results->rawlen; nbits++) { 573 | int levelA, levelB; // Next two levels 574 | levelA = getRClevel(results, &offset, &used, RC6_T1); 575 | if (nbits == 3) { 576 | // T bit is double wide; make sure second half matches 577 | if (levelA != getRClevel(results, &offset, &used, RC6_T1)) return ERR; 578 | } 579 | levelB = getRClevel(results, &offset, &used, RC6_T1); 580 | if (nbits == 3) { 581 | // T bit is double wide; make sure second half matches 582 | if (levelB != getRClevel(results, &offset, &used, RC6_T1)) return ERR; 583 | } 584 | if (levelA == MARK && levelB == SPACE) { // reversed compared to RC5 585 | // 1 bit 586 | data = (data << 1) | 1; 587 | } 588 | else if (levelA == SPACE && levelB == MARK) { 589 | // zero bit 590 | data <<= 1; 591 | } 592 | else { 593 | return ERR; // Error 594 | } 595 | } 596 | // Success 597 | results->bits = nbits; 598 | results->value = data; 599 | results->decode_type = RC6; 600 | return DECODED; 601 | } 602 | 603 | -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Firmware/LIFA_Base/IRremote.h: -------------------------------------------------------------------------------- 1 | /* 2 | * IRremote 3 | * Version 0.1 July, 2009 4 | * Copyright 2009 Ken Shirriff 5 | * For details, see http://arcfn.com/2009/08/multi-protocol-infrared-remote-library.htm http://arcfn.com 6 | * 7 | * Interrupt code based on NECIRrcv by Joe Knapp 8 | * http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1210243556 9 | * Also influenced by http://zovirl.com/2008/11/12/building-a-universal-remote-with-an-arduino/ 10 | */ 11 | 12 | #ifndef IRremote_h 13 | #define IRremote_h 14 | 15 | // The following are compile-time library options. 16 | // If you change them, recompile the library. 17 | // If DEBUG is defined, a lot of debugging output will be printed during decoding. 18 | // TEST must be defined for the IRtest unittests to work. It will make some 19 | // methods virtual, which will be slightly slower, which is why it is optional. 20 | // #define DEBUG 21 | // #define TEST 22 | 23 | // Results returned from the decoder 24 | class decode_results { 25 | public: 26 | int decode_type; // NEC, SONY, RC5, UNKNOWN 27 | unsigned long value; // Decoded value 28 | int bits; // Number of bits in decoded value 29 | volatile unsigned int *rawbuf; // Raw intervals in .5 us ticks 30 | int rawlen; // Number of records in rawbuf. 31 | }; 32 | 33 | // Values for decode_type 34 | #define NEC 1 35 | #define SONY 2 36 | #define RC5 3 37 | #define RC6 4 38 | #define UNKNOWN -1 39 | 40 | // Decoded value for NEC when a repeat code is received 41 | #define REPEAT 0xffffffff 42 | 43 | // main class for receiving IR 44 | class IRrecv 45 | { 46 | public: 47 | IRrecv(int recvpin); 48 | void blink13(int blinkflag); 49 | int decode(decode_results *results); 50 | void enableIRIn(); 51 | void resume(); 52 | private: 53 | // These are called by decode 54 | int getRClevel(decode_results *results, int *offset, int *used, int t1); 55 | long decodeNEC(decode_results *results); 56 | long decodeSony(decode_results *results); 57 | long decodeRC5(decode_results *results); 58 | long decodeRC6(decode_results *results); 59 | } 60 | ; 61 | 62 | // Only used for testing; can remove virtual for shorter code 63 | #ifdef TEST 64 | #define VIRTUAL virtual 65 | #else 66 | #define VIRTUAL 67 | #endif 68 | 69 | class IRsend 70 | { 71 | public: 72 | IRsend() {} 73 | void sendNEC(unsigned long data, int nbits); 74 | void sendSony(unsigned long data, int nbits); 75 | void sendRaw(unsigned int buf[], int len, int hz); 76 | void sendRC5(unsigned long data, int nbits); 77 | void sendRC6(unsigned long data, int nbits); 78 | // private: 79 | void enableIROut(int khz); 80 | VIRTUAL void mark(int usec); 81 | VIRTUAL void space(int usec); 82 | } 83 | ; 84 | 85 | // Some useful constants 86 | 87 | #define USECPERTICK 50 // microseconds per clock interrupt tick 88 | #define RAWBUF 76 // Length of raw duration buffer 89 | 90 | // Marks tend to be 100us too long, and spaces 100us too short 91 | // when received due to sensor lag. 92 | #define MARK_EXCESS 100 93 | 94 | #endif 95 | 96 | -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Firmware/LIFA_Base/IRremoteInt.h: -------------------------------------------------------------------------------- 1 | /* 2 | * IRremote 3 | * Version 0.1 July, 2009 4 | * Copyright 2009 Ken Shirriff 5 | * For details, see http://arcfn.com/2009/08/multi-protocol-infrared-remote-library.html 6 | * 7 | * Interrupt code based on NECIRrcv by Joe Knapp 8 | * http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1210243556 9 | * Also influenced by http://zovirl.com/2008/11/12/building-a-universal-remote-with-an-arduino/ 10 | */ 11 | 12 | #include 13 | 14 | #ifndef IRremoteint_h 15 | #define IRremoteint_h 16 | 17 | #ifndef IRremote_h 18 | #include "IRremote.h" 19 | #endif 20 | 21 | 22 | 23 | #define CLKFUDGE 5 // fudge factor for clock interrupt overhead 24 | #define CLK 256 // max value for clock (timer 2) 25 | #define PRESCALE 8 // timer2 clock prescale 26 | #define SYSCLOCK 16000000 // main Arduino clock 27 | #define CLKSPERUSEC (SYSCLOCK/PRESCALE/1000000) // timer clocks per microsecond 28 | 29 | #define ERR 0 30 | #define DECODED 1 31 | 32 | #define BLINKLED 13 33 | 34 | // defines for setting and clearing register bits 35 | #ifndef cbi 36 | #define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) 37 | #endif 38 | #ifndef sbi 39 | #define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit)) 40 | #endif 41 | 42 | // clock timer reset value 43 | #define INIT_TIMER_COUNT2 (CLK - USECPERTICK*CLKSPERUSEC + CLKFUDGE) 44 | #define RESET_TIMER2 TCNT2 = INIT_TIMER_COUNT2 45 | 46 | // pulse parameters in usec 47 | #define NEC_HDR_MARK 9000 48 | #define NEC_HDR_SPACE 4500 49 | #define NEC_BIT_MARK 560 50 | #define NEC_ONE_SPACE 1600 51 | #define NEC_ZERO_SPACE 560 52 | #define NEC_RPT_SPACE 2250 53 | 54 | #define SONY_HDR_MARK 2400 55 | #define SONY_HDR_SPACE 600 56 | #define SONY_ONE_MARK 1200 57 | #define SONY_ZERO_MARK 600 58 | #define SONY_RPT_LENGTH 45000 59 | 60 | #define RC5_T1 889 61 | #define RC5_RPT_LENGTH 46000 62 | 63 | #define RC6_HDR_MARK 2666 64 | #define RC6_HDR_SPACE 889 65 | #define RC6_T1 444 66 | #define RC6_RPT_LENGTH 46000 67 | 68 | #define TOLERANCE 25 // percent tolerance in measurements 69 | #define LTOL (1.0 - TOLERANCE/100.) 70 | #define UTOL (1.0 + TOLERANCE/100.) 71 | 72 | #define _GAP 5000 // Minimum map between transmissions 73 | #define GAP_TICKS (_GAP/USECPERTICK) 74 | 75 | #define TICKS_LOW(us) (int) (((us)*LTOL/USECPERTICK)) 76 | #define TICKS_HIGH(us) (int) (((us)*UTOL/USECPERTICK + 1)) 77 | 78 | #ifndef DEBUG 79 | #define MATCH(measured_ticks, desired_us) ((measured_ticks) >= TICKS_LOW(desired_us) && (measured_ticks) <= TICKS_HIGH(desired_us)) 80 | #define MATCH_MARK(measured_ticks, desired_us) MATCH(measured_ticks, (desired_us) + MARK_EXCESS) 81 | #define MATCH_SPACE(measured_ticks, desired_us) MATCH((measured_ticks), (desired_us) - MARK_EXCESS) 82 | // Debugging versions are in IRremote.cpp 83 | #endif 84 | 85 | // receiver states 86 | #define STATE_IDLE 2 87 | #define STATE_MARK 3 88 | #define STATE_SPACE 4 89 | #define STATE_STOP 5 90 | 91 | // information for the interrupt handler 92 | typedef struct { 93 | uint8_t recvpin; // pin for IR data from detector 94 | uint8_t rcvstate; // state machine 95 | uint8_t blinkflag; // TRUE to enable blinking of pin 13 on IR processing 96 | unsigned int timer; // state timer, counts 50uS ticks. 97 | unsigned int rawbuf[RAWBUF]; // raw data 98 | uint8_t rawlen; // counter of entries in rawbuf 99 | } 100 | irparams_t; 101 | 102 | // Defined in IRremote.cpp 103 | extern volatile irparams_t irparams; 104 | 105 | // IR detector output is active low 106 | #define MARK 0 107 | #define SPACE 1 108 | 109 | #define TOPBIT 0x80000000 110 | 111 | #define NEC_BITS 32 112 | #define SONY_BITS 12 113 | #define MIN_RC5_SAMPLES 11 114 | #define MIN_RC6_SAMPLES 1 115 | 116 | #endif 117 | 118 | 119 | -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Firmware/LIFA_Base/IRremoteLICENSE.txt: -------------------------------------------------------------------------------- 1 | 2 | GNU LESSER GENERAL PUBLIC LICENSE 3 | Version 2.1, February 1999 4 | 5 | Copyright (C) 1991, 1999 Free Software Foundation, Inc. 6 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 7 | Everyone is permitted to copy and distribute verbatim copies 8 | of this license document, but changing it is not allowed. 9 | 10 | [This is the first released version of the Lesser GPL. It also counts 11 | as the successor of the GNU Library Public License, version 2, hence 12 | the version number 2.1.] 13 | 14 | Preamble 15 | 16 | The licenses for most software are designed to take away your 17 | freedom to share and change it. By contrast, the GNU General Public 18 | Licenses are intended to guarantee your freedom to share and change 19 | free software--to make sure the software is free for all its users. 20 | 21 | This license, the Lesser General Public License, applies to some 22 | specially designated software packages--typically libraries--of the 23 | Free Software Foundation and other authors who decide to use it. You 24 | can use it too, but we suggest you first think carefully about whether 25 | this license or the ordinary General Public License is the better 26 | strategy to use in any particular case, based on the explanations below. 27 | 28 | When we speak of free software, we are referring to freedom of use, 29 | not price. Our General Public Licenses are designed to make sure that 30 | you have the freedom to distribute copies of free software (and charge 31 | for this service if you wish); that you receive source code or can get 32 | it if you want it; that you can change the software and use pieces of 33 | it in new free programs; and that you are informed that you can do 34 | these things. 35 | 36 | To protect your rights, we need to make restrictions that forbid 37 | distributors to deny you these rights or to ask you to surrender these 38 | rights. These restrictions translate to certain responsibilities for 39 | you if you distribute copies of the library or if you modify it. 40 | 41 | For example, if you distribute copies of the library, whether gratis 42 | or for a fee, you must give the recipients all the rights that we gave 43 | you. You must make sure that they, too, receive or can get the source 44 | code. If you link other code with the library, you must provide 45 | complete object files to the recipients, so that they can relink them 46 | with the library after making changes to the library and recompiling 47 | it. And you must show them these terms so they know their rights. 48 | 49 | We protect your rights with a two-step method: (1) we copyright the 50 | library, and (2) we offer you this license, which gives you legal 51 | permission to copy, distribute and/or modify the library. 52 | 53 | To protect each distributor, we want to make it very clear that 54 | there is no warranty for the free library. Also, if the library is 55 | modified by someone else and passed on, the recipients should know 56 | that what they have is not the original version, so that the original 57 | author's reputation will not be affected by problems that might be 58 | introduced by others. 59 | 60 | Finally, software patents pose a constant threat to the existence of 61 | any free program. We wish to make sure that a company cannot 62 | effectively restrict the users of a free program by obtaining a 63 | restrictive license from a patent holder. Therefore, we insist that 64 | any patent license obtained for a version of the library must be 65 | consistent with the full freedom of use specified in this license. 66 | 67 | Most GNU software, including some libraries, is covered by the 68 | ordinary GNU General Public License. This license, the GNU Lesser 69 | General Public License, applies to certain designated libraries, and 70 | is quite different from the ordinary General Public License. We use 71 | this license for certain libraries in order to permit linking those 72 | libraries into non-free programs. 73 | 74 | When a program is linked with a library, whether statically or using 75 | a shared library, the combination of the two is legally speaking a 76 | combined work, a derivative of the original library. The ordinary 77 | General Public License therefore permits such linking only if the 78 | entire combination fits its criteria of freedom. The Lesser General 79 | Public License permits more lax criteria for linking other code with 80 | the library. 81 | 82 | We call this license the "Lesser" General Public License because it 83 | does Less to protect the user's freedom than the ordinary General 84 | Public License. It also provides other free software developers Less 85 | of an advantage over competing non-free programs. These disadvantages 86 | are the reason we use the ordinary General Public License for many 87 | libraries. However, the Lesser license provides advantages in certain 88 | special circumstances. 89 | 90 | For example, on rare occasions, there may be a special need to 91 | encourage the widest possible use of a certain library, so that it becomes 92 | a de-facto standard. To achieve this, non-free programs must be 93 | allowed to use the library. A more frequent case is that a free 94 | library does the same job as widely used non-free libraries. In this 95 | case, there is little to gain by limiting the free library to free 96 | software only, so we use the Lesser General Public License. 97 | 98 | In other cases, permission to use a particular library in non-free 99 | programs enables a greater number of people to use a large body of 100 | free software. For example, permission to use the GNU C Library in 101 | non-free programs enables many more people to use the whole GNU 102 | operating system, as well as its variant, the GNU/Linux operating 103 | system. 104 | 105 | Although the Lesser General Public License is Less protective of the 106 | users' freedom, it does ensure that the user of a program that is 107 | linked with the Library has the freedom and the wherewithal to run 108 | that program using a modified version of the Library. 109 | 110 | The precise terms and conditions for copying, distribution and 111 | modification follow. Pay close attention to the difference between a 112 | "work based on the library" and a "work that uses the library". The 113 | former contains code derived from the library, whereas the latter must 114 | be combined with the library in order to run. 115 | 116 | GNU LESSER GENERAL PUBLIC LICENSE 117 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 118 | 119 | 0. This License Agreement applies to any software library or other 120 | program which contains a notice placed by the copyright holder or 121 | other authorized party saying it may be distributed under the terms of 122 | this Lesser General Public License (also called "this License"). 123 | Each licensee is addressed as "you". 124 | 125 | A "library" means a collection of software functions and/or data 126 | prepared so as to be conveniently linked with application programs 127 | (which use some of those functions and data) to form executables. 128 | 129 | The "Library", below, refers to any such software library or work 130 | which has been distributed under these terms. A "work based on the 131 | Library" means either the Library or any derivative work under 132 | copyright law: that is to say, a work containing the Library or a 133 | portion of it, either verbatim or with modifications and/or translated 134 | straightforwardly into another language. (Hereinafter, translation is 135 | included without limitation in the term "modification".) 136 | 137 | "Source code" for a work means the preferred form of the work for 138 | making modifications to it. For a library, complete source code means 139 | all the source code for all modules it contains, plus any associated 140 | interface definition files, plus the scripts used to control compilation 141 | and installation of the library. 142 | 143 | Activities other than copying, distribution and modification are not 144 | covered by this License; they are outside its scope. The act of 145 | running a program using the Library is not restricted, and output from 146 | such a program is covered only if its contents constitute a work based 147 | on the Library (independent of the use of the Library in a tool for 148 | writing it). Whether that is true depends on what the Library does 149 | and what the program that uses the Library does. 150 | 151 | 1. You may copy and distribute verbatim copies of the Library's 152 | complete source code as you receive it, in any medium, provided that 153 | you conspicuously and appropriately publish on each copy an 154 | appropriate copyright notice and disclaimer of warranty; keep intact 155 | all the notices that refer to this License and to the absence of any 156 | warranty; and distribute a copy of this License along with the 157 | Library. 158 | 159 | You may charge a fee for the physical act of transferring a copy, 160 | and you may at your option offer warranty protection in exchange for a 161 | fee. 162 | 163 | 2. You may modify your copy or copies of the Library or any portion 164 | of it, thus forming a work based on the Library, and copy and 165 | distribute such modifications or work under the terms of Section 1 166 | above, provided that you also meet all of these conditions: 167 | 168 | a) The modified work must itself be a software library. 169 | 170 | b) You must cause the files modified to carry prominent notices 171 | stating that you changed the files and the date of any change. 172 | 173 | c) You must cause the whole of the work to be licensed at no 174 | charge to all third parties under the terms of this License. 175 | 176 | d) If a facility in the modified Library refers to a function or a 177 | table of data to be supplied by an application program that uses 178 | the facility, other than as an argument passed when the facility 179 | is invoked, then you must make a good faith effort to ensure that, 180 | in the event an application does not supply such function or 181 | table, the facility still operates, and performs whatever part of 182 | its purpose remains meaningful. 183 | 184 | (For example, a function in a library to compute square roots has 185 | a purpose that is entirely well-defined independent of the 186 | application. Therefore, Subsection 2d requires that any 187 | application-supplied function or table used by this function must 188 | be optional: if the application does not supply it, the square 189 | root function must still compute square roots.) 190 | 191 | These requirements apply to the modified work as a whole. If 192 | identifiable sections of that work are not derived from the Library, 193 | and can be reasonably considered independent and separate works in 194 | themselves, then this License, and its terms, do not apply to those 195 | sections when you distribute them as separate works. But when you 196 | distribute the same sections as part of a whole which is a work based 197 | on the Library, the distribution of the whole must be on the terms of 198 | this License, whose permissions for other licensees extend to the 199 | entire whole, and thus to each and every part regardless of who wrote 200 | it. 201 | 202 | Thus, it is not the intent of this section to claim rights or contest 203 | your rights to work written entirely by you; rather, the intent is to 204 | exercise the right to control the distribution of derivative or 205 | collective works based on the Library. 206 | 207 | In addition, mere aggregation of another work not based on the Library 208 | with the Library (or with a work based on the Library) on a volume of 209 | a storage or distribution medium does not bring the other work under 210 | the scope of this License. 211 | 212 | 3. You may opt to apply the terms of the ordinary GNU General Public 213 | License instead of this License to a given copy of the Library. To do 214 | this, you must alter all the notices that refer to this License, so 215 | that they refer to the ordinary GNU General Public License, version 2, 216 | instead of to this License. (If a newer version than version 2 of the 217 | ordinary GNU General Public License has appeared, then you can specify 218 | that version instead if you wish.) Do not make any other change in 219 | these notices. 220 | 221 | Once this change is made in a given copy, it is irreversible for 222 | that copy, so the ordinary GNU General Public License applies to all 223 | subsequent copies and derivative works made from that copy. 224 | 225 | This option is useful when you wish to copy part of the code of 226 | the Library into a program that is not a library. 227 | 228 | 4. You may copy and distribute the Library (or a portion or 229 | derivative of it, under Section 2) in object code or executable form 230 | under the terms of Sections 1 and 2 above provided that you accompany 231 | it with the complete corresponding machine-readable source code, which 232 | must be distributed under the terms of Sections 1 and 2 above on a 233 | medium customarily used for software interchange. 234 | 235 | If distribution of object code is made by offering access to copy 236 | from a designated place, then offering equivalent access to copy the 237 | source code from the same place satisfies the requirement to 238 | distribute the source code, even though third parties are not 239 | compelled to copy the source along with the object code. 240 | 241 | 5. A program that contains no derivative of any portion of the 242 | Library, but is designed to work with the Library by being compiled or 243 | linked with it, is called a "work that uses the Library". Such a 244 | work, in isolation, is not a derivative work of the Library, and 245 | therefore falls outside the scope of this License. 246 | 247 | However, linking a "work that uses the Library" with the Library 248 | creates an executable that is a derivative of the Library (because it 249 | contains portions of the Library), rather than a "work that uses the 250 | library". The executable is therefore covered by this License. 251 | Section 6 states terms for distribution of such executables. 252 | 253 | When a "work that uses the Library" uses material from a header file 254 | that is part of the Library, the object code for the work may be a 255 | derivative work of the Library even though the source code is not. 256 | Whether this is true is especially significant if the work can be 257 | linked without the Library, or if the work is itself a library. The 258 | threshold for this to be true is not precisely defined by law. 259 | 260 | If such an object file uses only numerical parameters, data 261 | structure layouts and accessors, and small macros and small inline 262 | functions (ten lines or less in length), then the use of the object 263 | file is unrestricted, regardless of whether it is legally a derivative 264 | work. (Executables containing this object code plus portions of the 265 | Library will still fall under Section 6.) 266 | 267 | Otherwise, if the work is a derivative of the Library, you may 268 | distribute the object code for the work under the terms of Section 6. 269 | Any executables containing that work also fall under Section 6, 270 | whether or not they are linked directly with the Library itself. 271 | 272 | 6. As an exception to the Sections above, you may also combine or 273 | link a "work that uses the Library" with the Library to produce a 274 | work containing portions of the Library, and distribute that work 275 | under terms of your choice, provided that the terms permit 276 | modification of the work for the customer's own use and reverse 277 | engineering for debugging such modifications. 278 | 279 | You must give prominent notice with each copy of the work that the 280 | Library is used in it and that the Library and its use are covered by 281 | this License. You must supply a copy of this License. If the work 282 | during execution displays copyright notices, you must include the 283 | copyright notice for the Library among them, as well as a reference 284 | directing the user to the copy of this License. Also, you must do one 285 | of these things: 286 | 287 | a) Accompany the work with the complete corresponding 288 | machine-readable source code for the Library including whatever 289 | changes were used in the work (which must be distributed under 290 | Sections 1 and 2 above); and, if the work is an executable linked 291 | with the Library, with the complete machine-readable "work that 292 | uses the Library", as object code and/or source code, so that the 293 | user can modify the Library and then relink to produce a modified 294 | executable containing the modified Library. (It is understood 295 | that the user who changes the contents of definitions files in the 296 | Library will not necessarily be able to recompile the application 297 | to use the modified definitions.) 298 | 299 | b) Use a suitable shared library mechanism for linking with the 300 | Library. A suitable mechanism is one that (1) uses at run time a 301 | copy of the library already present on the user's computer system, 302 | rather than copying library functions into the executable, and (2) 303 | will operate properly with a modified version of the library, if 304 | the user installs one, as long as the modified version is 305 | interface-compatible with the version that the work was made with. 306 | 307 | c) Accompany the work with a written offer, valid for at 308 | least three years, to give the same user the materials 309 | specified in Subsection 6a, above, for a charge no more 310 | than the cost of performing this distribution. 311 | 312 | d) If distribution of the work is made by offering access to copy 313 | from a designated place, offer equivalent access to copy the above 314 | specified materials from the same place. 315 | 316 | e) Verify that the user has already received a copy of these 317 | materials or that you have already sent this user a copy. 318 | 319 | For an executable, the required form of the "work that uses the 320 | Library" must include any data and utility programs needed for 321 | reproducing the executable from it. However, as a special exception, 322 | the materials to be distributed need not include anything that is 323 | normally distributed (in either source or binary form) with the major 324 | components (compiler, kernel, and so on) of the operating system on 325 | which the executable runs, unless that component itself accompanies 326 | the executable. 327 | 328 | It may happen that this requirement contradicts the license 329 | restrictions of other proprietary libraries that do not normally 330 | accompany the operating system. Such a contradiction means you cannot 331 | use both them and the Library together in an executable that you 332 | distribute. 333 | 334 | 7. You may place library facilities that are a work based on the 335 | Library side-by-side in a single library together with other library 336 | facilities not covered by this License, and distribute such a combined 337 | library, provided that the separate distribution of the work based on 338 | the Library and of the other library facilities is otherwise 339 | permitted, and provided that you do these two things: 340 | 341 | a) Accompany the combined library with a copy of the same work 342 | based on the Library, uncombined with any other library 343 | facilities. This must be distributed under the terms of the 344 | Sections above. 345 | 346 | b) Give prominent notice with the combined library of the fact 347 | that part of it is a work based on the Library, and explaining 348 | where to find the accompanying uncombined form of the same work. 349 | 350 | 8. You may not copy, modify, sublicense, link with, or distribute 351 | the Library except as expressly provided under this License. Any 352 | attempt otherwise to copy, modify, sublicense, link with, or 353 | distribute the Library is void, and will automatically terminate your 354 | rights under this License. However, parties who have received copies, 355 | or rights, from you under this License will not have their licenses 356 | terminated so long as such parties remain in full compliance. 357 | 358 | 9. You are not required to accept this License, since you have not 359 | signed it. However, nothing else grants you permission to modify or 360 | distribute the Library or its derivative works. These actions are 361 | prohibited by law if you do not accept this License. Therefore, by 362 | modifying or distributing the Library (or any work based on the 363 | Library), you indicate your acceptance of this License to do so, and 364 | all its terms and conditions for copying, distributing or modifying 365 | the Library or works based on it. 366 | 367 | 10. Each time you redistribute the Library (or any work based on the 368 | Library), the recipient automatically receives a license from the 369 | original licensor to copy, distribute, link with or modify the Library 370 | subject to these terms and conditions. You may not impose any further 371 | restrictions on the recipients' exercise of the rights granted herein. 372 | You are not responsible for enforcing compliance by third parties with 373 | this License. 374 | 375 | 11. If, as a consequence of a court judgment or allegation of patent 376 | infringement or for any other reason (not limited to patent issues), 377 | conditions are imposed on you (whether by court order, agreement or 378 | otherwise) that contradict the conditions of this License, they do not 379 | excuse you from the conditions of this License. If you cannot 380 | distribute so as to satisfy simultaneously your obligations under this 381 | License and any other pertinent obligations, then as a consequence you 382 | may not distribute the Library at all. For example, if a patent 383 | license would not permit royalty-free redistribution of the Library by 384 | all those who receive copies directly or indirectly through you, then 385 | the only way you could satisfy both it and this License would be to 386 | refrain entirely from distribution of the Library. 387 | 388 | If any portion of this section is held invalid or unenforceable under any 389 | particular circumstance, the balance of the section is intended to apply, 390 | and the section as a whole is intended to apply in other circumstances. 391 | 392 | It is not the purpose of this section to induce you to infringe any 393 | patents or other property right claims or to contest validity of any 394 | such claims; this section has the sole purpose of protecting the 395 | integrity of the free software distribution system which is 396 | implemented by public license practices. Many people have made 397 | generous contributions to the wide range of software distributed 398 | through that system in reliance on consistent application of that 399 | system; it is up to the author/donor to decide if he or she is willing 400 | to distribute software through any other system and a licensee cannot 401 | impose that choice. 402 | 403 | This section is intended to make thoroughly clear what is believed to 404 | be a consequence of the rest of this License. 405 | 406 | 12. If the distribution and/or use of the Library is restricted in 407 | certain countries either by patents or by copyrighted interfaces, the 408 | original copyright holder who places the Library under this License may add 409 | an explicit geographical distribution limitation excluding those countries, 410 | so that distribution is permitted only in or among countries not thus 411 | excluded. In such case, this License incorporates the limitation as if 412 | written in the body of this License. 413 | 414 | 13. The Free Software Foundation may publish revised and/or new 415 | versions of the Lesser General Public License from time to time. 416 | Such new versions will be similar in spirit to the present version, 417 | but may differ in detail to address new problems or concerns. 418 | 419 | Each version is given a distinguishing version number. If the Library 420 | specifies a version number of this License which applies to it and 421 | "any later version", you have the option of following the terms and 422 | conditions either of that version or of any later version published by 423 | the Free Software Foundation. If the Library does not specify a 424 | license version number, you may choose any version ever published by 425 | the Free Software Foundation. 426 | 427 | 14. If you wish to incorporate parts of the Library into other free 428 | programs whose distribution conditions are incompatible with these, 429 | write to the author to ask for permission. For software which is 430 | copyrighted by the Free Software Foundation, write to the Free 431 | Software Foundation; we sometimes make exceptions for this. Our 432 | decision will be guided by the two goals of preserving the free status 433 | of all derivatives of our free software and of promoting the sharing 434 | and reuse of software generally. 435 | 436 | NO WARRANTY 437 | 438 | 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO 439 | WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. 440 | EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR 441 | OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY 442 | KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE 443 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 444 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE 445 | LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME 446 | THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 447 | 448 | 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN 449 | WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY 450 | AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU 451 | FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR 452 | CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE 453 | LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING 454 | RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A 455 | FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF 456 | SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 457 | DAMAGES. 458 | 459 | -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Firmware/LIFA_Base/LIFA_Base.ino: -------------------------------------------------------------------------------- 1 | 2 | 3 | /********************************************************************************* 4 | ** 5 | ** LVFA_Firmware - Provides Basic Arduino Sketch For Interfacing With LabVIEW. 6 | ** 7 | ** Written By: Sam Kristoff - National Instruments 8 | ** Written On: November 2010 9 | ** Last Updated: Dec 2011 - Kevin Fort - National Instruments 10 | ** 11 | ** This File May Be Modified And Re-Distributed Freely. Original File Content 12 | ** Written By Sam Kristoff And Available At www.ni.com/arduino. 13 | ** 14 | *********************************************************************************/ 15 | 16 | 17 | /********************************************************************************* 18 | ** 19 | ** Includes. 20 | ** 21 | ********************************************************************************/ 22 | // Standard includes. These should always be included. 23 | #include 24 | #include 25 | #include 26 | #include "LabVIEWInterface.h" 27 | 28 | /********************************************************************************* 29 | ** setup() 30 | ** 31 | ** Initialize the Arduino and setup serial communication. 32 | ** 33 | ** Input: None 34 | ** Output: None 35 | *********************************************************************************/ 36 | void setup() 37 | { 38 | // Initialize Serial Port With The Default Baud Rate 39 | syncLV(); 40 | 41 | // Place your custom setup code here 42 | 43 | } 44 | 45 | 46 | /********************************************************************************* 47 | ** loop() 48 | ** 49 | ** The main loop. This loop runs continuously on the Arduino. It 50 | ** receives and processes serial commands from LabVIEW. 51 | ** 52 | ** Input: None 53 | ** Output: None 54 | *********************************************************************************/ 55 | void loop() 56 | { 57 | // Check for commands from LabVIEW and process them. 58 | 59 | checkForCommand(); 60 | // Place your custom loop code here (this may slow down communication with LabVIEW) 61 | 62 | 63 | if(acqMode==1) 64 | { 65 | sampleContinously(); 66 | } 67 | 68 | } 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Firmware/LIFA_Base/LabVIEWInterface.h: -------------------------------------------------------------------------------- 1 | /********************************************************************************* 2 | ** 3 | ** 4 | ** LVFA_Firmware - Provides Functions For Interfacing With The Arduino Uno 5 | ** 6 | ** Written By: Sam Kristoff - National Instruments 7 | ** Written On: November 2010 8 | ** Last Updated: Dec 2011 - Kevin Fort - National Instruments 9 | ** 10 | ** This File May Be Modified And Re-Distributed Freely. Original File Content 11 | ** Written By Sam Kristoff And Available At www.ni.com/arduino. 12 | ** 13 | *********************************************************************************/ 14 | 15 | 16 | /********************************************************************************* 17 | ** Define Constants 18 | ** 19 | ** Define directives providing meaningful names for constant values. 20 | *********************************************************************************/ 21 | 22 | #define FIRMWARE_MAJOR 02 23 | #define FIRMWARE_MINOR 00 24 | #if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) 25 | #define DEFAULTBAUDRATE 9600 // Defines The Default Serial Baud Rate (This must match the baud rate specifid in LabVIEW) 26 | #else 27 | #define DEFAULTBAUDRATE 115200 28 | #endif 29 | #define MODE_DEFAULT 0 // Defines Arduino Modes (Currently Not Used) 30 | #define COMMANDLENGTH 15 // Defines The Number Of Bytes In A Single LabVIEW Command (This must match the packet size specifid in LabVIEW) 31 | #define STEPPER_SUPPORT 1 // Defines Whether The Stepper Library Is Included - Comment This Line To Exclude Stepper Support 32 | 33 | 34 | // Declare Variables 35 | unsigned char currentCommand[COMMANDLENGTH]; // The Current Command For The Arduino To Process 36 | //Globals for continuous aquisition 37 | unsigned char acqMode; 38 | unsigned char contAcqPin; 39 | float contAcqSpeed; 40 | float acquisitionPeriod; 41 | float iterationsFlt; 42 | int iterations; 43 | float delayTime; 44 | 45 | 46 | /********************************************************************************* 47 | ** syncLV 48 | ** 49 | ** Synchronizes with LabVIEW and sends info about the board and firmware (Unimplemented) 50 | ** 51 | ** Input: None 52 | ** Output: None 53 | *********************************************************************************/ 54 | void syncLV(); 55 | 56 | /********************************************************************************* 57 | ** setMode 58 | ** 59 | ** Sets the mode of the Arduino (Reserved For Future Use) 60 | ** 61 | ** Input: Int - Mode 62 | ** Output: None 63 | *********************************************************************************/ 64 | void setMode(int mode); 65 | 66 | /********************************************************************************* 67 | ** checkForCommand 68 | ** 69 | ** Checks for new commands from LabVIEW and processes them if any exists. 70 | ** 71 | ** Input: None 72 | ** Output: 1 - Command received and processed 73 | ** 0 - No new command 74 | *********************************************************************************/ 75 | int checkForCommand(void); 76 | 77 | /********************************************************************************* 78 | ** processCommand 79 | ** 80 | ** Processes a given command 81 | ** 82 | ** Input: command of COMMANDLENGTH bytes 83 | ** Output: 1 - Command received and processed 84 | ** 0 - No new command 85 | *********************************************************************************/ 86 | void processCommand(unsigned char command[]); 87 | 88 | /********************************************************************************* 89 | ** writeDigitalPort 90 | ** 91 | ** Write values to DIO pins 0 - 13. Pins must first be configured as outputs. 92 | ** 93 | ** Input: Command containing digital port data 94 | ** Output: None 95 | *********************************************************************************/ 96 | void writeDigitalPort(unsigned char command[]); 97 | 98 | /********************************************************************************* 99 | ** analogReadPort 100 | ** 101 | ** Reads all 6 analog input ports, builds 8 byte packet, send via RS232. 102 | ** 103 | ** Input: None 104 | ** Output: None 105 | *********************************************************************************/ 106 | void analogReadPort(); 107 | 108 | /********************************************************************************* 109 | ** sevenSegment_Config 110 | ** 111 | ** Configure digital I/O pins to use for seven segment display. Pins are stored in sevenSegmentPins array. 112 | ** 113 | ** Input: Pins to use for seven segment LED [A, B, C, D, E, F, G, DP] 114 | ** Output: None 115 | *********************************************************************************/ 116 | void sevenSegment_Config(unsigned char command[]); 117 | 118 | /********************************************************************************* 119 | ** sevenSegment_Write 120 | ** 121 | ** Write values to sevenSegment display. Must first use sevenSegment_Configure 122 | ** 123 | ** Input: Eight values to write to seven segment display 124 | ** Output: None 125 | *********************************************************************************/ 126 | void sevenSegment_Write(unsigned char command[]); 127 | 128 | /********************************************************************************* 129 | ** spi_setClockDivider 130 | ** 131 | ** Set the SPI Clock Divisor 132 | ** 133 | ** Input: SPI Clock Divider 2, 4, 8, 16, 32, 64, 128 134 | ** Output: None 135 | *********************************************************************************/ 136 | void spi_setClockDivider(unsigned char divider); 137 | 138 | /********************************************************************************* 139 | ** spi_sendReceive 140 | ** 141 | ** Sens / Receive SPI Data 142 | ** 143 | ** Input: Command Packet 144 | ** Output: None (This command sends one serail byte back to LV for each data byte. 145 | *********************************************************************************/ 146 | void spi_sendReceive(unsigned char command[]); 147 | 148 | /********************************************************************************* 149 | ** checksum_Compute 150 | ** 151 | ** Compute Packet Checksum 152 | ** 153 | ** Input: Command Packet 154 | ** Output: Char Checksum Value 155 | *********************************************************************************/ 156 | unsigned char checksum_Compute(unsigned char command[]); 157 | 158 | /********************************************************************************* 159 | ** checksum_Test 160 | ** 161 | ** Compute Packet Checksum And Test Against Included Checksum 162 | ** 163 | ** Input: Command Packet 164 | ** Output: 0 If Checksums Are Equal, Else 1 165 | *********************************************************************************/ 166 | int checksum_Test(unsigned char command[]); 167 | 168 | /********************************************************************************* 169 | ** AccelStepper_Write 170 | ** 171 | ** Parse command packet and write speed, direction, and number of steps to travel 172 | ** 173 | ** Input: Command Packet 174 | ** Output: None 175 | *********************************************************************************/ 176 | void AccelStepper_Write(unsigned char command[]); 177 | /********************************************************************************* 178 | ** SampleContinuosly 179 | ** 180 | ** Returns several analog input points at once. 181 | ** 182 | ** Input: void 183 | ** Output: void 184 | *********************************************************************************/ 185 | void sampleContinously(void); 186 | 187 | /********************************************************************************* 188 | ** finiteAcquisition 189 | ** 190 | ** Returns the number of samples specified at the rate specified. 191 | ** 192 | ** Input: pin to sampe on, speed to sample at, number of samples 193 | ** Output: void 194 | *********************************************************************************/ 195 | void finiteAcquisition(int analogPin, float acquisitionSpeed, int numberOfSamples ); 196 | /********************************************************************************* 197 | ** lcd_print 198 | ** 199 | ** Prints Data to the LCD With The Given Base 200 | ** 201 | ** Input: Command Packet 202 | ** Output: None 203 | *********************************************************************************/ 204 | void lcd_print(unsigned char command[]); 205 | 206 | -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Firmware/LIFA_Base/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map For IRremote 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | decode_results KEYWORD1 10 | IRrecv KEYWORD1 11 | IRsend KEYWORD1 12 | 13 | ####################################### 14 | # Methods and Functions (KEYWORD2) 15 | ####################################### 16 | 17 | blink13 KEYWORD2 18 | decode KEYWORD2 19 | enableIRIn KEYWORD2 20 | resume KEYWORD2 21 | enableIROut KEYWORD2 22 | sendNEC KEYWORD2 23 | sendSony KEYWORD2 24 | sendRaw KEYWORD2 25 | sendRC5 KEYWORD2 26 | sendRC6 KEYWORD2 27 | # 28 | ####################################### 29 | # Constants (LITERAL1) 30 | ####################################### 31 | 32 | NEC LITERAL1 33 | SONY LITERAL1 34 | RC5 LITERAL1 35 | RC6 LITERAL1 36 | UNKNOWN LITERAL1 37 | REPEAT LITERAL1 38 | -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/LIFA.aliases: -------------------------------------------------------------------------------- 1 | [My Computer] 2 | My Computer = "192.168.20.166" 3 | 4 | -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/LIFA.lvlps: -------------------------------------------------------------------------------- 1 | [ProjectWindow_Data] 2 | ProjectExplorer.ClassicPosition[String] = "158,483,986,1003" 3 | 4 | -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/LabVIEW Interface for Arduino.aliases: -------------------------------------------------------------------------------- 1 | [My Computer] 2 | My Computer = "192.168.1.101" 3 | 4 | -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/LabVIEW Interface for Arduino.lvlps: -------------------------------------------------------------------------------- 1 | [ProjectWindow_Data] 2 | ProjectExplorer.ClassicPosition[String] = "314,473,719,845" 3 | 4 | -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/LabVIEW Interface for Arduino.lvproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 100 6 | false 7 | 10000 8 | 0 9 | 9 10 | true 11 | false 12 | 3 13 | true 14 | true 15 | false 16 | 0 17 | My Computer/VI Server 18 | My Computer/VI Server 19 | true 20 | true 21 | false 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Helper VIs/Audio Helpers/Config Sound Card.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Helper VIs/Audio Helpers/Config Sound Card.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Helper VIs/Audio Helpers/Extract Waveform Data.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Helper VIs/Audio Helpers/Extract Waveform Data.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Helper VIs/Audio Helpers/Freq Clamp And Note.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Helper VIs/Audio Helpers/Freq Clamp And Note.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Helper VIs/Audio Helpers/Get Sound Samples.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Helper VIs/Audio Helpers/Get Sound Samples.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Helper VIs/Audio Helpers/Init Sound Card.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Helper VIs/Audio Helpers/Init Sound Card.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Helper VIs/Audio Helpers/Randomize Colors.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Helper VIs/Audio Helpers/Randomize Colors.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Images/7 Segment Display Example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Images/7 Segment Display Example.png -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Images/Analog Read Example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Images/Analog Read Example.png -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Images/Photocell Read Example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Images/Photocell Read Example.png -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Images/RGB LED Example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Images/RGB LED Example.png -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Images/Thermistor Read Example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Images/Thermistor Read Example.png -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Images/Tone Example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Images/Tone Example.png -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/Analog Pin.ctl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/Analog Pin.ctl -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/Arduino Resource.ctl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/Arduino Resource.ctl -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/Base.ctl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/Base.ctl -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/BlinkM Script.ctl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/BlinkM Script.ctl -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/Board Type.ctl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/Board Type.ctl -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/Command.ctl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/Command.ctl -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/Connection Type.ctl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/Connection Type.ctl -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/Digital Pin.ctl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/Digital Pin.ctl -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/Direction.ctl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/Direction.ctl -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/IR Type.ctl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/IR Type.ctl -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/LCD Char Row.ctl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/LCD Char Row.ctl -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/LCD Character.ctl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/LCD Character.ctl -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/LCD Pin Config 4 bit.ctl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/LCD Pin Config 4 bit.ctl -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/LCD Pin Config 8-bit.ctl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/LCD Pin Config 8-bit.ctl -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/LCD Pin Config.ctl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/LCD Pin Config.ctl -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/Pin Mode.ctl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/Pin Mode.ctl -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/SPI Bit Order.ctl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/SPI Bit Order.ctl -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/SPI Clock Divider.ctl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/SPI Clock Divider.ctl -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/SPI Data Mode.ctl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/SPI Data Mode.ctl -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/Value.ctl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Private/Type Defs/Value.ctl -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Close.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Close.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Init.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Init.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Analog Read Pin.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Analog Read Pin.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Analog Read Port.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Analog Read Port.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Bus Specific/I2C/I2C Init.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Bus Specific/I2C/I2C Init.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Bus Specific/I2C/I2C Read.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Bus Specific/I2C/I2C Read.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Bus Specific/I2C/I2C Write.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Bus Specific/I2C/I2C Write.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Bus Specific/SPI/SPI Close.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Bus Specific/SPI/SPI Close.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Bus Specific/SPI/SPI Init.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Bus Specific/SPI/SPI Init.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Bus Specific/SPI/SPI Send Receive.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Bus Specific/SPI/SPI Send Receive.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Bus Specific/SPI/SPI Set Bit Order.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Bus Specific/SPI/SPI Set Bit Order.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Bus Specific/SPI/SPI Set Clock Divider.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Bus Specific/SPI/SPI Set Clock Divider.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Bus Specific/SPI/SPI Set Data Mode.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Bus Specific/SPI/SPI Set Data Mode.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Continuous Acquisition Off.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Continuous Acquisition Off.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Continuous Acquisition Sample.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Continuous Acquisition Sample.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Continuous Aquisition On.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Continuous Aquisition On.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Digital Read Pin.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Digital Read Pin.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Digital Read Port.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Digital Read Port.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Digital Write Pin.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Digital Write Pin.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Digital Write Port.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Digital Write Port.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Finite Sample Start.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Finite Sample Start.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Get Finite Analog Sample.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Get Finite Analog Sample.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/PWM Configure Port.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/PWM Configure Port.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/PWM Write Pin.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/PWM Write Pin.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/PWM Write Port.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/PWM Write Port.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Set Digital Pin Mode.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Set Digital Pin Mode.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Tone.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Low Level/Tone.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM FadeRandomRGB.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM FadeRandomRGB.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM FadeToRGB.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM FadeToRGB.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM GetAddress.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM GetAddress.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM GetRGB.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM GetRGB.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM GoToRGB.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM GoToRGB.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM Init.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM Init.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM PlayLightScript.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM PlayLightScript.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM ReadScriptLine.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM ReadScriptLine.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM SetAddress.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM SetAddress.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM SetFadeSpeed.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM SetFadeSpeed.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM SetTimeAdjust.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM SetTimeAdjust.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM StopScript.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM StopScript.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM WriteScriptLine.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/BlinkM/BlinkM WriteScriptLine.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Auto Scroll.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Auto Scroll.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Base Config.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Base Config.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Clear.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Clear.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Configure 4-bit.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Configure 4-bit.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Create Custom Char.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Create Custom Char.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Display Power.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Display Power.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Init.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Init.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Print Custom Char.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Print Custom Char.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Print.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Print.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Scroll Display.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Scroll Display.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Set Cursor Mode.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Set Cursor Mode.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Set Cursor Position.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Set Cursor Position.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Set Print Direction.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Set Print Direction.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Set Size.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Character LCD/LCD Set Size.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/IR Sensor Read.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/IR Sensor Read.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/IR Transmit NEC.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/IR Transmit NEC.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/IR Transmit Raw.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/IR Transmit Raw.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Photocell Read.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Photocell Read.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/RGB LED Configure.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/RGB LED Configure.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/RGB LED Write.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/RGB LED Write.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Servo/Configure Servo.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Servo/Configure Servo.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Servo/Detach Servo.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Servo/Detach Servo.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Servo/Servo Read Angle.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Servo/Servo Read Angle.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Servo/Servo Read Pulse Width.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Servo/Servo Read Pulse Width.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Servo/Servo Write Angle.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Servo/Servo Write Angle.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Servo/Servo Write Pulse Width.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Servo/Servo Write Pulse Width.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Servo/Set Number of Servos.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Servo/Set Number of Servos.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Seven Segment Configure.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Seven Segment Configure.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Seven Segment Write Char.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Seven Segment Write Char.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Seven Segment Write String.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Seven Segment Write String.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Stepper/Stepper Close.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Stepper/Stepper Close.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Stepper/Stepper Configure.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Stepper/Stepper Configure.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Stepper/Stepper ToGo.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Stepper/Stepper ToGo.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Stepper/Stepper Wait Till Steps Complete.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Stepper/Stepper Wait Till Steps Complete.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Stepper/Stepper Write.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Stepper/Stepper Write.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Thermistor Read.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Thermistor Read.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Thumbstick Config.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Thumbstick Config.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Thumbstick Read.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Sensors/Thumbstick Read.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Utility/Angle Mag To RGB.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Utility/Angle Mag To RGB.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Utility/Auto Detect Arduino.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Utility/Auto Detect Arduino.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Utility/Calculate Update Rates.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Utility/Calculate Update Rates.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Utility/Check For Pin Out Of Range.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Utility/Check For Pin Out Of Range.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Utility/Cycle RGB Colors.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Utility/Cycle RGB Colors.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Utility/Get Timing Data.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Utility/Get Timing Data.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Utility/Packetize.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Utility/Packetize.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Utility/Send Receive.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Utility/Send Receive.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Utility/Thumbstick Value To Angle.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Utility/Thumbstick Value To Angle.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Utility/Wait For Bytes.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Public/Utility/Wait For Bytes.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Test Apps/Arduino Analog Read Pin Benchmark.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Test Apps/Arduino Analog Read Pin Benchmark.vi -------------------------------------------------------------------------------- /LabVIEW/vi.lib/LabVIEW Interface for Arduino/Test Apps/Serial Command Test App.vi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/labviewhacker/lifa/887b0857a8ce32e79daa04ddf72ee88eb74213e6/LabVIEW/vi.lib/LabVIEW Interface for Arduino/Test Apps/Serial Command Test App.vi -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | LabVIEW Interface for Arduino 2 | 3 | The LabVIEW Interface for Arduino (LIFA) Toolkit is a FREE download that allows developers to acquire data from the Arduino microcontroller and process it in the LabVIEW Graphical Programming environment. You can purchase the Arduino Uno bundled with a LabVIEW Student Edition DVD from Sparkfun Electronics. 4 | -------------------------------------------------------------------------------- /config.ini: -------------------------------------------------------------------------------- 1 | Source Root = C:\github\labviewhacker\lifa\LabVIEW 2 | Install Root = C:\Program Files (x86)\National Instruments\LabVIEW 2011 3 | 4 | Component = \vi.lib\LabVIEW Interface for Arduino 5 | Component = \examples\LabVIEW Interface for Arduino 6 | Component = \menus\Categories\Arduino 7 | 8 | Ignore = .ini, .git, .vipb, .md --------------------------------------------------------------------------------