Specifisaurus Posted July 7, 2015 Report Share Posted July 7, 2015 Hi All, Just picking brains. In the old Visologic software there was the Event Scan function which I found to be very useful and helpful in a lot of instances. I noticed that the Unistream doesn't have the same function (unless I just over looked it) any thoughts on how to get a similiar effect without 100 lines of code listing every bit? I've tried putting all the bits into an array, then converting bits to numeric and using math to watch the numeric to see how many bits are on... just seemed kinda clunky, funky and painful. Quote Link to comment Share on other sites More sharing options...
Cara Bereck Levy Posted July 8, 2015 Report Share Posted July 8, 2015 Hi :-)In UniLogic, the Events function is performed by a UDFB, rather than a Ladder function. If you have downloaded the UniLogic sample applications, there is one called UniStream_070_Events_UDFB.ulpr You can open this application, tailor the function to your needs, export the Events function into your library, and use it anywhere. There is more information on the Library in the Help topic: Reusing Your Work: UDFBs & Screens, but following image shows the basics. If you aren't familiar with UDFBs, there is information in the Help topic>User-Defined Function Blocks --and also the tutorial I've linked to below. Quote Link to comment Share on other sites More sharing options...
Specifisaurus Posted July 8, 2015 Author Report Share Posted July 8, 2015 Thank you Cara I will give it a look. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.