Preview and store multiple channels using a modified version of the live data acquisition example
조회 수: 1 (최근 30일)
이전 댓글 표시
The example is here
I have changed a couple things in the code but will attach what I have currently done and outline the main changes I have made.
I switched the 1 input to 8 to match the type of daq board I am currently using changed the channel drop down callback to
addinput(d, deviceID, 0:7, measurementType);
I also changed the channel drop down value change callback to a UITableSelectionChange and just coped the
updateChannelMeasurementComponents(app)
This felt a little too easy and I am still uncertain of how well it is working because I am using a simulated NI Daq box (6001) and it is just hocering between -10 and +10 Volts
I have attached the currrent version of the example that I am working on, I have also changed the data variable to a TimeTable through the rread function but it stopped displaying the data in the preview and would not log at all. I am also trying to have a way to calibrate each channel using a different y=mx +b slope and intercept. The slope and intercept are currently private properties so a switch can be added to change the values on the y-axis from voltage to calibrated.
Thanks
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Counter and Timer Input and Output에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!