LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error handling

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....

Download All
0 Kudos
Message 1 of 12
(3,254 Views)

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.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 12
(3,236 Views)

I closed all the database operations but still I'm facing same error.

please help me sir.

0 Kudos
Message 3 of 12
(3,224 Views)

the following is my code.

0 Kudos
Message 4 of 12
(3,210 Views)

As was already pointed out to you, your database operations are happening in parallel.  You need to chain the operations to run in series.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 5 of 12
(3,134 Views)

@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

Message 6 of 12
(3,124 Views)

please tell me how to change in detail.

thanks......

0 Kudos
Message 7 of 12
(3,117 Views)

thanks for correcting me.

i'll share with .vi

please let me know the correct solution.

please help me.

 

0 Kudos
Message 8 of 12
(3,115 Views)

@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.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 9 of 12
(3,102 Views)

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.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 10 of 12
(3,071 Views)