想要在远程计算机上对PXI机箱的通道进行配置,配置的内容包括通道的选定、通道的采集信号类型(电压,电流)、量程上下限、采样率这些参数,
另外,在一个测试中,有多个测试实验项,希望在上位机中,把每个实验项对应的硬件通道配置方案以配置文件的形式保存起来,同时将这个配置文
件传递给PXI机箱,在实验过程中,每个实验项开始前,先读取配置文件,并将文件中的配置方案读出,初始化完成NI卡件的硬件通道配置。
我想问的是,这个配置文件采用什么样的形式保存,能够方便上下位机的传递,还有就是这些配置信息中,要完成硬件通道列举信息的配置,每个通道
的信息保存以什么样的数据结构进行保存比较方便数据解析。
不知道我这样问,大家能不能够清楚我需要的功能,请专家帮忙解答啊
First, basicly the file transfer efficiency between the host PC and the PXI has nothing to do with the format of the configuration file.
So, you can just think about how to transfer the file. I recommand you could use the host PC acting as a FTP server, everytime the PXI run the program, it can first go to the FTP to download the configuration file.
About the detail of the configuratino file. you can refer to the *.ini files, that is exactly what you want for a configuration file.