Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0787617B2 - Rearrangement method of analog input data - Google Patents
[go: Go Back, main page]

JPH0787617B2 - Rearrangement method of analog input data - Google Patents

Rearrangement method of analog input data

Info

Publication number
JPH0787617B2
JPH0787617B2 JP7506387A JP7506387A JPH0787617B2 JP H0787617 B2 JPH0787617 B2 JP H0787617B2 JP 7506387 A JP7506387 A JP 7506387A JP 7506387 A JP7506387 A JP 7506387A JP H0787617 B2 JPH0787617 B2 JP H0787617B2
Authority
JP
Japan
Prior art keywords
measurement data
buffer
process adapter
sampling
order
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP7506387A
Other languages
Japanese (ja)
Other versions
JPS63240298A (en
Inventor
眞人 鈴木
Original Assignee
富士フアコム制御株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 富士フアコム制御株式会社 filed Critical 富士フアコム制御株式会社
Priority to JP7506387A priority Critical patent/JPH0787617B2/en
Publication of JPS63240298A publication Critical patent/JPS63240298A/en
Publication of JPH0787617B2 publication Critical patent/JPH0787617B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Testing Or Calibration Of Command Recording Devices (AREA)
  • Communication Control (AREA)
  • Selective Calling Equipment (AREA)

Description

【発明の詳細な説明】 〔概要〕 プロセス用アダプタにより計測データをデイジタル信号
に変換して受信する処理装置に、プロセス用アダプタが
所定の順序でデイジタル化した該計測データを格納する
サンプリングバッファ、サンプリングバッファに格納さ
れた計測データの格納順序の変更を指定する制御テーブ
ル、制御テーブルの指示に従い順序を変更してバッファ
に格納するチャンネル制御手段を設けた。
DETAILED DESCRIPTION OF THE INVENTION [Outline] A sampling buffer for storing measurement data digitized by a process adapter in a predetermined order in a processing device for converting measurement data into a digital signal by a process adapter and receiving the signal. A control table for designating a change in the storage order of the measurement data stored in the buffer, and a channel control means for changing the order according to the instruction of the control table and storing it in the buffer are provided.

〔産業上の利用分野〕 本発明はプロセス用アダプタを介してアナログ信号をデ
イジタル形プロセッサに入力する場合に於けるチャンネ
ル制御モードのアナログ入力データの並替え方式に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a rearrangement method of analog input data in a channel control mode when an analog signal is input to a digital processor via a process adapter.

〔従来の技術〕[Conventional technology]

第3図(a)は従来のアナログ信号の入力方式の一例を
示す図である。
FIG. 3A is a diagram showing an example of a conventional analog signal input method.

第3図(b)は従来のアナログ信号の入力方式の説明図
である。
FIG. 3B is an explanatory diagram of a conventional analog signal input method.

図中、1は処理装置、10はプロセッサ、11はメモリ、2
はプロセス用アダプタ、20はマルチプレクサ、21はA−
D変換器、31〜3nは夫々計測器、16はチャンネル部、17
1〜17nは夫々アプリケーションタスク、181〜18nは夫々
サンプリングサブルーチンである。尚以下全図を通じ同
一記号は同一対象物を表す。
In the figure, 1 is a processor, 10 is a processor, 11 is a memory, 2
Is a process adapter, 20 is a multiplexer, 21 is A-
D converter, 3 1 to 3 n are measuring instruments, 16 is a channel section, 17
1 to 17 n are application tasks, and 18 1 to 18 n are sampling subroutines. The same symbols represent the same objects throughout the drawings.

多数の計測器31〜3nはプロセス用アダプタ2を介して処
理装置1に接続される。
A large number of measuring instruments 3 1 to 3 n are connected to the processing device 1 via the process adapter 2.

計測器31〜3nにより採取された測定データはプロセス用
アダプタ2内に於いて、マルチプレクサ20により順次選
択され、次ぎにA−D変換器21によりデイジタル量に変
換された後、処理装置1に送られる。
The measurement data collected by the measuring instruments 3 1 to 3 n are sequentially selected by the multiplexer 20 in the process adapter 2 and then converted into a digital amount by the AD converter 21, and then the processing device 1 Sent to.

処理装置1がプロセス用アダプタ2を介して測定データ
を収集する場合、処理装置1のプロセッサ10の負担を軽
くするため、チャンネル制御モードにより測定データの
収集を行う。
When the processing device 1 collects the measurement data via the process adapter 2, the measurement data is collected in the channel control mode in order to reduce the load on the processor 10 of the processing device 1.

此のチャンネル制御モードはダイレクトメモリアクセス
DMAと同様な処理で、プロセッサ10が関与することな
く、チャンネル部16に設けられたダイレクトメモリアク
セス回路がプロセス用アダプタ2にアクセスし、得られ
た測定データをメモリ11にDMA転送して格納する。
This channel control mode is direct memory access
In a process similar to DMA, the direct memory access circuit provided in the channel unit 16 accesses the process adapter 2 without involving the processor 10, and the obtained measurement data is DMA-transferred and stored in the memory 11. .

此の様な計測システムを実際に動作させる場合、プロセ
ッサ10はアプリケーションタスク171の指示に従い動作
する。即ち、アプリケーションタスク171のサンプリン
グサブルーチン181がチャンネル制御モードで動作し
(チャンネル部16を駆動して)プロセス用アダプタ2に
アクセスし、プロセス用アダプタ2はマルチプレクサ20
を動作させて、各測定器31〜3nの測定データを採取し、
A−D変換器21によりデイジタル量に変換した後、メモ
リ11に転送する。
When actually operating such a measuring system, the processor 10 operates according to the instruction of the application task 17 1 . That is, the sampling subroutine 18 first application task 17 1 operates on channel control mode (by driving the channel section 16) to access the process adapter 2, the process for adapter 2 multiplexer 20
To operate, collect the measurement data of each measuring device 3 1 to 3 n ,
After being converted into a digital amount by the A / D converter 21, it is transferred to the memory 11.

此の時、マルチプレクサ20により各測定器31〜3nの測定
データを採取する順番は、第3図(b)に示す様に、一
番目は測定器31、二番目は測定器32、三番目は測定器
33、・・・n番目は測定器3nの順序をとるのが普通であ
る。
At this time, the multiplexer 20 collects the measurement data of each of the measuring instruments 3 1 to 3 n in the order as shown in FIG. 3B, the first measuring instrument 3 1 and the second measuring instrument 3 2 , The third is a measuring instrument
3 3, ··· n th is usually take the order of the measuring device 3 n.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

然しながら此の様な計測システムを実際に動作させる為
に、各種のアプリケーションタスク171〜17n、従って各
種のサンプリングサブルーチン181〜18nが作成される。
此の場合、使用される測定器は略同じであるが、プロセ
ス用アダプタ2のマルチプレクサ20の入力端子に接続さ
れる順番が異なると異なる順序で測定器のデータをサン
プリングするため、新しいアプリケーションタスク、従
ってサンプリングサブルーチンを作成・用意する必要が
あり、計測システムの運用上煩わしいと云う問題点があ
った。
However, in order to actually operate such a measuring system, various application tasks 17 1 to 17 n and therefore various sampling subroutines 18 1 to 18 n are created.
In this case, although the measuring instruments used are almost the same, a new application task, in order to sample the measuring instrument data in a different order when connected to the input terminal of the multiplexer 20 of the process adapter 2 in a different order, Therefore, there is a problem that it is necessary to create and prepare a sampling subroutine, which is troublesome in operating the measurement system.

本発明の目的は仮令マルチプレクサ20の入力端子に接続
される測定器31〜3nの順番が変わった場合で入力速度、
即ち、サンプリング速度を変えることなく対応出来る方
式を提供することである。
The object of the present invention is to input speed when the order of the measuring instruments 3 1 to 3 n connected to the input terminal of the provisional multiplexer 20 is changed,
That is, it is to provide a method capable of coping without changing the sampling rate.

〔問題点を解決するための手段〕[Means for solving problems]

上記問題点は第1図の原理図に示す様に、プロセス用ア
ダプタ2により計測データをデイジタル信号に変換して
受信する処理装置1であって、プロセス用アダプタ2が
所定の順序で出力するデイジタル化された計測データを
順次格納するサンプリングバッファ15、サンプリングバ
ッファ15に格納されている計測データの格納順序の変更
を指定する制御テーブル12、計測データを格納するバッ
ファ13、及びチャネル制御手段14を設けることにより解
決される。
As shown in the principle diagram of FIG. 1, the above-mentioned problem is the processing device 1 which receives the measurement data converted into the digital signal by the process adapter 2, and the digital data which the process adapter 2 outputs in a predetermined order. A sampling buffer 15 for sequentially storing the digitized measurement data, a control table 12 for designating a change in the storage order of the measurement data stored in the sampling buffer 15, a buffer 13 for storing the measurement data, and a channel control means 14 are provided. Will be solved.

〔作用〕[Action]

本発明に依ると処理装置1がプロセス用アダプタ2から
計測データを受信する場合、チャンネル制御手段14がチ
ャンネル制御モードでプロセス用アダプタ2にアクセス
し、プロセス用アダプタ2が所定の順序でデイジタル化
した計測データをサンプリングバッファ15に格納する。
次ぎにサンプリングバッファ15に格納されている計測デ
ータの格納順序を、制御テーブル12の指示に従って変更
し、バッファ13に格納するのでデータ採取が均一化され
ると云う効果が生まれる。
According to the present invention, when the processing device 1 receives the measurement data from the process adapter 2, the channel control means 14 accesses the process adapter 2 in the channel control mode, and the process adapter 2 is digitalized in a predetermined order. The measurement data is stored in the sampling buffer 15.
Next, the storage order of the measurement data stored in the sampling buffer 15 is changed according to the instruction of the control table 12 and stored in the buffer 13, so that the data sampling is made uniform.

〔実施例〕〔Example〕

第2図(a)は本発明に依るアナログ入力データの並替
え方式の一実施例を示す図である。
FIG. 2 (a) is a diagram showing an embodiment of a rearrangement system for analog input data according to the present invention.

第2図(b)は制御テーブルの説明図である。FIG. 2B is an explanatory diagram of the control table.

図中、12は制御テーブル、13はバッファ、14はチャンネ
ル制御手段、15はサンプリングバッファである。
In the figure, 12 is a control table, 13 is a buffer, 14 is a channel control means, and 15 is a sampling buffer.

本発明に於いて、処理装置1に制御テーブル12、バッフ
ァ13、チャンネル制御手段14、及びサンプリングバッフ
ァ15を設ける。
In the present invention, the processing device 1 is provided with a control table 12, a buffer 13, a channel control means 14, and a sampling buffer 15.

チャンネル制御手段14はチャンネル制御モードで、即
ち、チャンネル部16を駆動してプロセス用アダプタ2に
アクセスし、マルチプレクサ20を駆動して第3図(b)
に示す様に、一番目は測定器31、二番目は測定器32、三
番目は測定器33、・・・n番目は測定器3nの順序で測定
データを選択し、A−D変換器21によりデイジタル量に
変換した後、サンプリングバッファ15に順次格納し、次
に制御テーブル12の指示に従い、測定データの格納順序
を変更してバッファ13に格納するタスクである。
The channel control means 14 is in the channel control mode, that is, it drives the channel section 16 to access the process adapter 2 and drives the multiplexer 20 to drive the multiplexer 20 as shown in FIG.
As shown in one th measuring device 3 1, the second measuring device 3 2, the third measuring instrument 3 3, · · · n-th selects the measured data in the order of the measuring instrument 3 n, A- This is a task of converting the data into a digital amount by the D converter 21, storing them sequentially in the sampling buffer 15, then changing the storage order of the measurement data according to the instruction of the control table 12, and storing it in the buffer 13.

制御テーブル12は第2図(b)に示す様にアプリケーシ
ョンタスク171がプロセス用アダプタ2から入力された
測定データをメモリ11へ格納する時の格納順序を指定す
るテーブルであり、バッファの格納アドレスデータとサ
ンプリングバッファ15の格納アドレスデータとが対にな
って格納されている。
As shown in FIG. 2B, the control table 12 is a table that specifies the storage order when the application task 17 1 stores the measurement data input from the process adapter 2 in the memory 11, and the storage address of the buffer. The data and the storage address data of the sampling buffer 15 are stored as a pair.

本発明では、アプリケーションタスク171は制御テー
ブル12に、測定データをメモリ11に格納する順序をセッ
トする。
In the present invention, application tasks 17 1 to the control table 12, and sets the order in which to store the measurement data in the memory 11.

アプリケーションタスク171が測定器31〜3nの測定デ
ータを採取する時は、先づチャンネル制御手段14を起動
する。
When the application task 17 1 collects the measurement data of the measuring instruments 3 1 to 3 n , it first activates the channel control means 14.

チャンネル制御手段14は前述した様にチャンネル制御モ
ードでプロセス用アダプタ2にアクセスし、マルチプレ
クサ20を駆動して第3図(b)に示す順序で測定データ
を選択し、A−D変換器21によりデイジタル量に変換し
た後、サンプリングバッファ15に順次格納する。
As described above, the channel control means 14 accesses the process adapter 2 in the channel control mode, drives the multiplexer 20 to select the measurement data in the order shown in FIG. After being converted into a digital amount, it is sequentially stored in the sampling buffer 15.

次にチャンネル制御手段14は制御テーブル12を頭から順
に読み出し、バッファのアドレスデータの示すアドレス
にサンプリングバッファ15のアドレスデータの示すアド
レスデータを転送することで、測定データの順番を変更
してバッファ13に格納する。
Next, the channel control means 14 sequentially reads the control table 12 from the head and transfers the address data indicated by the address data of the sampling buffer 15 to the address indicated by the address data of the buffer, thereby changing the order of the measurement data and changing the order of the buffer 13. To store.

次にバッファ13に格納されている測定データをメモリ
11へ転送する。
Next, the measured data stored in buffer 13 is stored in memory.
Transfer to 11.

此の様にしてメモリ11へ転送された測定データの配置は
アプリケーションタスク171の希望する順序となる。
The arrangement of the measurement data thus transferred to the memory 11 is in the order desired by the application task 17 1 .

〔発明の効果〕〔The invention's effect〕

以上詳細に説明した様に本発明によれば、サンプリング
するチャンネルに名前、又は番号を付けておけば、異な
る計測システムにも同じアプリケーションタスクで処理
を行うことが可能になり、プログラム作成の手間が省け
ると云う大きい効果がある。
As described in detail above, according to the present invention, if the channels to be sampled are given names or numbers, it is possible to perform processing with the same application task even for different measurement systems, which saves time and effort for program creation. There is a great effect that it can be omitted.

【図面の簡単な説明】[Brief description of drawings]

第1図は本発明の原理図である。 第2図(a)は本発明に依るアナログ入力データの並べ
替え方式の一実施例を示す図である。 第2図(b)は制御テーブルの説明図である。 第3図(a)は従来のアナログ信号の入力方式の一例を
示す図である。 第3図(b)は従来のアナログ信号の入力方式の説明図
である。 図中、1は処理装置、2はプロセス用アダプタ、31〜3n
は夫々計測器、10はプロセッサ、11はメモリ、12は制御
テーブル、13はバッファ、14はチャンネル制御タスク、
15はサンプリングバッファ、16はチャンネル部、171〜1
7nは夫々アプリケーションタスク、181〜18nは夫々サン
プリングサブルーチン、20はマルチプレクサ、21はA−
D変換器である。
FIG. 1 is a principle diagram of the present invention. FIG. 2 (a) is a diagram showing an embodiment of a rearrangement system for analog input data according to the present invention. FIG. 2B is an explanatory diagram of the control table. FIG. 3A is a diagram showing an example of a conventional analog signal input method. FIG. 3B is an explanatory diagram of a conventional analog signal input method. In the figure, 1 is a processing device, 2 is a process adapter, and 3 1 to 3 n
Is a measuring instrument, 10 is a processor, 11 is a memory, 12 is a control table, 13 is a buffer, 14 is a channel control task,
15 is a sampling buffer, 16 is a channel section, 17 1 to 1
7 n are application tasks, 18 1 to 18 n are sampling subroutines, 20 is a multiplexer, 21 is A-
It is a D converter.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】プロセス用アダプタ(2)により計測デー
タをデイジタル信号に変換して受信する処理装置(1)
であって、 該プロセス用アダプタ(2)が所定の順序で出力するデ
イジタル化された該計測データを順次格納するサンプリ
ングバッファ(15)、 該サンプリングバッファ(15)に格納されている該計測
データの格納順序の変更を指定する制御テーブル(1
2)、 該計測データを格納するバッファ(13)、 及びチャンネル制御モードで該プロセス用アダプタ
(2)にアクセスし、該プロセス用アダプタ(2)が所
定の順序でデイジタル化した該計測データをサンプリン
グバッファ(15)に格納し、 且つ該サンプリングバッファ(15)に格納されている該
計測データの格納順序を該制御テーブル(12)の指示に
従って変更し、該バッファ(13)に格納するチャンネル
制御手段(14)を設けたことを特徴とするアナログ入力
データの並べ替え方式。
1. A processing device (1) for converting measurement data into a digital signal by a process adapter (2) and receiving the digital signal.
A sampling buffer (15) for sequentially storing the digitized measurement data output by the process adapter (2) in a predetermined order, and the measurement data stored in the sampling buffer (15). Control table (1 that specifies storage order change)
2), a buffer (13) for storing the measurement data, and access to the process adapter (2) in the channel control mode, and the process adapter (2) samples the measurement data digitized in a predetermined order. Channel control means for storing in the buffer (15), changing the storage order of the measurement data stored in the sampling buffer (15) according to the instruction of the control table (12), and storing in the buffer (13) An analog input data rearrangement method characterized in that (14) is provided.
JP7506387A 1987-03-27 1987-03-27 Rearrangement method of analog input data Expired - Lifetime JPH0787617B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7506387A JPH0787617B2 (en) 1987-03-27 1987-03-27 Rearrangement method of analog input data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7506387A JPH0787617B2 (en) 1987-03-27 1987-03-27 Rearrangement method of analog input data

