03-26-2014 03:41 AM
Hello Everyone
I am competely new to labview. This might be very easy but I didn't get any videos or anything to solve this. Could some one help me please. I need abolck diaram in such a way that reads data from a word document which has some table in it when I select an item from the combo box. I tried with few "File I/O" but I am not geting it....... please suggest me few ideas. Thanking you in advance
Best Regards
Bhargava
03-26-2014 04:21 AM
Hi Bhargava,
is this question related to your other problem?
- To read "word" files you need to use ActiveX.
- I would suggest using Excel for table data and saving those tables as "comma separated values" aka CSV files. Then use the ReadSpreadsheetFile on those CSV files… (Much easier!)
03-26-2014 04:23 AM - edited 03-26-2014 04:32 AM
Yes it is related to my previous question.........I tried it with excel spread but when i am trying to change the valeus in the excel spread i am unable to save it again
03-26-2014 04:44 AM - edited 03-26-2014 04:49 AM
My problem is, when I select an item from the combo box it should open an previously saved excel spread or what ever file(in table format) and it should be able to edit the values and then save it......... Next step is like my previous question it shoul be updated to the combo box....could you please suggest me how could I do it
Best Regards
Bhargava
03-26-2014 04:50 AM
Hi Bhargava,
step by step:
- use a "value change" event of the combobox to detect user selection
- with this you need to decide which file to open - you didn't specify the algorithm used for this specification…
- then you read the file. I still suggest to use CSV files for the beginning…
- then you may ananlyze the data and even change them. They are just represented by an array…
- then you may save the changed data, again as CSV file for the beginning…
- then you could change the combo box entries - to whatever you want and by which data dependency you need (you didn't specify this part)…
03-26-2014 06:18 AM - edited 03-26-2014 06:20 AM
HI GerdW
I am sorry I am not clear wit ur 1st step......I need to use a boolean control as an input to the" value change" event of a combobox to detect my selection.... is that what u mean to say ?
03-26-2014 07:05 AM
03-28-2014 03:28 AM
Hello GerdW
Sorry to bother you again but I am not getting it. I used a Value change event to combo box and I am trying to read a .txt file as I cant use CSV file as you suggested but I am not getting how could I connect the .txt file to the value change event of the combobox......could you please suggest me. Thank you in advance
Best Regards
Bhargava
03-28-2014 03:35 AM - edited 03-28-2014 03:38 AM
Hi Bhargava,
I used a Value change event to combo box
Where did you do this? It's not visible in your picture…
I am trying to read a .txt file as I cant use CSV file as you suggested
A CSV file is essentially a text file, so why can't you use them?
In your image you are NOT READING the file, you just OPEN it!
how could I connect the .txt file to the value change event of the combobox
All I see in your image is a property node of the combobox.
What do you want to connect here? What do you want to achieve?
When you're not familiar with the LabVIEW vocabulary you should
- have open the context help all the time, it will tell you the name of each function…
- go through all those free online resource teaching LabVIEW basics offered by NI!
03-28-2014 04:02 AM - edited 03-28-2014 04:03 AM
Hi GerdW
I am really very sorry. I am totally confused with what I am doing. Could you please explain me clearly what a" value change" event is. I am learnig labivew only through youtube and google but I couldn't find any info on value change events. could you please suggest me any links or something where I could read more
Best Regards
Bhargava