08-06-2012 04:18 PM
In my world, if I wanted to sample for 10s at 10Hz (100S/ch), I would specify a rate of 10 and a sample count of 100. This operation would take 10s to return data. The task does not seem to behave this way. No matter what rate and number of samples I choose, I get spammed with data at 1 Hz or faster.
What am I doing wrong?
Solved! Go to Solution.
08-07-2012 04:20 PM
Hey Michael,
What kind of hardware are you using and would you mind posting an example of your code so that I may better assist you?
Regards,
Isaac S.
08-07-2012 04:24 PM
NI 9239 on a USB carrier or a PCI board. I have tried this in the aquire continuous voltage sample program as well.
For a = 0 To HSChannelCount - 1 With HSChannels(a) TriggeredAITask.AIChannels.CreateVoltageChannel(.Device & "/" & .Channel, "", AITerminalConfiguration.Differential, _ .Min, .Max, AIVoltageUnits.Volts) End With Next TriggeredAITask.Timing.ConfigureSampleClock("", HSSampleRate, _ SampleClockActiveEdge.Rising, SampleQuantityMode.ContinuousSamples, HSSampleCount) TriggeredAITask.Control(TaskAction.Verify) TriggeredAIReader = New AnalogMultiChannelReader(TriggeredAITask.Stream)
TriggeredAIReader.SynchronizeCallbacks = True
TriggeredAIReader.BeginReadMultiSample(HSSampleCount, TriggeredCallback, TriggeredAITask)
08-15-2012 11:02 PM
This problem was solved by doing a phone support request. It turns out that the minimum sample rate of the NI 9239 is 14xx S/s. I am not sure why there is a minimum sample rate, but now I must move on to the next issue discussed at this link: