cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Rube Goldberg Code

Re: Rube Goldberg Code

Message 1871 of 1,898
(422 Views)

Re: Rube Goldberg Code


Blokk wrote:

time.jpg

 

From here:

https://forums.ni.com/t5/LabVIEW/Problems-with-Quotient-amp-Remainder-in-FPGA/m-p/3723904/highlight/...

 

 


I had to stare at that far longer than I should have to figure out what was going on.

0 Kudos
Message 1872 of 1,898
(374 Views)

Re: Rube Goldberg Code


BowenM wrote:

Blokk wrote:

time.jpg

 

From here:

https://forums.ni.com/t5/LabVIEW/Problems-with-Quotient-amp-Remainder-in-FPGA/m-p/3723904/highlight/...

 

 


I had to stare at that far longer than I should have to figure out what was going on.


It's not that badSmiley Very Happy. Just replace the two Booleans, two shift register, the AND, the selector and the 7 wires for a "First Call?". So 7 nodes, 7 wires replaced by 1 node and 0 wires? Yes, that's Rube Goldberg Code alright!

 

Somehow that one pixel jump in the top wire (on the right) bothers me more then in should.

0 Kudos
Message 1873 of 1,898
(342 Views)

Re: Rube Goldberg Code


wiebe@CARYA wrote:


It's not that badSmiley Very Happy. Just replace the two Booleans, two shift register, the AND, the selector and the 7 wires for a "First Call?". So 7 nodes, 7 wires replaced by 1 node and 0 wires?


Actually, it looks like you still need the feedback node, because the point is to check the current time against the start time. One option would be to use the FN and select. Another might be to use just the FN and set it to initialize on first call, then wire the current time to the init terminal and the output back to the input.


___________________
Try to take over the world!
0 Kudos
Message 1874 of 1,898
(338 Views)
Highlighted

Re: Rube Goldberg Code


tst wrote:

wiebe@CARYA wrote:


It's not that badSmiley Very Happy. Just replace the two Booleans, two shift register, the AND, the selector and the 7 wires for a "First Call?". So 7 nodes, 7 wires replaced by 1 node and 0 wires?


Actually, it looks like you still need the feedback node, because the point is to check the current time against the start time.


Yes, one. The other two are redundant.

 

But the First Call? is indeed not needed, as it's function is build in the FB.

 

dT.png

Message 1875 of 1,898
(333 Views)

Re: Rube Goldberg Code

Let's wait for a period of time, in 10 msec chunks, but the number of times to wait is based on a arithmetic series.

 

Seen here.

 

While loop near bottom after VISA Write

image

0 Kudos
Message 1876 of 1,898
(229 Views)

Re: Rube Goldberg Code


RavensFan wrote:

 

image


Is that uninitialized shift register a bug or a feature?

0 Kudos
Message 1877 of 1,898
(223 Views)

Re: Rube Goldberg Code

that is the rube goldebergish part Smiley Wink


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 1878 of 1,898
(219 Views)

Re: Rube Goldberg Code


jwscs wrote:

that is the rube goldebergish part Smiley Wink


Why (just covering myself...)?

 

That's a very efficient way to wait ~500 ms the first time, and then until the next 10 ms multiple forever after.

 

It could a bug or a feature. In the last case it's programmed pretty efficiently.

0 Kudos
Message 1879 of 1,898
(206 Views)

Re: Rube Goldberg Code

i was just kidding regarding the uninitialized shift register


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 1880 of 1,898
(203 Views)