简体   繁体   English

如何在 LabWindows CVI 中创建连续电压与时间图

[英]How To Create a Continuous Voltage vs Time Graph in LabWindows CVI

I am confused as to how I go about creating code in CVI to create a graph in CVI with voltage (y-axis) vs time (x-axis) that I can use to track voltage from my experiment in real time.我对如何在 CVI 中创建代码以在 CVI 中创建带有电压(y 轴)与时间(x 轴)的图形感到困惑,我可以用它来实时跟踪我的实验中的电压。 After doing some research I think I would need to use the DAQmx feature.在做了一些研究之后,我认为我需要使用 DAQmx 功能。 Any help and tutorials would be greatly appreciated.任何帮助和教程将不胜感激。

DAQmx is for acquisition from hardware. DAQmx 用于从硬件采集。 If your data is already in 2 arrays X and Y, use XYGraphPopup for plotting in a popup.如果您的数据已经在 2 个数组 X 和 Y 中,请使用 XYGraphPopup 在弹出窗口中绘图。 More generally you'd want a user interface with a graph and use PlotXY.更一般地说,您需要一个带有图形的用户界面并使用 PlotXY。

But as your question relates to time, you probably want to use a strip chart and just plot the voltages as they come along.但是,由于您的问题与时间有关,您可能想要使用条形图并在电压出现时绘制它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM