LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get mouse's data from myrio

HI

 

I'm  trying to get mouse coordinates from myRIO

 

but there exist only joystick VI Using this VI i can get mouse's button data but not coordinates data

 

can i modify joystick VI to get mouse data?

 

i also tried to communication with ps2 mouse has om02 chip

 

spi, ic2, uart and serial...

 

what should i choose the protocol?I  don't know communication well

 

what can i do to solve this problem?

 

thkanks for reading ^^

 

 

0 Kudos
Message 1 of 4
(3,382 Views)

Hi abceeee,

 

did you google for "ps2 mouse om02 IC"? The first hit is a datasheet for that chip, with descriptions of pins and protocol…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(3,353 Views)

Firstly, there is a dedicated forum for the myRIO - here.

 

Secondly, the myRIO runs a variant of linux so it may be that the support for a USB mouse is already there, you just need to find a way to get that data into LabVIEW - that's pretty much where the extent of my knowledge for this kind of thing runs out - there might be a device node you can read from using the file I/O functions and/or a console command (using system exec) you can run which gives you the mouse position. There are lots of software packages you can install to your myRIO...so there might be a compiled package already available.

 

I just found this example for reading from a USB Keyboard: https://decibel.ni.com/content/docs/DOC-39006


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 3 of 4
(3,345 Views)

thanks for your kindness

I saw this datasheet already...TT

I can't catch what  i need...

Thanks again

 

0 Kudos
Message 4 of 4
(3,330 Views)