Publications (2)

Publication Number Publication Date
JPS63240298A JPS63240298A (en) 1988-10-05
JPH0787617B2 true JPH0787617B2 (en) 1995-09-20

Family

ID=13565372

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7506387A Expired - Lifetime JPH0787617B2 (en) 1987-03-27 1987-03-27 Rearrangement method of analog input data

Country Status (1)

Country Link
JP (1) JPH0787617B2 (en)

Also Published As

Publication number Publication date
JPS63240298A (en) 1988-10-05

Similar Documents

Publication Publication Date Title
JPH0787617B2 (en) Rearrangement method of analog input data
JP3147711B2 (en) Display and recording system
JPS60178315A (en) Process data display device
JPH08178962A (en) Waveform measurement system
JPH0829455A (en) Waveform analyzer
JPH05110399A (en) Multiplexer input changeover device
JPH07234882A (en) Waveform measuring instrument
JP3057290B2 (en) Multi-channel waveform measurement device
JP2002374167A (en) Analog input device for monitor control
JP2673393B2 (en) Waveform analyzer
JPS62168220A (en) Data input device
JPH0526966Y2 (en)
JP2002062316A (en) Waveform recording device
JPS5953565B2 (en) Direct memory access control device
JPH051773Y2 (en)
JPS61233873A (en) Data collection processing device
JPH11250389A (en) Data acquisition device
JPH05340771A (en) Data collecting device
SU1624534A1 (en) Buffer memory unit
JPH01163821A (en) Measuring system
JP2592708Y2 (en) Spectrum analyzer
JPH0989934A (en) Waveform analyzer
JPS63146139A (en) Memory dumping system
JPS6154535A (en) Arithmetic circuit for maximum and minimum values
JPS61131027A (en) A-d converted data recording device

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070920

Year of fee payment: 12