Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

VB.net equivalent command to VB6 DAQmxSetCIPeriodTerm

Hi I have a PCI6220 and we can get the card to work with VB.6 we are counting pulses from a switch via an opticoupler using 2 wires one in PFI3 (Couter 1 Source) the other to the +5V on the card. We are now upgrading to vb.net 2008.

 

But when using VB.net we can not find an equivalent to the command,  DAQmxSetCIPeriodTerm(taskHandle, MyChannel, Signal_Source.Text)? Where  Signal_Source.Text= "/Dev1/PFI3"

 

We use this command to set the CTR1 SRC signal source to the default PFI3. However in VB.net for some strange reason without setting anything it defaults to PFI4 (CTR1 Gate) as the source?

 

Does anyone know the equivalent VB.net command for the VB6 DAQmxSetCIPeriodTerm?

 

Thanks

0 Kudos
Message 1 of 3
(6,614 Views)

Hi Antony,

 

I believe this post answers your question.  Let me know if it doesn't!

 

Regards,

Andrew

Applications Engineer | National Instruments

National Instruments
0 Kudos
Message 2 of 3
(6,604 Views)

Thanks Andrew, similar to the example you provided, VB.net does things slightly differently. Again thanks. myTaskPulsePeriod.CIChannels("My Channel").PeriodTerminal = "/Dev1/PFI3"

Kind Regards

Antony.

 

0 Kudos
Message 3 of 3
(6,568 Views)