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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Confirm to continue.