Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Can someone tell me why this doesn't work?

For general discussion related FlowStone

Can someone tell me why this doesn't work?

Postby Perfect Human Interface » Mon Mar 03, 2014 8:52 pm

Hold.PNG
Hold.PNG (17.46 KiB) Viewed 14637 times


There's an input in the 0-1 range. The idea is that the float at the bottom right holds the lowest value by only updating if the input value is less than that float value.

What happens instead is that the float value is always set to the input value, but it only updates when you either click inside the schematic window or drag the mouse across the highlighted connector.

What am I missing? Thanks.
Perfect Human Interface
 
Posts: 643
Joined: Sun Mar 10, 2013 7:32 pm

Re: Can someone tell me why this doesn't work?

Postby oddson » Mon Mar 03, 2014 9:27 pm

I don't know why that would work... but this should
min.png
min.png (16.83 KiB) Viewed 14631 times

The bottom primitive is "Sample and Hold"
Last edited by oddson on Mon Mar 03, 2014 9:41 pm, edited 1 time in total.
oddson
 
Posts: 36
Joined: Sun Jul 25, 2010 12:13 am

Re: Can someone tell me why this doesn't work?

Postby stw » Mon Mar 03, 2014 9:34 pm

just by view....at least the trigger order is wrong. The connection from input to the validator should be the first and the one to the trigger switch the second.
Can't say why the trigger is killed. You can do it with an added s/h prim like i did and it should work fine...

capture.png
capture.png (17.58 KiB) Viewed 14628 times


EDIT: ;) oddson was faster...
stw
 
Posts: 111
Joined: Tue Jul 13, 2010 11:09 am

Re: Can someone tell me why this doesn't work?

Postby oddson » Mon Mar 03, 2014 9:39 pm

Oh... yours doesn't work because the output triggers are being supressed and the comparison operator is not getting the updated values.
oddson
 
Posts: 36
Joined: Sun Jul 25, 2010 12:13 am

Re: Can someone tell me why this doesn't work?

Postby stw » Mon Mar 03, 2014 9:47 pm

oddson wrote:Oh... yours doesn't work because the output triggers are being supressed and the comparison operator is not getting the updated values.


hmm... i don't see a surpressed trigger. It's a matter of trigger order. This one works fine. At least here....
stw
 
Posts: 111
Joined: Tue Jul 13, 2010 11:09 am

Re: Can someone tell me why this doesn't work?

Postby oddson » Mon Mar 03, 2014 10:45 pm

I didn't mean yours... I didn't know you'd posted when I added that.

But you're likely right that it's not PHI's problem either. I do think the Boolean trigger is simpler and clearly a sample and hold is needed.
Last edited by oddson on Mon Mar 03, 2014 11:17 pm, edited 1 time in total.
oddson
 
Posts: 36
Joined: Sun Jul 25, 2010 12:13 am

Re: Can someone tell me why this doesn't work?

Postby stw » Mon Mar 03, 2014 10:52 pm

oddson wrote:I didn't mean yours... I didn't know you'd posted when I added that.


:lol:
but looking at yours i ask myself if that really does the job well? I guess the true to trig is not the way to go because it needs to become false before a new trigger can be sent IIRC?
stw
 
Posts: 111
Joined: Tue Jul 13, 2010 11:09 am

Re: Can someone tell me why this doesn't work?

Postby RJHollins » Mon Mar 03, 2014 10:57 pm

I tried to 'play along' on my own here ... also tried to understand what the circuit needed to do.

I did wire up the examples you guys posted ... but to be honest ... none of them seem to do what I thought was to happen. :|

Probably the 1st issue is me not clear what is needed. The 'Peak Hold' label gave me the impression that we might
be looking at a type of VU peak 'bug' indicator ... but I'm not sure of this ...

So like ... I've been a lot of help :roll:
:lol:
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm

Re: Can someone tell me why this doesn't work?

Postby Perfect Human Interface » Mon Mar 03, 2014 11:33 pm

stw wrote:just by view....at least the trigger order is wrong.

Sorry, yes, I had already changed that but the behavior didn't change.

oddson wrote:Oh... yours doesn't work because the output triggers are being supressed and the comparison operator is not getting the updated values.


Hm, that's odd. I would expect it would be able to draw the value from the float without triggers passing through like that. I still don't really understand the propagation of triggers in this program.

stw wrote:but looking at yours i ask myself if that really does the job well? I guess the true to trig is not the way to go because it needs to become false before a new trigger can be sent IIRC?


That's true; good catch. I wouldn't have realized that if you didn't point it out. I think with the trigger switch it's doing the trick.

Thanks everyone.
Perfect Human Interface
 
Posts: 643
Joined: Sun Mar 10, 2013 7:32 pm

Re: Can someone tell me why this doesn't work?

Postby tester » Tue Mar 04, 2014 12:01 am

Propagation of triggers is not that bad. :-)
...gets a little bit worse if there are too many ambiguous loops of trigger flow. :mrgreen:
So - what do you need to be explained again? :D
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Next

Return to General

Who is online

Users browsing this forum: No registered users and 74 guests