LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I make vi run faster?

Solved!
Go to solution

@Emna20 wrote:

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

 


Typically one good solution is sufficient. How many different "solutions" do you actually need? Have you tried any of the suggestions? Did you encounter any problems?

0 Kudos
Message 31 of 37
(857 Views)

@

hi ,i add a refresh button to the database code . i want to know your opinion to my code  .

 

az1.PNGaz2.PNG

 

0 Kudos
Message 32 of 37
(834 Views)

If it works as expected, then it is good. Do you want a code review? Does the code do what you expect? Are you having any problems? Have you tried all that was suggested? Please share code and not pictures.

 

- A button named "button"? Really?

- Use the event structure to trigger on the "refresh button" instead.

Certified LabVIEW Architect
0 Kudos
Message 33 of 37
(826 Views)

You cannot mix polling (the Boolean\case) with events!

 

Add a refresh value change event to the event structure. Put the refresh code in it. Put the result in a shift register.

 

Add an ID value change event to the event structure (remove it from the shared event with Button). Put the ID code in it, using the data from the shift register. 

 

Rename Button to Stop.

 

When done correctly, the refresh will refresh, the ID will update the name\brand\reference and Stop will stop.

0 Kudos
Message 34 of 37
(822 Views)

hi , 

@thols  you find below my code ( button mean : Home button )

@ wiebe@CARYA  what do you mean by put the result in shift register (while loop + Shift Register or for loop +Shift Register ) more explantation please  .

 

 

0 Kudos
Message 35 of 37
(796 Views)

I already described what to do long ago.

 

Your above code is completely useless. Why would you need a case structure if both cases contain identical code???

0 Kudos
Message 36 of 37
(774 Views)
Solution
Accepted by topic author Emna20

@altenbach wrote:

I already described what to do long ago.

 

Your above code is completely useless. Why would you need a case structure if both cases contain identical code???


Here's one (of many!) possibility. You really should start with a few more LabVIEW tutorials!

Message 37 of 37
(768 Views)