Go to Post Minnesota could pioneer the idea of suspending a field 20 feet above the other field and have true double decker events. - PayneTrain [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-04-2009, 21:11
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Set Digital out

I'm not a programmer, and so this may not be at all helpful, but I speak Binary.

Let's say you have bits one through eight and you want to set them.

Setting Bit 1 looks like this: 00000001
Setting bit 8 looks like this: 10000000
Setting both looks like this: 10000001

The first number is 1 (01h), the second number is 128 (80h), the 3rd number is 129 (81h).

So, if bit 8 is set on and all the rest are off, you're sending 80h. To turn Bit 1 on without affecting bit 8, send 81h.

As another example (work this out on paper) Bits 1, 5 and 8 on = 91h, and 1 and 5 only is 11h. Get it?

EDIT: I see it uses a binary number like 10000001, so convert the hexadecimal values in my example above to binary.
__________________

I am N2IRZ - What's your callsign?

Last edited by DonRotolo : 04-04-2009 at 21:13. Reason: hex to binary conversion
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting out Digital NASA TV Billfred General Forum 2 03-12-2007 18:55
pulsing digital out pins, not as fast as pwms Generalx5 Programming 5 02-04-2007 18:52
Digital out signal speed on off, almost like PWM but at max 60Hz Generalx5 Electrical 2 27-03-2007 12:26
Set Default Digital inputs to Low? How? bad Analog value? Generalx5 Programming 11 04-01-2007 18:57
Digital Caliper as a Digital Readout on Small Mill sanddrag Technical Discussion 9 13-10-2005 22:51


All times are GMT -5. The time now is 21:39.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi