VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

fixed-point

Solved!
Go to solution

Hello,

 

I'am trying to deal with fixed-point in Veristand but I have some problems.

 

I did a simple FPGA custom personality in which I send a fixed-point (signed , WL=45, IWL=35) control to an indicator.(see picture)

It works fine when running the code under Labview. But when interfacing with Veristand there is some problems. When writing in the control a positive fixed point it's ok.

But when writing a negative fixed-point the indicator always return 6777216.

 

 

I don't understand what is happening here. Does anyone have an idea?

 

thanks

Message 1 of 5
(6,757 Views)
Solution
Accepted by topic author Debz

Hello Debz,

 

Thank you for posting on National Instruments Forum.

 

First of all, you have coercition dot (little red triangle) on your code which mean that a automatic data-type conversion is made. you should do the conversion by yourself so you can be sure of the one you use.

 

By which mean do you write in the control when "interfacing" with NI VeriStand?

 

If this does not change anything, can you post the xml files corresponding to your FPGA personality?

 

Have a great day,

 

 

Flo

Message 2 of 5
(6,718 Views)

Doing the conversion by myself doesn't change anything.

 

I interface with NI Veristand using the control on the Workspace that I map to the FPGA I/O.(see Workspace picture)

 

You can also find my xml file attached below in the zip file.

 

Thanks 

Download All
0 Kudos
Message 3 of 5
(6,689 Views)

I forgot to say that for both channel the scale is 1 and the offset is 0.

 

Is it ok to use the default "Numeric Control-Medium" and "Numeric Indicator-Medium" on the Workspace for fixed-point fpga data type?

0 Kudos
Message 4 of 5
(6,664 Views)

Problem solved. You were right Florent A. It was a problem of conversion.(see picture)

 

thanks

Message 5 of 5
(6,654 Views)