LabVIEW +国家仪器硬件或???
我正在为我的公司购买新的数据采集系统以用于各种项目。首先,它的主要目的是监控多达 20 个热电偶并控制复合材料烤箱的温度。不过,我还计划用它来监控加速度计、应变仪,并充当信号发生器。
我可能不是唯一一个使用它的人,但我拥有丰富的 Atmel 微控制器 (C) 编程经验。我以前使用过 LabVIEW,但大约是 5 年前。 LabVIEW 会很好,因为它对我和我的同事来说都很容易上手。另一方面,它很贵。现在我有一个 NI CompactDAQ 系统,配有 2 个电压卡和一个热电偶卡 + LabVIEW,价格为 5779 美元!
我将尝试以更少的价格+ LabVIEW 来使用不同的 NI 硬件获得相同的 I/O 功能,看看是否能以更少的价格获得它。我想看看除了LabVIEW之外是否有人对我有任何建议。
提前致谢!
I'm in the processes of buying a new data acquisition system for my company to use for various projects. At first, it's primary purpose will be to monitor up to 20 thermocouples and control the temperature of a composites oven. However, I also plan on using it to monitor accelerometers, strain gauges, and to act as a signal generator.
I probably won't be the only one to use it, but I have a good bit of programming experience with Atmel microcontrollers (C). I've used LabVIEW before, but ~5 years ago. LabVIEW would be good because it is easy to pick up on for both me and my coworkers. On the flip side, it's expensive. Right now I have a NI CompactDAQ system with 2 voltage and one thermocouple cards + LabVIEW speced out and it's going to cost $5779!
I'm going to try to get the same I/O capabilities with different NI hardware for less $ + LabVIEW to see if I can get it for less $. I'd like to see if anyone has any suggestions other than LabVIEW for me.
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
LabVIEW 是一个出色的可视化编程环境。就我们是否想要拖放和可视化我们的系统而言。 NI 硬件还附带 NIDAQmx 库,可以通过我们的代码进行访问。对于您来说,一个可行的解决方案可能是将库导入到另一种编程语言中,并为所有活动编写代码,否则您将使用 LabVIEW 执行这些活动。尽管代码优化等其他开销是用户的责任,但您可以通过在 DAQ 过程中的适当时刻引入您自己的改进来自由调整正常的方法流程。
LabVIEW is a great visual programming environment. In terms if we want to drag,drop and visualize our system. NI Hardware also comes with the NIDAQmx Library which can be accessed through our code. Probably a feasible solution for you would be to import the libraries into another programming language and write code for all the activities which otherwise you were going to perform using LabVIEW. Though other overheads like code optimization would be the users responsibility, you are free to tweak the normal method flow, by introducing your own improvements at suitable junctures in the DAQ process.
你看过MATLAB吗?他们有一个名为数据采集的工具箱。 CompactDAQ 是受支持的硬件。
Have you looked at MATLAB. They have a toolbox called Data Acquisition. compactDAQ is a supported hardware.
对于过程监控系统来说,几千美元并不是很多钱。如果您进行成本/效益分析,如果系统的范围正确并且它完成了预期的工作,您将很快收回开发成本。
另一个值得考虑的工具是带有 VB .NET 的 National Instruments 测量工作室。这样,如果您愿意,您仍然可以使用 NI 硬件,并且仍然可以快速构建漂亮的 GUI。
或者,正如其他人所说,获得基于工业串行的仪器并使用 LabVIEW、VB .NET、C# 或任何您喜欢的方式与它们进行通信是完全可行的。
如果您使用串行仪器,另一个可能有用的硬件是串行终端 (示例)。这些允许您将任意数量的设备连接到您的网络。然后,您的计算机可以像使用物理 COM 端口一样使用它们。
A few thousand dollars is not a lot of money for process monitoring and control systems. If you do a cost/benefit analysis, you will very quickly recover your development costs if the scope of the system is right and if it does the job it is intended to do.
Another tool to consider is National Instruments measurement studio with VB .NET. This way you can still use the NI hardware if you want and can still build nice gui's quickly.
Alternatively, as others have said, it is perfectly viable to get industrial serial based instruments and talk to them with LabVIEW, VB .NET, c# or whatever you like.
If you go down the route of serial instruments, another piece of hardware that might be useful is a serial terminal (example). These allow you to connect arbitrary numbers of devices to your network. You computers can then use them as though they were physical COM ports.
我对 LabView 的东西有一些经验,如果你能负担得起,那就太棒了(并且对许多不同的应用程序很有用)。
然而,如果你的应用程序很简单,你实际上可能可以用一两个 arduino 来组装一些东西,它是 OSS,并且有一些很好的廉价硬件板。
LabView 在实时应用程序或 RAD 中确实发挥了作用(因为 GUI 开发非常简单),因此,如果您所做的只是运行几个热电堆,我会找到更便宜的东西。
I've got a bit of experience with LabView stuff, and if you can afford it, it's awesome (and useful for a lot of different applications).
However, if your applications are simple you might actually be able to hack together something with one or two arduino's here, it's OSS, and has some good cheap hardware boards.
LabView really comes into its own with real time applications or RAD (because GUI dev is super easy), so if all you're doing is running a couple of thermopiles I'd find something cheaper.
LabWindows CVI 是 NI 的 C IDE,与其仪器库和驱动程序具有良好的集成。如果您愿意编写 C 代码,也许您可以使用 LabWindows CVI 的基本版本,而不必购买具有您所需功能的高端 LabView 版本。 LabWindows CVI 和 LabView 基本版本的价格相同,因此
这可能并不是什么优势。
LabWindows CVI is NI's C IDE, with good integration with their instrument libraries and drivers. If you're willing to write C code, maybe you could get by with the base version of LabWindows CVI, versus having to buy a higher-end LabView version that has the functionality you need. LabWindows CVI and LabView are priced identically for the base versions, so
that may not be much of an advantage.
考虑到您计划进行的测量类型的范围以及您希望同事能够使用它的事实,我建议 LabVIEW 是一个不错的选择 - 它将支持您想做的一切,并让您可以轻松地建立一个像样的 GUI在它上面。假设您使用的是 Windows,那么基本包应该足够了,如果您想构建独立的应用程序,无论是部署在其他 PC 上还是为了让您的同事尽可能简单地进行特定设置,您可以购买应用程序生成器稍后再分别。
至于 DAQ 硬件,您当然可以省钱 - 例如,MeasurementComputing 有一个低成本的 8 通道 USB 热电偶输入设备 - 但这可能会花费您的设置时间,或者对于不同测试的硬件配置的重复更改来说不太稳健。
Given the range of measurement types you plan to make and the fact that you want colleagues to be able to use this, I would suggest LabVIEW is a good choice - it will support everything you want to do and make it straightforward to put a decent GUI on it. Assuming you're on Windows then the base package should be adequate and if you want to build stand-alone applications, either to deploy on other PCs or to make a particular setup as simple as possible for your colleagues, you can buy the application builder separately later.
As for the DAQ hardware, you can certainly save money - e.g. Measurement Computing have a low cost 8-channel USB thermocouple input device - but that may cost you in setup time or be less robust to repeated changes in your hardware configuration for different tests.
关于什么可以使用、什么不能使用 LabView,以及您需要做什么和不需要使用它构建一个像样的系统,存在很多误解。
首先,正如其他人所说,测试和测量非常昂贵。无论您最终做什么,您描述的系统都将花费数千美元来构建。
其次,您不需要将 NI 硬件与 LabView 一起使用。对于热电偶,最好的选择是研究多通道或多个单通道热电偶装置 - 从热电偶读取数据并输出到 RS-232 等装置。OMEGABUS 数字变送器就是一个例子,但也存在许多其他装置。
这样,您只需要一张带有大量 RS-232 端口的分线卡,您就可以根据需要扩展您的系统。您仍然可以使用labview通过RS-232采集数据,然后显示、记录、处理等,随您喜欢。
例如,第三方信号发生器也可以工作。您可以以相当便宜的价格购买好的产品(带有 GPIB 连接),并且带有 GPIB 板也可以将其集成到 LabView 中。当然,如果您想要函数发生器之类的东西(占空比脉冲、标准正弦/三角/斜坡函数等)。如果您谈论的是任意信号生成,那么这仍然是一件相当昂贵的事情(如果 5000 美元是我们“昂贵”的目标)。
这也取决于您需要信号生成的用途 - 如果您正在考虑控制信号,那么可能会有更便宜、更强大的选项可用。例如,对于温度控制,单独的硬件 PID 控制器可能是最好的选择。这也可以解决热电偶问题,因为 PID 控制器通常也接受热电偶输入。通过这种方式,您只需要一个连接外部 PID 控制器的接口(例如 RS-232),并且可以在 LabView 中完全访问温度读数,并能够在一台设备中控制设定值和 PID 参数。
也许,如果您不仅可以详细说明目前计划的系统组件,还可以详细说明最终的系统功能,那么可能会更容易提出替代方案 - 不仅仅是替代硬件,而是完全替代的系统设计。
编辑:
看看欧米茄 CNi8C22-C24 和 CNiS8C24-C24 装置 ->这些是温度和应变 DIN PID 单元,将从热电偶和应变计获取输入,将输入处理为正确的测量结果,并通过 RS-232 与 LabView(或其他任何设备)通信。
There's a lot of misconception about what will and will not work with LabView and what you do and do not need to build a decent system with it.
First off, as others have said, test and measurement is expensive. Regardless of what you end up doing, the system you describe IS going to cost thousands to build.
Second, you don't NEED to use NI hardware with LabView. For thermocouples your best bet is to look into multichannel or multiple single-channel thermocouple units - something that reads from a thermocouple and outputs to something like RS-232, etc. The OMEGABUS Digital Transmitters are an example, but many others exist.
In this way, you need only a breakout card with lots of RS-232 ports and you can grow your system as it needs it. You can still use labview to acquire the data via RS-232 and then display, log, process, etc, it however you like.
Third party signal generators would also work, for example. You can pick up good ones (with GPIB connection) reasonably cheaply and with a GPIB board can integrate it into LabView as well. This if you want something like a function generator, of course (duty cycled pulses, standard sine/triangle/ramp functions, etc). If you're talking about arbitrary signal generation then this remains a reasonably expensive thing to do (if $5000 is our goalpost for "expensive").
This also hinges on what you're needing the signal generation for - if you're thinking for control signals then, again, there may be cheaper and more robust opitons available. For temperature control, for example, separate hardware PID controllers are probably the best bet. This also takes care of your thermocouple problem since PID controllers will typically accept thermocouple inputs as well. In this way you only need one interface (RS-232, for example) to the external PID controller and you have total access in LabView to temperature readings as well as the ability to control setpoints and PID parameters in one unit.
Perhaps if you could elaborate on not just the system components as you've planned them at present, but the ultimaty system functionality, it may be easier to suggest alternatives - not simply alternative hardware, but alternative system design altogether.
edit :
Have a look at Omega CNi8C22-C24 and CNiS8C24-C24 units -> these are temperature and strain DIN PID units which will take inputs from your thermocouples and strain gauges, process the inputs into proper measurements, and communicate with LabView (or anything else) via RS-232.
这不一定是软件答案,但如果您想要低成本数据采集,您可能需要查看 labjack。它基本上是一个微控制器和USB接口封装在一个漂亮的盒子里(就像一个arduino(Atmel AVR + USB串行转换器),但封闭源代码),有很多用于各种语言的驱动程序和函数,包括labview。
读取热电偶可能很困难,因为微伏非常重要,因此您需要高分辨率 A/D 或输入放大器。我认为 NI 可能会出售用于热电偶读数的专用数字化仪,但您还是要付费。
就软件答案而言,labview几乎可以与您选择的任何硬件很好地配合使用——例如,我基于arduino构建了自己的温度控制器(带有AD7780) 使用串行命令编写了一个小接口,然后使用 Labview 与其进行对话。但是,如果您愿意为保证开箱即用的解决方案支付额外费用,那么使用 Labview 和 NI 部件就不会出错。
This isn't necessarily a software answer, but if you want low cost data aquisition, you might want to look at the labjack. It's basically a microcontroller & usb interface wrapped in a nice box (like an arduino (Atmel AVR + USB-Serial converter) but closed source) with a lot of drivers and functions for various languages, including labview.
Reading a thermocouple can be tough because microvolts are significant, so you either need a high resolution A/D or an amplifier on the input. I think NI may sell a specialized digitizer for thermocouple readings, but again you'll pay.
As far as the software answer, labview will work nicely with almost any hardware you choose -- e.g. I built my own temperature controller based on an arduino (with an AD7780) wrote a little interface using serial commands and then talked with it using labview. But if you're willing to pay a premium for a guaranteed to work out of the box solution, you can't go wrong with labview and an NI part.
欢迎您来测试、测量。对于预制的东西来说相当昂贵,但你可以用金钱换取时间。
您可以查看稍微更便宜的Agilent 34970A(及相关卡)。它是不同类型传感的强大主力,如果我没记错的话,它附带了一些基本软件。
对于简单的温度控制,您可以考虑使用 PID 控制器(Watlow 或 Omega 用于是品牌,但我已经有几年没有看过它们了)。
您还可以考虑低成本 USB NI 的解决方案。通道数较少,但相当便宜。不过,他们仍然需要某种类型的软件。
还有相当多的优秀小公司(例如 Hytek Automation)生产某些类型的测量和控制设备或子组件,但是YMMV。
Welcome to test and measurement. It's pretty expensive for pre-built stuff, but you trade money for time.
You might check out the somewhat less expensive Agilent 34970A (and associated cards). It's a great workhorse for different kinds of sensing, and, if I recall correctly, it comes with some basic software.
For simple temperature control, you might consider a PID controller (Watlow or Omega used to be the brands, but it's been a few years since I've looked at them).
You also might look into the low-cost usb solutions from NI. The channel count is lower, but they're fairly inexpensive. They do still require software of some type, though.
There are also a fair number of good smaller companies (like Hytek Automation) that produce some types of measurement and control devices or sub-assemblies, but YMMV.