10-12-2015 09:57 AM
Hi GerdW
Thanks for your BIG tip!! I do think dataflow, otherwise I couldn't use labview.
10-12-2015 11:44 AM
10-12-2015 02:03 PM
Hi GerdW
it depends, what a "cleaned up BD" means for you!
But I know using the local variables in VI does not necessarily mean that user doesn't think data flow.
10-12-2015 02:15 PM
@Iman1988 wrote:
Hi GerdW
it depends, what a "cleaned up BD" means for you!
But I know using the local variables in VI does not necessarily mean that user doesn't think data flow.
ROTFL.
And you are arguing data flow with GeradW??? Seriously?
10-12-2015 02:42 PM
Hi nyc
No, I don't argue with him or anyone else. I respect his knowledge as an expert in LV and I already know that our LV knowledge are not comparable.
But apparently he gets pissed off early when you ask an easy question and repeat it more than once.
The reason that I asked my problem here, was to get my answer and learn something from the experts like GerdW. And actually I was expecting a better approach than this.
10-13-2015 12:39 AM - edited 10-13-2015 12:43 AM
Hi lman,
I'm not "pissed off" - I even wouldn't use these words in a public forum…
The reason that I asked my problem here, was to get my answer and learn something from the experts
Yes, you did that. And I gave you the answer in pseudocode, but you weren't able to work with pseudocode.
And you weren't able to implement your logic in LabVIEW…
You only have to sort out where to place a case structure and a while loop.
Don't you think you should start over with a simple VI to have that simple algorithm running - before implementing the DB stuff?
10-13-2015 03:59 AM - edited 10-13-2015 04:17 AM
Hi GerdW
You are right. I may shouldn't have used such words in a public forum. So, I'm sorry.
Today, again I looked at your first reply and I solved the problem by using a while loop around the event structure and a case structure where the "Cancelled" is wired to the selector and rest of the codes including opening and closing the DB connection block in the False case.
Yesterday I was really tired and I think it was why I couldn't follow such easy logic.
I have question regarding one of your tips:
You suggested me not using local variables. Would it be better to use the value property node when we need to read or change the value of a control/indicator instead of its local variable?
10-13-2015 09:36 AM
Hi lman,
Would it be better to use the value property node when we need to read or change the value of a control/indicator instead of its local variable?
No…
Usually you don't need locals (or "value" properties): use wires instead. When you want to implement something like an "increment" style function: use a shift register to store the value!
You only need can use locals to initialize a control, but this most often is a "one-time-only" operation…