6
CONFERINA NAIONAL DE INSTRUMENTAIE VIRTUAL – CNIV 2004 149 Instrument virtual pentru comanda pe port serial a unui analizor de gaze Horiba PG 250 Constantin D. Comeag, Cristian G. Alionte, Tudor Prisecaru Resume — The modal analysis is the most important tool to analyze the dynamics of structures. The testing systems need high performance hardware and a friendly but powerful software. The test engineers could use dedicated systems, offered by specialized companies, or a system built-on data acquisition system and software. The former is easy to modify in accordance with the testing conditions (number of channels, frequencies, etc.) and also make possible the acquisition of data from different transducers (accelerometers, pressure transducers, flow meters, etc.). This paper presents two solution for modal analysis: one including a portable data acquisition board and a simple post-processing and the other for advanced acquisition and data processing. The post- processing in the second case is performed with specialized software. Both systems are controlled with virtual instruments developed in graphical programming language LabVIEW. Termeni— instrument virtual, analizor de gaze, comanda port serial. 1 INTRODUCERE ! "# $ %& ’" ( ) "*" ) ( +%& ) ( , ) % * )% , ! -.# % ’ " / "! " 0) "+" +( + 1+ + 2+ % % 0( 2+( 1 " + 1 +# 3 ! . /++ $+$ 1 +%44% "’ - " " +( 567* - % ! 4’ .80 % ) ( 12 $ 1 * ! .8 $* , ./* 1 #* - ! " ) +! # 09#:2 ! + " + 1 ! # ( !;$ 4 1 1 0 !:7 ! 2+ 2# 2 DESCRIEREA APLICAIEI + 1 % +( 1 1 % ! ) -"7<= # , ( ) ’ , 0! 21 , - Fig. 1. Analizor Horiba PG 250

DE INSTRUMENTA IE VIRTUAL Instrument virtual pentru ... 2004/pdf/03-10 C Comeaga.pdf · CONFERIN A NA IONAL DE INSTRUMENTA IE VIRTUAL – CNIV 2004 149 Instrument virtual pentru comanda

Embed Size (px)

Citation preview

CONFERIN�A NA�IONAL� DE INSTRUMENTA�IE VIRTUAL� – CNIV 2004 149

Instrument virtual pentru comanda pe port serial a unui analizor de gaze Horiba PG 250

Constantin D. Comeag�, Cristian G. Alionte, Tudor Prisecaru

Resume — The modal analysis is the most important tool to analyze the dynamics of structures. The testing systems need high performance hardware and a friendly but powerful software. The test engineers could use dedicated systems, offered by specialized companies, or a system built-on data acquisition system and software. The former is easy to modify in accordance with the testing conditions (number of channels, frequencies, etc.) and also make possible the acquisition of data from different transducers (accelerometers, pressure transducers, flow meters, etc.). This paper presents two solution for modal analysis: one including a portable data acquisition board and a simple post-processing and the other for advanced acquisition and data processing. The post-processing in the second case is performed with specialized software. Both systems are controlled with virtual instruments developed in graphical programming language LabVIEW.

Termeni— instrument virtual, analizor de gaze, comanda port serial.

� � � � � � � � � � � � � � � � � � � � � �

1 INTRODUCERE

������������� �������������������� �������������������������������������������������������� �������������!�������������"�#�$���������� ��������� ������������� ������ ���������%����&�'����"������� ���� ������� ����� ��������� ������ ��

(������ ��)������������������������������������������������"��*����"������� ��������)�������(���+��%����&���������� )�� ������������� � ������ � �(���������� ��� �������� ������� �� ������ � ��� ���� � �� ������������ ��,��� �������������)��%��� ����������������*����� ������������)��%��������������� ���������� ��������������������������,���!������������������������-�.#������������������������������%�����������'�������������"������������������/������������������������"���!

"����� 0)�� "�����+� ���"��� ��� ���+� ��(� �+� ������������ ��� ��1���+� ���� �� ��������+� ������� ��� �������� �� ���� �2+������� �� ��%������ ��� ������%����� ������� 0�(������ �����2+� ������ �� ������� �(������ 1� ����"�� �� ��������������+������� �1����������������������������������+����#�3��������������������������������������!���� ��������������������������������� �������������������.�/+� ��+�

$�+�$���1���+��%4����4��%����������������������������"��'��- ��������������������"��������������"�� ��������������������+�����(����567*��- ����������������� ��������������������������������� �������������������������������������������%�������!

