Jump to content

Data Sampler with Bits


Recommended Posts

I want to create a data sampler that monitors a number of bits and integers, for troubleshooting purposes. As far as I can see, I can only assign integers or REAL numbers to the feed tags.

I know I could compare each bit status and store either 1 or 0 into an integer, then use those integers in the data sampler.... but I have a large number of bits that I want to monitor and was hoping there is a better way.

Any ideas?

Link to post
Share on other sites

Thanks for your replies.

The bits I need to monitor are not contigious, but I will look at the Bits to NUM instruction anyway...I haven't used that before.

As for "packing/unpacking bits into a UINT", I'm not exactly sure how to go about doing that.

Link to post
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...