LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronization of signal

Hi,

Is there any way to synchronize signals that are collected in HOST PC and NI CDAQ? I am collecting encoder signal in the Host PC from the ACR-9000 controller and at the same time, I am collecting the load cell data by using NI controller cDAQ-9137 (C series NI-9237). Could you please guide me or provide me with any references? I appreciate your support. Thank you.

0 Kudos
Message 1 of 16
(2,720 Views)

Depends on your definition of synchronization - seconds, milli seconds or microseconds.

 

Software level synchronization is limited by your OS and time taken for you to read data. Hardware-level synchronization gives your best accuracy and precision but your hardware needs to support that.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 16
(2,684 Views)

Hi Santhosh,

Thank you very much. My loop time is 4ms. The operating system for Host PC is Wndows 10.

0 Kudos
Message 3 of 16
(2,681 Views)

4ms may be achieved by OS timing but NOT GUARANTEED. Find out if both your hardware can have some way of external electrical synchronization.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 4 of 16
(2,665 Views)

Hi,

I do not have any idea about that. Could you please give me some idea about that. Do you know how can I do that in the current hardware configuration?

Thank you.

0 Kudos
Message 5 of 16
(2,659 Views)

Hi Moni,

 


@Moni98ce wrote:

Is there any way to synchronize signals that are collected in HOST PC and NI CDAQ? I am collecting encoder signal in the Host PC from the ACR-9000 controller and at the same time, I am collecting the load cell data by using NI controller cDAQ-9137 (C series NI-9237).


How do you read data from the ACR9000 controller? Which communication bus is used? RS232, Ethernet, USB, CANopen? Does that controller allow external sync/trigger signals?

 

The NI9237 uses its internal timebase and is able to export its timebase or to take an external timebase. Importing/exporting timebases has to be routed through the cDAQ9137 chassis. That chassis also maintains its own timebase clock. To export that timebase/clock signal to allow triggering external device you might need to use an additional DIO module (I'm not an expert in cDAQ devices).

 

So before we can answer all your questions you need to read some manuals on your own and you need to provide much more information on your specific setup!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 16
(2,646 Views)

Hi GerdW,

Thank you very much for your reply. I am using  Ethernet communication for the ACR controller. I am attaching the picture of the VI that I am using in the Host PC to read the data from the ACR controller. "Does that controller allow external sync/trigger signals?" I am not sure about it. I am trying to learn this. 

Thank you.

0 Kudos
Message 7 of 16
(2,622 Views)

Hi Good people,

I developed the VI (attached here) by following this link (Figure 6 and 7 for 2 DSA modules),

https://www.ni.com/en-ca/support/documentation/supplemental/21/signal-based-synchronization-of-analo....

I used a 2 Hz input signal to check my code and perform the FFT of the measured force (from without mean and filter case) and observing the result as this figure. I do not know what wrongs with my program. Could anyone check my program and guide me? 

Moni98ce_0-1626891961122.png

Thank you in advance.

0 Kudos
Message 8 of 16
(2,655 Views)

The DSA device must provide the timebase source for synchronization. What two modules are you using? If these modules can sample at the same rate, check to see if your channels can be added to the same analog input task and try synchronization by channel expansion. Let us know how that goes!

Doug
Enthusiast for LabVIEW, DAQmx, and Sound and Vibration
0 Kudos
Message 9 of 16
(2,614 Views)

Hi Doug, 

Thank you very much for your reply. I am using NI 9234 and 9237 modules and  NI cDAQ 9137 chassis. 

0 Kudos
Message 10 of 16
(2,557 Views)