2023년 2월 21일 화요일

LabVIEW + Arduino

https://www.youtube.com/watch?v=MB8lduqPuyM&list=PLuzyRQYQpuVgdtuz64nKeUy6V5ygw4Wuk 



Requirements





Digilent LINX









See if there is No Error


You can also select Board Info which confirms you are able to communicate with your Arduino
보드정도를 누르면 팝업창이 뜬다.


LABVIEW를 실행시키고 LINX Firmware Wizard로 간다.







>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

▼LabVIEW로 서보모터 제어
https://www.youtube.com/watch?v=pt9d9Md7788&list=PLuzyRQYQpuVgdtuz64nKeUy6V5ygw4Wuk&index=2

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

▼DC모터 제어
https://www.youtube.com/watch?v=11hi7lGEdyU

Block Diagram에서
우클릭 >> MakerHub >> LINX >> Open & Close VIs


We also wire in error cluster constant
            to initialise the error cluster.
(맨 왼쪽 첫단계)

We then pass the LINX resource reference and error reference to the while loop
and to all corresponding functions.
this is force to maintain flow control.
(두번째 단계)


i put the duty cycle function before the digital write function,
because i always want the speed of the motor to be changed first
before changing its direction.
(3전째 단계 노란색으로 선택한 부분)
(방향전환 전에 스피트를 선택하고 싶기 때문에)

For the Set Duty Cycle function,
i've wired in an integer constant
        to specify PIN 9 of the Arduino.
(While루프 왼쪽위 PWM Channel에 constant 값으로 9를 넣었다.)
(이 9는 Arduino의 9번핀을 의미하며 PWM값이 들어간다.)




Next, we wired a STOP control button
                to the loop condition,
make sure you do this otherwise LabVIEW won't be happy with you.


And Finally, we close out the LINX reference to the Arduino
once we exit the While Loop
and let the Simple Error Handler.vi handle any errors that occur.


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

▼Remote control through the Internet
https://www.youtube.com/watch?v=LMtdLqmRnVU
https://www.youtube.com/watch?v=4ErGmMdZyzs

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>]

▼컨베이어 벨트
https://www.youtube.com/watch?v=OwpEN8e3WMg

댓글 없음:

댓글 쓰기