From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CDAQ Write/Read issue: 9263 and 9205

Greetings,

 

I'm current having a hard time with what I believe is timing/synchronization/sampling errors with a read write process. This is my first exposure to LabView

What im trying to do:

  • Take a sinusoid that doubles in frequency but has a set amount of periods and output it on the 9263.
  • Read the sinusoid into the 9205
  • Wrtie the amplitude and frequency of that signal to an array

What I think is working

  • The write process seems to be working. 

What's going wrong

  • The read values and plot don't make sense. It's reading only segments of certain sinusoids and doesn't seem to be timed correctly to the loop iterations.

 

Write now both the analog input and analog output are on the same clock and operating at the same rate (I believe). The samples generated from the write block is wired to the samples to read of the read block. I've spent countless hours trying solutions but I simply don't have enough knowledge of LabView to understand what's going wrong. The final desired operation is for the output from the 9263 to power a shaker device and a force transducer will supply the input to the 9205 module.  

 

Please try to understand that this is my first exposure to LabView. Excuse my arrogance/ignorance if any is present. 

0 Kudos
Message 1 of 2
(2,393 Views)

Hi jaybell,

 

The document below describes how to synchronize two devices with NI-DAQmx:

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

 

Take a look at the examples shown here, I think these will be helpful in what you are trying to accomplish. 

Julia P.
0 Kudos
Message 2 of 2
(2,362 Views)