12-02-2015 03:18 AM
Hi guys,
I have been trying to implement a sort of auto filter in labview. The idea is to have a string control, when the user start writting something in the string it automatically gives options based on what the user is writting. Its the same idea like google search that it gives us suggestions but in this case I want to get the suggestions based on a enum which already predefied .
Is it managable in LABVIEW ?
12-02-2015 09:44 AM
I have something like this but I am using SQLite behind the scenes and doing the match in there, for all things it is "like". The other option is to run through your list with the search string function with both inputs capitalised and return only those elements from the array where the search index > -1. Mike
12-02-2015 10:59 AM
Does somethign like this fit your desires?
12-02-2015 03:11 PM
MikeeB wrote:
I have something like this but I am using SQLite behind the scenes and doing the match in there, for all things it is "like". The other option is to run through your list with the search string function with both inputs capitalised and return only those elements from the array where the search index > -1. Mike
If you really want to "Google Search" large amounts of data, you can use the "Full Text Search" virtual tables in SQLite.
12-03-2015 03:12 AM
The file is in LV2013 version
Enter the input string in the string control. Double click on the suggested option below the string to select it.
The suggestion string are taken from the values in the Enum. Update the Enum to add or remove more options for string suggestions.
12-03-2015 08:13 AM
There is the obvious "Use a Combo Box". No coding required. Might not quite behave exactly how you want, but it might just be close enough.
12-03-2015 10:07 AM
I have attached a sample with SQLite what MikeeB said. This VI dynamically loads the sql search result from a Chinook DB. To run this you would need SQLite Library (http://sine.ni.com/nips/cds/view/p/lang/en/nid/212894) which can also be downloaded from VIPM.
This file is LV2014 version.
12-04-2015 09:25 AM
I think that this Video link might have been lost with the image, so i'll just post here again
http://screencast.com/t/kZgcJAy3KsMI
It gives quickdrop like functionality for whatever glut of strings you have, from enum or table or whatever.
12-04-2015 09:45 AM
Norm: I saw the video, but where is the code?
12-04-2015 10:24 AM
Ask and ye shall receive
http://www.screencast.com/t/LycwcwD2Dbu
QuickSearch
It's a combination of my code from modified others code, so not all is up to standards, but for the moment, it gets it out there.
It should feel very familiar to any LV user