Can I synchronize the counters on two different computers in the C API?

I installed the M-series cards (6254) in several computers. I would like to synchronize the counters for each card.  The best way that I came with to do this was to have the counter on each counter entries read a common external clock signal running at 10 KHz I have would then feed a second signal to each card and trigger the task that runs each counter starts when the second line goes high.

Following the examples provided with the C API, it was easy to get each card KHz signal and then to match the beginning of the counter that I tried to read

DAQmxCfgDigEdgeStartTrig (taskHandle, inputLineStr, DAQmx_Val_Rising);

However, this did not work and gave me the following error:

DAQmx error: the specified property is not supported by the device or is not applicable to the task.
Property: DAQmx_StartTrig_Type

Task name: task

State code:-200452
End of the program, press the Enter key to exit

I know it's very simple sync the cards within a computer using the RTSI interface, but it is not possible that my cards have to reside in different computers.

It is even possible to synchronize the counters on computers, and if yes how can I do it with the C API?

------------------

Here's what I've written so far:



#define DAQmxErrChk (functionCall) if (DAQmxFailed (error = (functionCall))) goto error; on the other

int main (void)
{
int error = 0;
TaskHandle taskHandle = 0;
uInt32 data = 0;
tank errBuff [2048] = {'\0'};

DAQmxErrChk (DAQmxCreateTask ("task", & taskHandle));
DAQmxErrChk (DAQmxCreateCICountEdgesChan(taskHandle,"/Dev1/ctr0","",DAQmx_Val_Rising,0,DAQmx_Val_CountUp));
DAQmxErrChk (DAQmxConnectTerms ("/ 10MhzRefClock/Dev1", "/ PFI8/Dev1", DAQmx_Val_DoNotInvertPolarity));
DAQmxErrChk (DAQmxCfgDigEdgeStartTrig(taskHandle,"/Dev1/PFI14",DAQmx_Val_Rising));

DAQmxErrChk (DAQmxStartTask (taskHandle));

printf ("without interruption of the poll. Press Ctrl + C to interrupt\n");
While {} (1)
DAQmxErrChk (DAQmxReadCounterScalarU32(taskHandle,10.0,&data,));
printf ("\rCount: %u", data);
fflush (stdout);
}
Error:
puts("");
If (DAQmxFailed (error))
DAQmxGetExtendedErrorInfo (errBuff, 2048);
If (taskHandle! = 0) {}
/*********************************************/
Stop DAQmx code
/*********************************************/
DAQmxStopTask (taskHandle);
DAQmxClearTask (taskHandle);
}
If (DAQmxFailed (error))
printf ("error DAQmx: %s\n",errBuff); ")
printf ("end of the program, press the Enter key to quit\n");
GetChar ();
return 0;
}

Hi neurostu,

Arms start triggers are disabled by default, so they do not have a default PFI line.

You will need to set some properties DAQmx to configure a trigger for start of arms. Try adding between DAQmxCreateCICountEdgesChan() and DAQmxStartTask():

DAQmxSetArmStartTrigType (taskHandle, DAQmx_Val_DigEdge);

DAQmxSetDigEdgeArmStartTrigSrc (taskHandle, "/ Dev1/PFI14" ');

DAQmxSetDigEdgeArmStartTrigEdge (taskHandle, DAQmx_Val_Rising);

You have the file "help NOR-DAQmx C reference"? It should contain descriptions of the trigger > more > arm Start properties.

Brad

Tags: NI Hardware

Similar Questions

Maybe you are looking for

  • Portege Z30-A-12N - touchpad info/Tech doc. required

    Hello everyone, I would like to get technical information as much as possible on (my) laptop Portege Z30-A-12N computer touchpad.I am a Linux developer and I would like to add the support of the ALPS touchpad at the core, however, it seemsquite diffi

  • What RAM modules are compatible with the Satellite A100-590?

    Hello I plan to upgrade the memory of my A100-590. At present, there are 2 x 512 Mo of RAM DDR2-533 Samsung inside. The motherboard supports PC2-4200 and PC2-5300. If I want to put 2 x 1024 MB DDR2-667. Now, my question is, RAM from other manufacture

  • Empty file in Windows Media Player

    Hello so, I'm having a problem with this file will not disappear in my Windows Media Player 11. It is empty, I can't do anything with it. I can't delete, play, rate it, edit the information - nothing. There are no negative effects because it is there

  • Stamina, my Xperia mode

    Hello I have a M4 Aqua. I have the endurance and my Experia (phone tracking) mode together. Because stamina mode disables network connections when the screen is off, My Experia mode will not work and the phone cannot be located if lost. Under the Sta

  • Help the customer to secure mobility; Untrusted Cert questions

    Hello I have an ASA5505 running on version 9.0 (2) and I'm trying to configure AnyConnect VPN access. When I use Secure Mobility Client and try to connect to the VPN, I get an alert saying: Security Warning: no reliable VPN server certificate!  AnyCo