03-10-2021 11:57 PM
Hi,
I manually update data from .xlsx to .txt
I use labview to list and select items from srcolldown menu.
I attached my VI.
If run my VI at very first startup 'na' is selected by default from list. Meanwhile I get error codes such as 'creating .csv file' and 'writing data to .mdb file' until i select another item in listbox, e.g.: 'First line'. After then If i select any other items from list error codes disappear. I then can choose 'na' again and it will work.
Scroll down menu content:
na
First line
Second Line
Third line
etc
Why 'na' is not accepted at first startup?
Kind regards,
Balázs
Solved! Go to Solution.
03-11-2021 01:03 AM - edited 03-11-2021 01:32 AM
Hi LT,
@LTBALAZS wrote:
If run my VI at very first startup 'na' is selected by default from list. Meanwhile I get error codes such as 'creating .csv file' and 'writing data to .mdb file' until i select another item in listbox, e.g.: 'First line'. After then If i select any other items from list error codes disappear. I then can choose 'na' again and it will work.
Scroll down menu content:
na
First line
Second Line
Third lineetc
Why 'na' is not accepted at first startup?
At first startup the ring is empty, but yet you write the string into the listbox value property. As the ring doesn't know that value it cannot select/accept it as valid value. Then you parse the string into its lines and set the ring item strings. Now the ring knows it's list of valid values and can accept the "na" on the second try…
Another problem is: you write the whole text file content into the value property: what should the ring do with this full length string?
Btw. don't talk about "list" and "listbox" when you are using a ring control…
03-24-2021 02:33 AM
Thanks!