Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

cwpulse

I am using Borland Delphi 6.0 and the Componentworks ActiveX components. After some problems I was finally able to install the ActiveX components. Analog input and output (after more problems) are working (more or less) now. But when ever I try to use the CWPulse-component and call the "Configure" method I get the following error message: "Configuring pulse mode, the timebase is invalid." That even happens with the supplied example.
Reading your help files I tried to set all properties by hand.

But still the same error message. I guess I am only missing something small here, but I can't find it.

Any help would be highly appreciated.

Best regards
Michael Russold
0 Kudos
Message 1 of 3
(2,639 Views)
Well, I'll just tell you how I have mine set. I'm using VB, but I don't think it makes a difference. On the properties form, General tab, I have Counter = 1, Pulse Type = Continuous Pulse Train, Polarity = High Pulse. On the Pulse Settings tab I have Clock Mode = Use Frequency Settings, Frequency(Hz) = 1000, and Duty Cycle = 0.5. On the Gate tab I have the Gate Mode = ungated.

Then, all my code does is:

Private Sub Command1_Click()
'Configure the hardware
CWPulse1.Configure

'Start the actual pulse train
CWPulse1.Start

End Sub

Maybe you are using timbebase settings for the clock mode and are trying to use an invalid input for the timbebase? This timebase also depends on your hardware. Hopefully, this will work though.

--Russell
0 Kudos
Message 2 of 3
(2,639 Views)
In the meantime I found a solution myself. Most interestingly it works if one uses "Counter 0" in the properties setup. All the other "Counters (1,2)" produce the error message, but not "Counter 0".
Besides that, there obviously is a NI document on that as well. I have not checked whether it works or not:

<>

Thanks for your help
Michael Russold
0 Kudos
Message 3 of 3
(2,639 Views)