12-12-2019 12:20 AM
Hello everyone !!
please help me
i'm getting 3 errors error when i executing the code normally.
but when I executing the same code with highlight execution it is working fine.
so how can I solve my issue;
thanks....
12-12-2019 12:29 AM
You should not be running your DB operations in parallel. The reason it works with execution highlighting turned on is that execution highlighting basically runs things as a single thread and the DB calls are no longer being executed in parallel.
12-12-2019 12:44 AM
I closed all the database operations but still I'm facing same error.
please help me sir.
12-12-2019 12:52 AM
the following is my code.
12-12-2019 06:27 AM
As was already pointed out to you, your database operations are happening in parallel. You need to chain the operations to run in series.
12-12-2019 06:49 AM
@charan6066 wrote:
the following is my code.
No, you attached a picture of your code. If you had attached your code (a file with the extension ".vi"), we could have sent you a picture (or maybe even the code, saving you some work) of the specific steps you need to do, in case you didn't understand what we meant by "in parallel".
Bob Schor
12-12-2019 07:35 AM
please tell me how to change in detail.
thanks......
12-12-2019 07:37 AM
thanks for correcting me.
i'll share with .vi
please let me know the correct solution.
please help me.
12-12-2019 08:09 AM
@charan6066 wrote:
please let me know the correct solution.
Use Data Flow! Pass your errors from one VI to the next. This will create data dependencies and therefore set the order of when the VIs are ran.
12-12-2019 11:12 AM
Boil down LabVIEW to its very core: "Remember that a node executes only when data is available at all of its input terminals and supplies data to the output terminals only when the node finishes execution."
If you apply that one sentence ruthlessly to your code, you will be on your way to efficient LabVIEW coding. Apply that sentence to your code and you should be able to bend that VI to your will.
More on dataflow here.