01-25-2010 03:49 PM
Hi,
I'm quiet new on LabView and there are simple applications that I'm still unconfortable with. I have to continously monitore some analog channels from my DAQ and simultaneously to the X and Y value of the mouse (USB). Monitoring signal of the DAQ are a simple procedure, but how to capture the X and Y from the mouse as contibuous waveformes sampled at 500Hs (for example) so I can merge them to the signal from the DAQ? What about the synchronyzation of the signals from the DAQ and the extra-DAQ chanels created with the data from the mouse?
Thank you so much for your assistance...and patience!
Olivier
Solved! Go to Solution.
01-26-2010 09:11 AM
Hi Oliver,
I've never done this exactly, but I think I've found some VIs that might help you. What I did to find them is I right-clicked on the block diagram to bring up the Functions palette and hit the Search button in the top right corner. Once it loaded, I typed " mouse " and right away it found a VI called "Initialize Mouse". This didn't seem particularly useful by itself so I clicked through to have a look at the other VIs in the palette with Initialize Mouse.
In the quickie program I threw together, I call Initialize Mouse (just like you would initialize a Daq session), then use the Acquire Input Data VI (which lived next to the Initialize Mouse VI) to return the coordinates of the mouse, and finally close my session with Close Input Device. If you were to throw a timed loop around this I bet you could get exactly what you're looking for!
-memoryleak
PS given your previous EEG post (in which you used the exact same example sample rate) I'm very curious/interested to hear if you're doing what I think you're doing 🙂 I've always wanted to do something similar but haven't worked up the courage to roll my own EEG sensors/amplifiers.
01-26-2010 10:31 AM
Quick clarification:
When I said "throw a timed loop around this" what I really meant was throw a timed loop round "Acquire Input Data". I don't know how much it applies to these VIs (it definitely applies when talking to NI hardware!), but generally when talking to a device we Open/Close only once and loop on the acquire/generate functions.
-memoryleak