03-02-2016 08:33 AM
I am doing a program that consist on count the pulses of a TTL signal. The problem is that when i move the mouse over the elements of the Front Panel some undiserable and significant counts appear. I have no ideia why this happens. Do you have any sugestion?
Thanks in advance.
03-02-2016 08:45 AM
How are you counting the pulses? Can you show your code?
03-03-2016 09:58 AM
Hows your hardware setup? Where is your signal source coming from, and are you using shielded cables?
03-04-2016 04:13 AM
Shure i can show you the code, but it´s a bit confusing.
I start the task outside the loop with "DAQmx Create Channel (CI Count Edges).vi"
And start/stop de task with "DAQmx Start Task.vi"/"DAQmx Stop Task.vi"
Read the values with "DAQmx Read (Counter U32 1Chan 1 Samp).vi" on a case structure with a feedback node. The DAQ count the number of edges during a certain amount of time, like 10 ms, and then print the value.
03-04-2016 04:46 AM
Chantastic!,
What do you mean by hardware setup? It´s how i create the channel on NIMAX?
The signal comes from a Function Generator on TTL mode. And yes, the cables are shielded, they are normal coaxial cables.
03-04-2016 01:00 PM
Your code is really difficult to debug. Would it be possible for you to run a test using only example code for a counter? At the very least, can you save a new test copy of your code, and start removing functionality until you can narrow it down to a smaller portion of your code where you can recreate this issue?