Pay attention to the data representation format in LabVIEW

Publisher:彭勇Latest update time:2015-09-08 Source: eefocusKeywords:labview Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
In this little program, I found that   the output of the multiplication is always incorrect. It is always much smaller than its value. Pay attention to the data representation format in LabVIEW

At first I didn't notice it was a data format issue.

Then we right-click the output contact and a dialog box like this will pop up

Pay attention to the data representation format in LabVIEW

The representation shows U16 and the maximum value of U16 is 65536. So it overflowed.

The reason why U16 is because it matches the source data type is U16. If the previous data format is U32, the output is also U32.

We don't want to modify the previous data format, because U16 is sufficient for the previous one, and a larger size will waste memory.

Then we just need to change the output data format to U32.

problem solved.

Pay attention to the data representation format in LabVIEW

Keywords:labview Reference address:Pay attention to the data representation format in LabVIEW

Previous article:Search for a token in a string - one of the LabVIEW string functions
Next article:Calling .dll in labview

Recommended ReadingLatest update time:2024-11-17 03:09

In-depth exploration of LabVIEW - basic types of state machines sequential structures
The previous article introduced the important concept of LV programming---state machine. State machine is a basic concept or theory. Its specific forms are too diverse and difficult to classify. Based on my personal experience in programming practice, I summarize several common types. 1. Sequential structure LV it
[Test Measurement]
In-depth exploration of LabVIEW - basic types of state machines sequential structures
Introduction to Virtual Oscilloscope and Its Software Implementation
The oscilloscope is one of the most commonly used measuring instruments in the electronic measurement industry. It can output visible images after the electrical signal is input through the oscilloscope instrument, allowing people to more intuitively study the change process of various electrical phenomena or signal
[Test Measurement]
Introduction to Virtual Oscilloscope and Its Software Implementation
Developing a novel portable smart greenhouse using graphical system design
  A greenhouse in Mexico is about to use a portable smart greenhouse system   author:   Pedro Ponce - Monterrey Institute of Technology   industry:   Life Sciences, Consumer Products, Scientific Research   product:   cRIO-9014, NI 9265, NI 9215, USB-6211, LabVIEW   challenge:   Create a smart system
[Test Measurement]
Developing a novel portable smart greenhouse using graphical system design
LabVIEW Learning - Property Node
In actual use, it is often necessary to change the color, size, visibility and other properties of objects on the front panel in real time. In this case, you need to use attribute nodes for dynamic settings. Property nodes have two forms: input and output (right-click and select Convert to Write/Output in the shortc
[Test Measurement]
Using LabVIEW FPGA Module to Realize Continuous Data Transmission in Different Clock Domains
Abstract: In order to solve the data discontinuity problem caused by improper setting of DMA FIFO depth based on LabVIEW FPGA module, a method for setting FIFO depth is proposed in combination with the programming characteristics of LabVIEW FPGA and the working principle of DMA FIFO. Experiments on different FIFO de
[Embedded]
Using LabVIEW FPGA Module to Realize Continuous Data Transmission in Different Clock Domains
Design of multi-physics field measurement system for marine environment based on LabVIEW
I. Introduction In recent years, with the increase of human efforts in the development of the ocean, the research on the ocean has become more extensive and in-depth. Correspondingly, various environmental physical fields in the ocean have also become the focus of research. Because the understanding of the physical fi
[Test Measurement]
Design of multi-physics field measurement system for marine environment based on LabVIEW
Realize quantitative testing and time-frequency analysis based on LabVIEW software and computer sound card
In the field of electronic measurement, signal generators and oscilloscopes are one of the most basic and widely used electronic measurement equipment. Their functions are to provide electrical signal sources that meet certain technical requirements for electronic measurement and to graphically display electrical sign
[Test Measurement]
Realize quantitative testing and time-frequency analysis based on LabVIEW software and computer sound card
Using LabVIEW and CompactRIO to Automate a Washing Machine Production Line
Conveyor belt with all positions and hand controls marked Author: M. Malovrh - Bosio doo D. Kovacic - Bosio doo A. Romih - Bosio doo K. Martinovic - Bosio doo Industry: Consumer Goods, Industrial Control/Equipment/System Products: NI 9425, PPC-2115, NI 9211, NI 9476,
[Test Measurement]
Using LabVIEW and CompactRIO to Automate a Washing Machine Production Line
Latest Test Measurement Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号