View Single Post
  #3   Spotlight this post!  
Unread 07-02-2009, 22:06
TimeOut's Avatar
TimeOut TimeOut is offline
Registered User
AKA: Sean Kelly
FRC #0499 (The Toltechs)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: San Antonio, TX
Posts: 50
TimeOut is on a distinguished road
Re: DIO Signal, Channel, and slot

Bit switches: You need to manually determine the value of the switch. For instance, if you are using just two bits then it follows:

Bit one Bit two
False False = 0
True False = 1
False True = 2
True True = 3

something like this. The switches are your DIO inputs.

The slot is the module, you probably don't really need to set it and just use the default (module 4). For the channel, right click on the terminal select CREATE then select CONSTANT and select the proper DIO channel (1 or 2?)

I've attached some simple logic for 4 bits. There is probably a much more effecient way to do this in LabVIEW than this; but it does work

Sean
Attached Files
File Type: vi BitCounter.vi (11.6 KB, 19 views)
Reply With Quote