01-31-2017 08:00 AM
I have the DAQ plotting the whole 16 bit word but I only need to see a single bit in the word transition from 0 to 1. Is there any way to mask the bit?
I am using Test Stand 2013.
Thanks
Tom
Solved! Go to Solution.
02-01-2017 02:21 AM
Tom,
first of all, TestStand doesn't acquire data by itself; you require a code module for this.
Second: Are you talking about a digital signal? If not, your request doesn't make much sense as a toggle of a specific bit is either
a) passing a threshold (simple greater equal comparison) - or -
b) simply nonsense as the bit might be subject of expected measurement inaccuracies (typically the lowest 2-3 bits)
02-02-2017 08:34 AM
I agree with Norbert here we need some more context on how this data is being collected and then passed to TestStand so that we can fully understand why/how this bit will need to be represented.
Applications Engineer
National Instruments
02-08-2017 09:52 AM
Worked around the issue in the software instead of trying to mask the bits. This was a 16bit word representing a bunch of different flags. I.e. Bit 2 is a discrete that indicates weight on wheels. I am using the DAQ Plot to show exactly when the WOW bit is set or cleared. In Test Stand this word gets stored in a Local variable say
Flags. That part is working fine. Can I now use an expression to mask off
bit 2 and store it in a local WOW_flag variable? In C it would be WOW_flag = Input_word & 0x0004. Just didn't know if Test Stand can do this type of expression.
02-09-2017 04:13 PM
Hey TomMills,
There is not a function to do bit masking in TestStand. You should do this in the code module itself instead. What type of code module are you using to actually get this data?
Thanks,
Applications Engineer
National Instruments