3 ms·
We have a Labview program for our circuit board tester and it is a bit of a nightmare. At least with visual coding it is obvious, literal "spaghetti code". My
by Psychlist 6y ago
We have a Labview program for our circuit board tester and it is a bit of a nightmare. At least with visual coding it is obvious, literal "spaghetti code".
My only experience with Labview was in another job writing a DLL that it could import so the poor sucker working on the code could do a bunch of complex state machine stuff without having to drag "wires" all over the place in Labview. That ended up with a design pattern that was "route inputs to DLL function, route output to next stage" that turned out to be much easier to maintain. Partly because it enforced modularisation, and partly just because a series of if statements and function calls is easier to read than diagram.
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019Ls1SAE https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000...
Also, Lego have a whole series of graphical languages for their electronics, and those are very cool but extremely limited. Once you get past "when this switch is pressed make this motor go" it is easier to hit the textual language.
- MH15 6y agoSimulink has the ability to make Blocks out of Matlab (or any FFI supporting language) code and run them in the simulation loop. We used this for state machines at our lab.
- chrismatheson 6y agoI believe the Lego mindstorms stuff was actually lobbies under the hood? I seem the rememberer the NI folks handing out large mindstorms sets as pressies to engineers because they had a partnership with Lego. It was semi common to see engineers using the “big boy” tool, Labview to play with some Lego mindstorms actuators etc