�����������4��'����������.8���0����� ���������% �)���(����1�2�����������������$��1�������� ��*�����!��������.8����������$��*�����������,����� ��������������.�/*������� �1������������������������������ ����������#*�

- ���������!���� ����������"��� �� ����������������������������������)������ ������������������ ����+������!�����������������������#�

���������09�#�:2�����������������!������ ���������+��������� ���������������������"�������+������� �1��������!������������#����������� ����������� ��� �� ����(�� � ����� � ������������ ���

� !�;�$��4��1�����1�����������0���������!:�7�������������!����2+����������������������������� �� ���� ������2#�����

2 DESCRIEREA APLICA�IEI ������� �������� ���������+� ������ 1� ���%����� ��������

� ������� ��� ������� �����+� �(1����� 1� ���%����� ��������� �!������������������� �)��-�"7�<= #���,�������������������� �������(��������������������������������)����� ������'������������������������� ����

��,���0�����!�������������������2�1���,���������������������� ������������������� �����������������������������

-�

Fig. 1. Analizor Horiba PG 250 �

150 CONFERIN�A NA�IONAL� DE INSTRUMENTA�IE VIRTUAL� – CNIV 2004

������0�����%��(��������� �)����������2#���,������������������ ��������%����&���� ������������������� ���1� �(��!�������%��������������� ���������������+��(��������%�������������������������������������������(�#�-������!������� ����� � ��������� ��� ��+� ������ �4��� ����� ��������+� ��� ��/�� ��� ������� ��� ����&� ������� ������� ��#� 8�� � ������������� ���������� ���������/�����������1��(������������������������� ������+������������� ��� �1�%�������� ��!����#�$������������������(��������� ������������� !�;�$#�5������ ������������������4����� ��������4��1���������!������������� �����+������������� �������������������������� �������������#��</����4��������)���������������������� �������+��������%��)��,�������������������� ���1�%�������)���!����������

�������������������">�)�������%�������������� ������� �����#�9����������������������������������&���09������2?#��1����� �����������"���%��1����(��� ���������1��������%�� ��������0�4�����8�5�2�������(��������������� ��������!� ��������������)������� �������� ���������������������������������� ������������"������������� �������������9$ �09�����$,��@� �A�����2#���������������������������!��)����������������������������� ������%������)��%�����,�/�+�����!������(��������(������)���!��%�������"��� #�$�������������������%�����%��(������(�������������)��,�/�������1�%��������������� ����9$ #�-�������������������� ��,�/��������������$��������������0�/�82�1��������-���9����0�/��2#����� ������������������������������������ �)��(�����;#���������������,���������������+���� ���������������!

��������� �� � �� ���� � ������+� ���1��� 1� ���%����1��� )���!�� (��� � ����� ���� ��� ������������� �������� � �� +� ���%�� ������������)���!���(1���1��)��,���������������#�3�����������)��������������������� ���������)��(�����������������������&�����������)����������������������������(�����������#������(������������ �����)�� ��� �������������%������(���!

