LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ADXL202EB Handshaking & Panel Resize Based On Size and Resolution of Monitor

Hi,
    I am doing a project using LabWindows/CVI and National Instruments ADXL202EB board, which contains the ADXL202JQC accelerometer and PIC16C63. The purpose of the project is to acquire data from the evaluation board and display the vibration spectrum. I have two questions.
1. How do I determine whether the correct board is connected to the selected port? Is there some control word other than the one used for acquiring data that I can sent to the port and expect a reply if it is the ADXL202EB board?
2. How do I scale the panels in the program according to the size and resolution of monitor?
Please help.


0 Kudos
Message 1 of 5
(3,403 Views)
The answer to your second question lies in the "Scale contents on resize" attribute of your panel: checking this box (Edit panel >> Other attributes window) permits that the panel resizes as it is scaled either manually dragging its boundaries or programmatically. If you want to scale your panel to fit exactly on the screen, you can use SetPanelAttribute (panelHandle, ATT_WINDOW_ZOOM, VAL_MAXIMIZE): the panel will be displayed on the entire screen as if the "Enlarge" button was pressed in the upper right corner and its contens will be resized accordingly.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 5
(3,389 Views)
Thanks. I will try it.
0 Kudos
Message 3 of 5
(3,372 Views)
Hello unni,

Regarding your first question, I have no record of the ADXL202EB board being a National Instruments board.  In particular, I believe it is produced by Analog Devices.  So I would suggest refering to that particular manual or help documentation to determine if the correct board is on a particular port.

Thanks
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 4 of 5
(3,371 Views)
Hi Wendy,
                Sorry for making the mistake. You are 100% right about the board being an Analog Devices product. I have been working on this project for the past two months, and I didn't notice that. All these time, I have been  thinking that the board was produced by National Instruments. I have even prepared my reports based on that, although they are not yet printed fortunately. Thanks again a lot, because you just saved me atleast 10 marks out of 100 my teachers will be awarding me during the presentation of my project.

Unni
0 Kudos
Message 5 of 5
(3,355 Views)