Frequency issue in Labjack U6 output when interfaced with Matlab Simulation | LabJack
 

Frequency issue in Labjack U6 output when interfaced with Matlab Simulation

2 posts / 0 new
Last post
Deepa Francis
Deepa Francis's picture
Frequency issue in Labjack U6 output when interfaced with Matlab Simulation
While taking the pulses out from Labjack (digital_out function) which is interfaced with a MATLAB simulation, I experience problem with the frequency of the pulses. Eventhough pulses of  frequency 50 Hz is generated in MATLAB, the output of Labjack shows only 5 to 8 Hz only. What is the highest frequency the Labjack can out? Kindly suggest what I should do the get the exact frequency output pulse as that generated in MATLAB. What I am doing is, in Matlab, the pulses to control the inverter switches are generated. The generated pulses in Matlab have higher frequency(50 Hz and much above).  These pulses are taken out through Labjack through FIO pins of Labjack using Digital out function.
LabJack Support
labjack support's picture
First thing we need to know

First thing we need to know is how you are controlling the output.  See the Waveform Generation App Note for an overview:

https://labjack.com/support/app-notes/waveform-generation

I am guessing you are doing "Software Timing, Command-Response Updates"?  That is, you just have some sort of loop in Matlab and are calling eDO to output the state of the desired DO?

From Section 3.1 of the U6 User's Guide you can see that is usually takes roughly 1ms for each update:

https://labjack.com/support/datasheets/u6/operation/command-response