LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

balancing robot using myRIO (eng)


hello everyone , I have a problem for During configuration of balancing robot using myRIO
one is program for balances,
other is receives the direction key input and prevents deviation and maintains the straight direction.
I want that programs are doing at the same time.
but they don't. i did make program with while case and event case.
Due to the fact that the while case works only when an event occurs,
the balancing value could not be maintained bu default.
How should I implement my program?
I will post a video link to help you explain.(https://www.youtube.com/watch?v=GkzgX5DcoQ0)
Thank you for your support.

0 Kudos
Message 1 of 2
(1,995 Views)

안녕하세요 마이리오를 사용한 밸런싱로봇을 구현하기위한 프로그램을 구성하는 중에 문제가 생겼습니다.
밸런싱을 잡아주는 프로그램 하나와, 방향키 입력을받으며 이탈을막고 직선방향을 유지해주는 프로그램을 동시에 실현을 하고 싶은데
이 두개의 프로그램을 병합시키면 생각대로 구현이 되지않습니다.
저희의 구상은 밸런싱을 잡아주는 프로그램을 디폴트값으로 구성하며 방향키입력을받아 움직이는것을 이벤트처리 방식으로 하고싶어
while구조안에 이벤트 구조를 넣어봤으나 이벤트가 발생해야 while구조가 동작하는 특성상 밸런싱값을 디폴트로 계속해 유지할 수 없었습니다.
어떤식으로 프로그램을 병합해야 두개의 파일이 구현이 될 수 있을까요?
부가 설명을돕는 영상 링크를 걸어 두겠습니다(https://www.youtube.com/watch?v=GkzgX5DcoQ0)
확인해주셔서 감사합니다.

0 Kudos
Message 2 of 2
(1,989 Views)