取消
显示结果 
搜索替代 
您的意思是: 

LabVIEW Style Challenge - Error Wires

I'll play too

hunter_jki_0-1691599834993.png

 

11 条消息(共 147 条)
2,195 次查看

_Henry_0-1691600347634.png

 

12 条消息(共 147 条)
2,188 次查看

stlye-challenge-error-handling_BD.png

I assumed the Queue and Event were independent processes and should be generated even if one fails.  I also assumed that this doesn't need to scale up with more parameters, but that seems like a place for improvement with a for loop.

13 条消息(共 147 条)
2,175 次查看

And here is mine. 



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
14 条消息(共 147 条)
2,170 次查看

Hooovahh,   did you right-click the merge errors and report all?  I think there is another glyph that would be visible if you did.  I could be wrong. 

 

But, I definitely advise adopting this new feature and would be disappointed if it was overlooked at GDevCon. 


"Should be" isn't "Is" -Jay
0 项奖励
15 条消息(共 147 条)
2,158 次查看

Here's what I might do:

 

altenbach_0-1691604920773.png

 

Of course we don't really have all requirements, for example should an error be generated if an item is not found or should it just ignore missing values??

 

0 项奖励
16 条消息(共 147 条)
2,111 次查看

I may make a submission later, but I see that a couple of the existing submissions have used an Error Ring.

 

The error ring is great in theory but in practice it is an Xnode, which are now recommended that you not use per Darren in his presentation "Ludicrous ways to fix broken LabVIEW code", here:

https://youtu.be/HKcEYkksW_o?t=602

 

The short version if you don't watch the whole thing is that Xnodes may work well in isolation but can and will cause incredible headaches when they start being used in classes, PPLs, and malleable VIs, but the cause will often be nearly impossible to trace back to your use of an Xnode.

17 条消息(共 147 条)
2,099 次查看

@JÞB wrote:

Hooovahh,   did you right-click the merge errors and report all?  I think there is another glyph that would be visible if you did.  I could be wrong. 

 

But, I definitely advise adopting this new feature and would be disappointed if it was overlooked at GDevCon. 


It does not have merge errors.  I thought about it but I thought in cases you might get the same error reported twice due to the wiring.  But it probably is important for the User Event, and Queue to have unique errors tracked.  In practice it doesn't really matter because even one missing reference is bad and needs to be fixed, knowing you have two might not help debug it much.  But yeah what harm is it to just have it on?  Not much.

0 项奖励
18 条消息(共 147 条)
2,081 次查看

Interesting, quite a bunch of impressive people on the submission list. My questions/observations:

  1. Surprised nobody specified a default value for the INI read.
  2. If the key is not found or an error, most do not send a message on the User Event or the Queue. What happens if the receiver is waiting for a message? Why not send a default value or a key not found message? Why not notify things downstream of the problem?
19 条消息(共 147 条)
2,077 次查看

Screenshot 2023-08-09 120541.png

 

Pet peeves: stuff hidden under structures, wires going from right to left, default subVI icons.

0 项奖励
20 条消息(共 147 条)
2,062 次查看