05-16-2019 10:59 AM - edited 05-16-2019 11:04 AM
Here's what I would probably do. No need for the search button, just populate the fields whenever the ID changes. (The indexing is outside the event structure so it also updates once when the loop is entered.)
05-17-2019 03:28 AM
hi ,
thank you everyone .
if i change the ( ID , Name , Brand , Reference ) in the database when the program is running . this change is not appear in LabVIEW . could you please help me .
05-17-2019 03:36 AM
@Emna20 wrote:
hi ,
thank you everyone .
if i change the ( ID , Name , Brand , Reference ) in the database when the program is running . this change is not appear in LabVIEW . could you please help me .
Post your code. It's not clear what advice you took or didn't take... There are a few posted solutions, and some made (reasonable) assumptions. If you use one, we need to know which one.
05-17-2019 03:45 AM
hi ,
i use the solution posted by altenbach
05-17-2019 06:44 AM
Altenbach's solution won't continuously update the strings. Only once when started. This made most sense to us, but apparently isn't what you want.
Move the code that updates the string to the time out case of the event structure (that you need to add). Also wire a reasonable time to the TO terminal...
05-17-2019 10:24 AM - edited 05-17-2019 10:32 AM
@Emna20 wrote:
hi ,
thank you everyone .
if i change the ( ID , Name , Brand , Reference ) in the database when the program is running . this change is not appear in LabVIEW . could you please help me .
If the database actually changes (I mentioned that long ago) your code would be highly flawed because the values in the ring and the values later read from the database would be completely unrelated. You could use my code and add a "refresh" button to re-read the database and place the 2D string array into a shift register and reset the ring items to the new database entries. You cannot necessarily rely that the current ring value corresponds to any particular database entry. What if it valid item 10 is selected and somebody would remove all but 5 items from the database??
LabVIEW is a programming language, so everything you need can be done, you just need to decide what you need.
05-28-2019 04:04 AM
hi altenbach ,
Could you please explain what you mean in a VI
05-29-2019 08:29 AM
06-11-2019 02:57 AM
hi,
i want to know if there is any other solution for this topic : https://forums.ni.com/t5/LabVIEW/how-can-I-make-vi-run-faster/m-p/3931129#M11171833
06-11-2019 07:11 AM
What have you tried? Can you post some code?