From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

hex trigger position calculation

hi,
does anyone have advice:  across a tcp/ip port i will be recieving a 32 bit hex address location(ex. AAAA AAAA).  this is a location where an event or trigger has happened.  i need to design a trigger position from that memory location i received.  so if my trigger positon was 50% and i wanted 11 samples then i would need to compute the hex address 5 locations before AAAA AAAA and 5 after.  i'm not quite sure how the best way to do this.  if more clarification is need please let me know.

thanks,
lfoitek
0 Kudos
Message 1 of 3
(2,125 Views)
Make sure your hex position comes in as a U32 integer (or convert it to that if necessary).  Then just do the math and add or subtract from that number.  You can display the U32 in hex format by going into the properties of the control, indicator, or constant.
Message 2 of 3
(2,121 Views)
sweet i got it too work. 

thanks
0 Kudos
Message 3 of 3
(2,117 Views)