devsol Posted January 6, 2012 Share Posted January 6, 2012 newbie here. What's the best way to log a digital output channel's value in the logging set? Setting a timing value on the output channel doesn't seem to work? Thanks, Ray Link to comment Share on other sites More sharing options...
AzeoTech Posted January 6, 2012 Share Posted January 6, 2012 You don't want to set a timing for an output. That'll just set it to 0 at the interval you specify. You have two choices here: 1) in the logging set details, put the Align Mismatch as "Duplicate Last Value" and make sure you initialize the output at least once on startup 2) create a second channel, probably Test, Dig Out, and then in the Event on one of your input channels, put something like: myTestChannel.addValue(insertTime(myDigOut, myInChan.time[0],0)) where myTestChannel is the Test channel you created, myDigOut is your digital out, and myInChan is the channel you have this script in. This will cause myTestChannel to be updated with the current status of the digital out every time the input channel updates. 3) consider using a true analog input / digital input to get feedback from the actual output. This is the best method because it tells you what the actual output is reading in hardware, but requires an extra input, and some simple wiring. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.