protected override void InitChannelList() { int Slot = 0; m_CardDef842_0 = new CardDef842(Slot); ProjectCards.AddCard(Slot++, CardDef842_0); m_CardDef430_1 = new CardDef430(Slot); ProjectCards.AddCard(Slot++, CardDef430_1); m_CardDef430_2 = new CardDef430(Slot); ProjectCards.AddCard(Slot++, CardDef430_2); m_CardDef530_1 = new CardDef530(Slot); ProjectCards.AddCard(Slot++, CardDef530_1); DOChannels.Add("PCReady", new DOChannelDef("PCReady", "A01", m_CardDef530_1, 0)); DOChannels.Add("Pass", new DOChannelDef("Pass", "A02", m_CardDef530_1, 1)); DOChannels.Add("Fail", new DOChannelDef("Fail", "A03", m_CardDef530_1, 2)); DOChannels.Add("SledgeToWP", new DOChannelDef("SledgeToWP", "A04", m_CardDef530_1, 3)); DOChannels.Add("IndexToWP", new DOChannelDef("IndexToWP", "A05", m_CardDef530_1, 4)); DOChannels.Add("CloseGripper", new DOChannelDef("CloseGripper", "A06", m_CardDef530_1, 5)); DIChannels.Add("MainPressureReady", new DIChannelDef("MainPressureReady", "E01", m_CardDef430_1, 0)); DIChannels.Add("Start", new DIChannelDef("Start", "E02", m_CardDef430_1, 1)); DIChannels.Add("Stop", new DIChannelDef("Stop", "E03", m_CardDef430_1, 2)); DIChannels.Add("SledgeInHP", new DIChannelDef("SledgeInHP", "E04", m_CardDef430_1, 3)); DIChannels.Add("SledgeInWP", new DIChannelDef("SledgeInWP", "E05", m_CardDef430_1, 4)); DIChannels.Add("IndexInHP", new DIChannelDef("IndexInHP", "E06", m_CardDef430_1, 5)); DIChannels.Add("IndexInWP", new DIChannelDef("IndexInWP", "E07", m_CardDef430_1, 6)); DIChannels.Add("GripperInHP", new DIChannelDef("GripperInHP", "E01", m_CardDef430_2, 0)); DIChannels.Add("GripperInWP", new DIChannelDef("GripperInWP", "E02", m_CardDef430_2, 1)); DIChannels.Add("PartInserted", new DIChannelDef("PartInserted", "E03", m_CardDef430_2, 2)); }
protected override void InitChannelList() { CardDef841 Card481 = new CardDef841(0); CardDef530 Card530 = new CardDef530(1); CardDef430 Card430 = new CardDef430(2); ProjectCards.AddCard(0, Card481); ProjectCards.AddCard(1, Card530); ProjectCards.AddCard(2, Card430); //create channel collection for easier management DOChannels.Add("PCReady", new DOChannelDef("PCReady", "", Card530, 0)); DOChannels.Add("Pass", new DOChannelDef("Pass", "", Card530, 1)); DOChannels.Add("Fail", new DOChannelDef("Fail", "", Card530, 2)); DOChannels.Add("SledgeToWP", new DOChannelDef("SledgeToWP", "", Card530, 3)); DOChannels.Add("IndexToWP", new DOChannelDef("IndexToWP", "", Card530, 4)); DIChannels.Add("MainPressureReady", new DIChannelDef("MainPressureReady", "", Card430, 0)); DIChannels.Add("Start", new DIChannelDef("Start", "", Card430, 1)); DIChannels.Add("Stop", new DIChannelDef("Stop", "", Card430, 2)); DIChannels.Add("SledgeInHP", new DIChannelDef("SledgeInHP", "", Card430, 3)); DIChannels.Add("SledgeInWP", new DIChannelDef("SledgeInWP", "", Card430, 4)); DIChannels.Add("IndexInHP", new DIChannelDef("IndexInHP", "", Card430, 5)); DIChannels.Add("IndexInWP", new DIChannelDef("IndexInWP", "", Card430, 6)); }
public virtual void Configure() { // This code was generated by Measurement Studio. Changes to this // file may cause incorrect behavior and will be lost if the code // is regenerated. DOChannel ch = DOChannels.CreateChannel("Dev1/port0", "DigitalOut", ChannelLineGrouping.OneChannelForAllLines); }
public DOTask(string port, string channelName) : base() { _ = DOChannels.CreateChannel( port, channelName, ChannelLineGrouping.OneChannelForAllLines ); }
public virtual void Configure() { // This code was generated by Measurement Studio. Changes to this // file may cause incorrect behavior and will be lost if the code // is regenerated. DOChannel ch = DOChannels.CreateChannel("NI-USB-6501/port1/line6", "DigitalOut", ChannelLineGrouping.OneChannelForEachLine); DOChannels["DigitalOut"].OutputDriveType = DOOutputDriveType.OpenCollector; }