TAILIEUCHUNG - Exercise

This VI saves data to a binary file using a simple formatting scheme in which the file’s header is a long word integer (I32) containing the number of data points in the file. In the next exercise, build a VI that reads the binary file. To build a VI that writes data to a binary file with a simple data formatting scheme. Front Panel 1. Open a new VI and build the front panel shown previously. 2. When you create the menu ring, recall that a shortcut for adding a new item to the list of options is to press after entering. | Exercise 4-1 Binary File Writer VI Objective To build a VI that writes data to a binary file with a simple data formatting scheme. This VI saves data to a binary file using a simple formatting scheme in which the file s header is a long word integer I32 containing the number of data points in the file. In the next exercise build a VI that reads the binary file. Front Panel 1. Open a new VI and build the front panel shown previously. 2. When you create the menu ring recall that a shortcut for adding a new item to the list of options is to press Shift-Enter after entering the text for an item in the list. Enter Zero for item 0 in the list Sine for item 1 Square for item 2 and Sawtooth for item 3. To view the numeric value of the menu ring right-click the control and select Visible Items Digital Display. Macintosh Shift-Return Sun Shift-Return HP-UX Shift-Enter and Linux Shift-Enter Note The appearance of the menu ring control varies from one platform to the next. Block Diagram 3. Open and build the block diagram shown previously. a. Place the Open Create Replace File VI located on the Functions File I O palette on the block diagram. This VI creates or replaces a file. HJjH b. Place the Write File function located on the Functions File I O la ui palette on the block diagram. This function appears twice in this exercise. The first function writes the binary file s header information which is a four-byte integer containing the number of values written to the file. The second instance writes the array of data to the file. c. Place the Close File function located on the Functions File I O palette on the block diagram. In this exercise this function closes the binary file after data has been written to it. d. Place the Simple Error Handler VI located on the Functions Time Dialog palette on the block diagram. In the event of an error this VI displays a dialog box with information about the error and where it occurred. start e. To create this constant right-click the pos .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.