From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Mouse Model in LabWindows/CVI

I am trying to code a USB mouse model in LabWindows/CVI in order to test a series of activities on an LCD panel (which is connected to an SBC) via a PXI chassis. I was wondering if such a model is already available, which can mimic mouse movements/clicking and send/receive the required data via a USB port. Thank you.
0 Kudos
Message 1 of 4
(4,540 Views)

Wow, there's so many questions embedded (get it?) in here.

 

So let me get this straight.  You have a small form factor computer, running Windows?  And LabWindows CVI runtime executable is installed on this?

 

This SBC has a USB port with a USB mouse connected to it?

 

Why / what do you need from CVI?  You want to move the mouse cursor from CVI?  Like with keyboard shortcuts?

 

The more I think about your project,  the more I'm confused.

Message 2 of 4
(4,531 Views)

First of all, thanks for your interest!

 

So the LabWindows/CVI is running on the PXI Chassis via NI-8104.

The SBC that I would like to test, has a USB port that I would like to connect to a USB port on NI-8104.

In real system the SBC's USB port will be connected to a finger-touch LCD. The data that LCD will send to SBC follows USB mouse protocol.

CVI program that I am looking for needs to model a series of mouse clickings on certain locations on the LCD (behaving as someone is touching the LCD).

This will help creating an automated test for the SBC (in conjonction with the rest of the CVI project) without having someone to interact with the LCD during the test.

 

I hope this helps to further clear my intention.

Thansk again.

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

I don't know of any models that would be immediately available, but you should be able to use anything that was written in C. You could potentially even use code from other languages if you had DLLs you could access or if you create a controller for it.

 

I'm just spitting out ideas here, but would you be able to make a short macro to simulate the mouse action, and then execute that macro from your code?

Steven Gloor
Staff Customer Engineer - CTA, CLD
0 Kudos
Message 4 of 4
(4,458 Views)