01-06-2020 06:10 AM
Hi there,
is it possible within LabView to read actions from a USB device (i.e. "button 1 pressed" etc.), in my case a presenter device (connected with a BT dongle on my USB port) ?
What I want to achieve is this: have some kind of remote to send (at least 2 different) signals to LabView.
Why do I want this? I have a Windows PC with cDAQ-9185 chassis and I collect data outdoors. Sometimes I need to start my signal recording and go away from the computer (for safety reasons). Now I need to send a "Start of something interesting" and "stop of something interesting" indicator to my LabView (and have that recorded along with my sensor data) because this would really, REALLY help me when I analyze my data the next day.
Thanks for any advice
Martin
Solved! Go to Solution.
01-06-2020 06:45 AM
The presenters I know just act like an additional keyboard (with less keys 😉 )
quickfind and enter keyb ..oard
01-06-2020 07:34 AM
You can also get keyboard events with an Event Structure.
Take a look at the available events and then add indicators to the outputs on the left side of the structure to determine what is pressed with each key of interest on the USB device.
Once you know that, you can use a case structure or similar to trigger code based on the events matching some criteria.
01-07-2020 02:16 AM - edited 01-07-2020 02:18 AM
It worked, thanks a bunch.
My Logitech Presenter has 4 buttons, the main ones being "PageUp" and "PageDown".
Attached my sample