Jump to content

New wire type, the Null wire


Recommended Posts

QUOTE (Jim Kring @ Mar 14 2009, 05:06 PM)

What's not to understand? It's a new method of forcing and dsiplaying execution order when we can't use dataflow (easily or neatly).

QUOTE (Yair @ Mar 14 2009, 12:12 PM)

I think this is a terrible idea and would create a huge potential for wiring bugs for people who won't notice the border or know what it is. I'm guessing that you just want the users of the NI forums to have more threads they'll need to respond to.

I'm not married to the visual implementation.

QUOTE (Yair @ Mar 14 2009, 12:12 PM)

Just like we currently do with dataflow?

QUOTE (Yair @ Mar 14 2009, 12:12 PM)

If you guys don't like the sequence structure because of its size, all you need to do is use the diagram disable structure which has a much thinner border and which I believe can have a single frame.

Yuk! That'd be unintuative - people looking at code like that would see a diagram disable structure. Sure, there are ways around this issue, but we're discussing an intuative new feature.

Link to comment

I agree that using the disable structure is not the right way to go since it will lead to greater confusion because the structure is being used in abnormal ways. Crelf's suggestion or the Null wire suggestion both have specific meaning. They impart sequence flow where there is no inherent data flow. Either method replaces the need to wrap subVIs and introduce artificial data flow by passing an error cluster or some other data through it that is not actually used or using the very large sequence frames to accomplish the same thing.

Link to comment

QUOTE (crelf @ Mar 15 2009, 03:56 AM)

Just like we currently do with dataflow?

Not exactly, since people seem to want to avoid "artificial" data flow and you would usually want to scope a block of code.

Here's a challenge - create a sample graphic which has several nodes and shows how this is easier and more readble.

QUOTE

Yuk! That'd be unintuative

Probably. I didn't say it was a good solution. :shifty:

Link to comment

Your example has no code and the border wraps each node individually.

What I'm essentially getting at is this - Either the code you're scoping has internal dataflow dependencies and then it can have an external dataflow connection easily added, even today (e.g. by using the OpenG tick count wrapper), or it doesn't have internal dataflow, in which case you would need to force it or wrap all the code in a single structure to make it clearer that you're profiling all of it together.

I simply fail to see the big advantage in having a "special" wire and I do see potential for problems.

P.S. I'm not even sure that making sequences smaller is even a good idea. Narrow borders are great, but we need to be able to easily tell the different structures apart. I think we would have to see an example of a thinner sequence to know whether it's worth it or not.

Link to comment
  • 2 months later...

Just came to this discussion via a link from a comment here and wanted to register my vote against the 'null wire' idea, sorry. I don't see the huge advantage over sequence structures for the relatively small number of use cases and it introduces not only a new bit of visual language which new users have to learn before they can understand other people's LabVIEW code, but also a new functionality that new users (or programmers coming from text languages) are quite likely to misapply in order to force linear code into LabVIEW instead of learning to think in dataflow.

I believe if NI introduced this, we'd all regret it pretty soon ;-)

Link to comment
  • 3 months later...
...new functionality that new users (or programmers coming from text languages) are quite likely to misapply in order to force linear code into LabVIEW instead of learning to think in dataflow.

I agree that's a valid conern - and it certainly should be considered for every feature addition/change/deletion, but IMHO I don't think it's a strong enough reason to not introduce new functionality. If that was NI's policy, I don't think we'd have any features like LVOOP.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.