Periodic Run

Dear all,

I am trying to use the periodic run to read from external text file and write to the same. but it only read/write at 1st run. any idea !

Regards,
Mohammad Nawar

Add a node that will refresh (date time now), and use that to trigger a recalculation of the file name to cause a refresh of the nodes downstream.

2 Likes

Can you show me an example how to refresh the node since it does not have input. l am a little lost :sweat_smile:

In a code block

{ filePath, dateNow }[0]

2 Likes

If you are running Dynamo 2.0, lists were changed to brackets instead of {}. Try [ filePath, dateNow ][0];

2 Likes

Thank you all

Side-note… If the workflow you are showing here is what you’re doing you should add a “[Waitfor,pass][1]” in between filepath and writetext as you want the rest to complete before writing back to the file!

EDIT:
Added the “Complete” picture :slight_smile:

5 Likes

Thank you for the tip and noted :+1:

@Mohammad_Nawar, please post or mark a complete solution (ideally incorporating the input from @Jonathan.Olesen as well) so that others can learn from this post in the future.

Thanks!

already did that before but i can accept only one solution but anyway it been given for @Jonathan.Olesen

1 Like

@JacobSmall @Mohammad_Nawar

FYI, added the “complete” picture to my other post :slight_smile:

2 Likes