08-15-2005 01:39 PM
08-15-2005 02:09 PM
08-15-2005 04:06 PM
08-16-2005 10:30 PM
04-25-2017 09:11 AM
Hi,
Do you know how I could use this VI to display certain messages based on an RMS input?
We need to use EMG signals to output different messages. We want the different message options to highlight one at a time. When the message is highlighted that you want to select, the user will squeeze their fist, and the RMS value will be used to as an input to select the message. Do you know what the best way to do this is??
Thanks! cwood4647@gmail.com
04-25-2017 08:31 PM
Pretty old thread, but anyway - you want to have a scrolling highlighted message option from an array of messages, and then choose based on an input signal?
If so, I should guess it's not too tricky. My suggestion (if that's your use) would be to have a multicolumn listbox control, containing each of your options, with 'Highlight Entire Row' selected. You could have an event structure in a while loop with a timeout case, in which the value of the MCLB was set to i%N, where i is the iteration terminal and N is the number of options.
Then, in a parallel loop, you can acquire your data and make a comparison against a threshold value. If the measurement is determined to have indicated the user squeezed their fist, then you can generate a user event and have the first loop handle the event, taking an action based on the value of the MCLB.
Does this sound like it might work for you?
04-28-2017 10:53 AM
Hi thank you so much for your help. I am pretty inexperienced with LabView, so I was wondering if you could take a look at my VI. I am having trouble with the multicolumn list and how to set the value of the MCLB. Basically, we are using an EMG to record input which will be used to select the message when highlighted. Any help would be really appreciated, I am struggling with this project.
Thanks!!
04-28-2017 12:21 PM
I had meant something a little more like this. Of course, that doesn't mean you should do it!
I'm not sure exactly how you want it to look, and you can use a table or MCLB in 2D with more careful selection - this was just a quick example showing some communication between loops and stop criteria, and so on.
If you don't need the string (because you know the index, for example) there's no need to wire the Item Names into the loop in this example. I did it just for a simpler way to write the 1-button dialog used as a placeholder for an event handler.