Agostino Posted January 30, 2024 Posted January 30, 2024 Where can I find some c++ example for visual studio 2022 for DT9837A?
0 DAQman Posted January 31, 2024 Posted January 31, 2024 Please install the required software from the Omni CD. Then look for the C examples in C:\Program Files (x86)\Data Translation\Win32\SDK\Examples\.
0 Agostino Posted February 1, 2024 Author Posted February 1, 2024 16 hours ago, JRys said: Please install the required software from the Omni CD. Then look for the C examples in C:\Program Files (x86)\Data Translation\Win32\SDK\Examples\. Thanks!
0 Agostino Posted February 2, 2024 Author Posted February 2, 2024 (edited) On 1/31/2024 at 9:18 PM, JRys said: Please install the required software from the Omni CD. Then look for the C examples in C:\Program Files (x86)\Data Translation\Win32\SDK\Examples\. I have campiled examples and I can show a trigger signal. But I can't find any example for Tachometer input. Tachometer example is inside the SDK? Edited February 2, 2024 by Agostino
0 DAQman Posted February 2, 2024 Posted February 2, 2024 The DT9837A tach input channel is input channel 4, whereas the four IEPE channels are 1 -3. I've modified the ContAdc example to read channel = 4. It bypasses the code that scales the measurement to volts and instead scales it to frequency. This is accomplished by taking the inverse of the reading multiplied by 83ns - 1 / (tachValue * 0.000000083). I have attached the code file for you to review. CONTADC.C
0 Agostino Posted February 5, 2024 Author Posted February 5, 2024 On 2/2/2024 at 7:05 PM, JRys said: The DT9837A tach input channel is input channel 4, whereas the four IEPE channels are 1 -3. I've modified the ContAdc example to read channel = 4. It bypasses the code that scales the measurement to volts and instead scales it to frequency. This is accomplished by taking the inverse of the reading multiplied by 83ns - 1 / (tachValue * 0.000000083). I have attached the code file for you to review. CONTADC.C 11.7 kB · 2 downloads Thank you! Just a question. I had put a condition on freq value otherwise the "visible" value is 0.006 Hz. Why the get buffer returns so many time this value?
0 DAQman Posted February 5, 2024 Posted February 5, 2024 The ContADC example sets the sample rate to 1000 samples per second - One sample per millisecond. Your signal is only 29.5 Hz or 0.0339 seconds. Therefore, there will be (0.0339 / 0.001) 33-34 repeated values for every cycle of your signal.
Question
Agostino
Where can I find some c++ example for visual studio 2022 for DT9837A?
6 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now