Jump to content

CSV File Output In different Line


Recommended Posts

  • 3 weeks later...
  • MVP 2023

Not quite - why are you triggering the first write with the second write's success bit?

Sometimes when you call two separate functions that use external hardware (like the SD interface) you have to put a small delay in between the calls - like half a second or so.

If you post your code I can edit to show what I mean.  I'm not going to enter all that logic just for a screenshot.

Joe T.

  • Like 1
Link to comment
Share on other sites

2 hours ago, Joe Tauser said:

Not quite - why are you triggering the first write with the second write's success bit?

Sometimes when you call two separate functions that use external hardware (like the SD interface) you have to put a small delay in between the calls - like half a second or so.

If you post your code I can edit to show what I mean.  I'm not going to enter all that logic just for a screenshot.

Joe T.

thiis.vlp

Link to comment
Share on other sites

  • MVP 2023

You need to do something like this: 

image.png.56f33bfb6e301300dfed0fa17a5953c3.png

 

Keep in mind that I haven't inspected your function blocks to see if they're right, just added the logic for triggering the writes. The Set & Reset bits may not be necessary, but it's good practice when there are gating contacts between the trigger and the desired function.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...