从数字化版本恢复原始模拟信号(时变电压)?

发布于 2024-11-02 00:44:34 字数 297 浏览 2 评论 0原文

我一直在研究如何将数字数据转换为模拟数据。

因此,我有一个两列 ASCII 数据文件(x:时间,y=电压幅度),我想将其转换为模拟信号(电压随时间变化)。有数模转换器,但好的价格昂贵。应该有一种更简单的方法来实现这一目标。

最终我想做的是重建原始的时变电压,该电压每纳秒采样一次并记录为 ASCII 数据文件。

我想我可以将数据输入笔记本电脑的声卡并重新生成时变电压,然后我可以通过音频插孔将其馈送到分析仪中。这听起来可行吗?

我并不是要恢复“形状”,而是要恢复信号(电压)本身。

I have been looking into how to convert my digital data into analog.

So, I have a two column ASCII data file (x: time, y=voltage amplitude) which I would like to convert into an analog signal (varying Voltage with time). There are Digital to Analog converters, but the good ones are quite expensive. There should be a more trivial way to achieve this.

Ultimately what I'd like to do is to reconstruct the original time variant voltage which was sampled every nano-second and recorded as an ASCII data file.

I thought I may feed the data into my laptop's sound card and re-generate the time variant voltage which I can then feed into the analyzer via the audio jack. Does this sound feasible?

I am not looking into recovering the "shape" but the signal (voltage) itself.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

牛↙奶布丁 2024-11-09 00:44:34

对几个帐户感到困惑。

您想要转换为模拟信号(电压随时间变化)但是您已经拥有的离散信号确实是“随时间变化的电压”,只是两个值(电压)并且时间是离散的。这就是计算机(通常是数字设备)的工作方式。

仅当信号进入某些非离散介质(例如经典音频线+插头)时,我们才有模拟信号。准确地说,计算机的声卡的核心是“数模转换器”。

因此,看来您并不是在尝试对信号进行一些数字处理(插值或其他),您不是在处理计算机编程,而是在处理硬件问题:将信号传输到电缆。如果是这样,SO 不是合适的地方。您可以尝试 https:// electronics.stackexchange.com/ ...

但是,在另一件事上,您说您的数据是“每纳秒采样一次”。这意味着每秒 10 亿个样本,或者样本频率为 1Ghz。这是一个高得离谱的频率,至少在音频领域是这样。您无法将其输出到声卡,声卡将受到音频范围的限制(大约 48Khz = 每秒 48000 个样本)。

Puzzled on several accounts.

You want to convert into an analog signal (varying Voltage with time) But the what you already have, the discrete signal, is indeed a "varying voltage with time", only that both the values (voltages) and times are discrete. That's the way computers (digital equipment, in general) work.

Only when the signal goes to some non-discrete medium (eg. a classical audio cable+plug) we have an analog signal. Precisely, the sound card of your computer is at its core a "Digital to Analog converter".

So, it appears you are not trying to do some digital processing of your signal (interpolation, or whatever), you are not dealing with computer programming, but with a hardware thing: getting the signal to a cable. If so, SO is not the proper place. YOu might try https://electronics.stackexchange.com/ ...

But, on another thing, you say that your data was "sampled every nano-second". That means 1 billion samples per second, or a sample freq of 1Ghz. That's a ridiculously high frequency, at least in the audio world. You cant output that to a sound card, which would be limited to the audio range (about 48Khz = 48000 samples per second).

不弃不离 2024-11-09 00:44:34

您只想为数据拟合一条曲线。假设采样率足够,三阶多项式就足够了。在每个点 N,您可以将三次多项式拟合到点 N-1、N、N+1 和 N+2,然后就可以得到这些点之间的数据值的解析表达式。换一个,然后重复。如果需要,您可以对多条连续曲线的值进行平均。

You want to just fit a curve to the data. Assuming the sampling rate is sufficient, a third-order polynomial would be plenty. At each point N, you fit a cubic polynomial to points N-1, N, N+1, and N+2, and then you have an analytic expression for the data values between those points. Shift over one, and repeat. You can average the values for multiple successive curves, if you want.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文