12-05-2010 03:52 PM
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
12-06-2010 03:51 PM
Hi Antony,
I believe this post answers your question. Let me know if it doesn't!
Regards,
Andrew
Applications Engineer | National Instruments
12-12-2010 02:44 PM
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.