LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

truncated number

I found some problem in transferring of baud number to initialize visa.
I want to set 115200 baud rate, but only 65535 was set in the VISA config Serial Port.VI.
Of course, the same U32 data type was used in the Enum.
I used LV8.2.1.
Is it a known problem?
 
0 Kudos
Message 1 of 5
(3,180 Views)
That is not an enum. That is a ring constant. Two different beasts. The default datatype for a ring constant is U16, which has a maximum value of 65535. You need to change the datatype of the ring constant to U32, and then re-enter the value of 115200 for that ring item.
0 Kudos
Message 2 of 5
(3,168 Views)
Please open new attachment and then verify my trouble in LV8.2.1.
0 Kudos
Message 3 of 5
(3,152 Views)
As I said in my response: "re-enter the value of 115200 for that ring item"

If you view the properties for your ring, and go to the "Edit Items" tab you will see this:

If you change the datatype you may have changes in the actual values of the ring items because the values are tied to the datatype. Change the 65525 value to 115200, reselect that item from your constant, and you will see that the numeric indicator displays the correct value. Your ring indicator will display <115200> since it has its own separate list of string-value pairs.


Message Edited by smercurio_fc on 07-17-2008 11:32 AM
0 Kudos
Message 4 of 5
(3,146 Views)
Sorry, I misunderstood your reply.
I got to know what you mean.
0 Kudos
Message 5 of 5
(3,112 Views)