LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Canceling the "File Dialog" and handling the errors caused by the empty path which establishes DB connection

Solved!
Go to solution

Hi GerdW

 

 

Thanks for your BIG tip!! I do think dataflow, otherwise I couldn't use labview.   

 

0 Kudos
Message 11 of 18
(1,513 Views)

Hi lman,

 

I do think dataflow, otherwise I couldn't use labview.

When you use local variables to "clean up" a block diagram you DON'T think DATAFLOW!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 18
(1,489 Views)

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.

 

0 Kudos
Message 13 of 18
(1,473 Views)

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

 

 

 

0 Kudos
Message 14 of 18
(1,464 Views)

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. 

0 Kudos
Message 15 of 18
(1,451 Views)

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?

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 16 of 18
(1,436 Views)

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? 

0 Kudos
Message 17 of 18
(1,418 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 18 of 18
(1,388 Views)