06-23-2014 09:52 AM
Hello ,
I want to read a specific column from the text file if the columns are separated by a space.
When the whole file (as shown here http://imageshack.com/a/img834/6321/k55hx.jpg
) is read its column1 names should be visible in a drop list and whenever a name is selected from the list it should select its respective value from column2 in the text file and display the value in indicator.
I tried as shown here(http://imageshack.com/a/img829/6821/x4h0.jpg ) and got the output like this(http://imageshack.com/a/img840/1431/ior7.jpg ) but I am unable to get the required.
Can someone help me out with this.
Thanks.
06-23-2014 09:59 AM
06-23-2014 10:00 AM
The code you posted is basically correct, but you are selecting the row - not the column. Also we can't see what the string constant is. There are a couple ways to make nonprintable characters visible, or there is a space string constant.
Mike...
06-23-2014 12:09 PM
Thanks but can you explain more clearly of how to do this(perhpas with a vi).
06-23-2014 12:29 PM
wire the column input to the column selector input on the array indexer, not the row selector input.
Mike...
06-24-2014 04:41 AM
Hi stefan57.
If I understand you correctly, you are trying to make a dropdown list with the values from the first coloum, and when the user changes this values, you want the data to be shown.
I have made a small exampled that demostrates how this can be done.
(please note, that this code should be further improved, eg. by implementing proper error handling)
06-24-2014 08:41 AM - edited 06-24-2014 08:49 AM
Hi,
I want to try it as well but its in labview13 can somone convert it to labview11.
06-24-2014 08:55 AM
Try this.