������)��������������0(�#�B2'�- ������������������*�- ���������������*�- ��������������%���*�- ������������ ������#�-�����������������%���������������������������������������������������������������������������1���� ������ ���������

�������������'�"���������0CD���"��2+������"��0E�"�2+������"��0:�"��2+���������0������2#�-����� ��������������������%����������������������������������������������������������������������� �������(����������������1���������������� �����#��������%��(���"�(���������1�����(����'�$�:F9$ F$�F-9#��������������������������� �7�!����������������������������+�� ����������� ������������������������0$�G:+�$�G �+�$�G;+�����$�GB2#�7��������)������ ����� ����%�%��(�������������������������������%��(������ �����������(���������� �����������������#��

3����� ������� ���%��� ���� �������0(������2+����������� �1����� ��4� � ����� ��� ���)��"�((��� ������������#�8�� ���������������(�����(������ ����������������������������������������(���������(���������������������������� ����������#�3��(1��� ��� ���%�� ���4��������� ����� �4��1��� �(����������������������� ���#�5�����������(� ���%���)��

Fig. 2 Formatul instruc�iunilor transmise prin interfa�a serial�

Fig. 3 Diagrama programului de achizi�ionare �i de prelucrare a datelor

C. COMEAG�, C. ALIONTE, T. PRISECARU: INSTRUMENT VIRTUAL PENTRU COMANDA PE PORT SERIAL A UNUI ANALIZOR DE GAZE HORIBA PG 250 151

(�������"���������������%+������� �������������(�� ���������������������,��#�-����������%����������%�� ��������������+�)��(�������������#��

�����������(1�� ����������������������������/����%�������������������������1����������"���% �)��(�����D#�3�������1�(��� �����"���% ��������������������(�������������������1�"���������������������������������(������! ������������#�3��(���������� ������������������%��(��(1���)������(���������������������(���������������������0�������������!

���� ����(�����H2'���1����������������������������������)�� ���*��(1�����������)�� ���*��(1������%������"������������������������*��(1�������������)�� ��*��(1����������������*��(1�������������� ������*��(1����������������"����*��(1��������������� �*��(1���������&����)���������*��(1�������&�������� ��� #�<����������� �������0�������G �������������������)��(�����B2����� �������������� ������ ��� +���������������

� ������+�������&�������� �������0��� �� ��������������(���% +���� ����(����)�������������� ������������������+���� ��/�� ������ 1�������������+���� �� �����������(������"������������� �������������� �������������������������� �)����������)��%��I�2�1���%����������������#���

Fig. 4 Panoul frontal al instrumentului virtual

152 CONFERIN�A NA�IONAL� DE INSTRUMENTA�IE VIRTUAL� – CNIV 2004

</�������������������%���������� �� ����(1����)�������������� ������������������ ������������������ �)��(�����E#�

$��������������������������0(�����C2�������(� ���������)��(��������������� ��� �#�G �����������������(�������!�����������������������%�����������0������J$�5��<��65�G�5�J�1�J$�5��<��6.$5�$6��6.$5J2#�8�����������������������%��(������)��(1�����������%����������(������������"�(��� ������% �������"�(��� ��"����� �0������J5�G���<-�5�7J�1�J5�G���� �-65J2+���������������#��3�� (����� C�� ����� ��������� �������� ��� ����� ������� ���� ���%��� �����%� 0� ������ (�� � ��� ��������� ��� ������� ���

����������2�1�����������������������������������������K�������������������L#�3�������������%���%"�����"�����M����L������� ����� �������������������������������#�3��(�����C"���������������������������������������������%��������%�1�����������������������������������������

K����� ������� L#�3�� ������ �����%���%"�� ��� "�����M������� ����L����� ���������� � �������������)�������� � ���#�$�������������������"��� ���������������������������&��)�������� �����������%�#�<�������������%����0(�����:�2����� �����������������������������%����������'�������(1�����+��������(1�����+�������

������%���#� ��%�����������(�������� �0���(����)��(�������������2����������� �0������� �"�������������%����)�����������)��������������1������%������������2#���������������%�������������������������"����� �"�������������������������������������%���������������%����������� #�3�����������������%�� ����(��������� ��4������(��������������������#����������������%���������� ����� ��������������� �� ����%��������������������������+��,������ ����������(�����������#����������� � ���� ���%���� ��(1������ ���������(����)����� ������'�(�� ��� ������ ������ ����� �0���%����� ���%��(����)��

� � �����������)�����������(� ��/�����"���2+�(��������������������������%�������� ���������������������%�,�� ��4� ������������������#�

Fig. 5 Detaliul din diagram�: a�teptarea umplerii bufferului,calculul timpului asociat momentului de citire �i conversia mesajului primit

Fig. 6 Panoul frontal pentru selectarea portului serial �i indicarea mesajului de stare

C. COMEAG�, C. ALIONTE, T. PRISECARU: INSTRUMENT VIRTUAL PENTRU COMANDA PE PORT SERIAL A UNUI ANALIZOR DE GAZE HORIBA PG 250 153

CONCLUZII ������������������������������%�������������� ���������������������������������1�������������������!

�"�+�������"����������� �������������� #�3�������������� ��� ������������)����������������+�����������������(����������������������������� ���&�� ����������)���������������������������������� ��� �������������)���������(���+����������(�������������������������4�� ���������(����������������������������� ����)������!��� #� ������������� %������ � �� (���� �������+� ���4��� (� ������ ��� ����� ��� ��� ����������+� ���(������� � �� � (������������������+�;��G "���G+�B�G "��"������,����@#��

BIBLIOGRAFIE N:O PPP+�G������-�"7�<=+�N�O 8PPP+�G���������"�+��������

Fig. 7 Selectarea mesajului în func�ie de tipul r�spunsului aparatului

Fig. 8. Diagrama pentru extragerea �i conversia datelor

154 CONFERIN�A NA�IONAL� DE INSTRUMENTA�IE VIRTUAL� – CNIV 2004

a - citire continu� b - citire la momente determinate de timp Fig.9. Ecranul de citire

Fig. 10. Ecranul de salvare