04-27-2011 03:05 AM
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
Solved! Go to Solution.
05-03-2011 11:04 AM
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
05-06-2011 05:03 AM
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
05-12-2011 05:34 AM
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?
05-12-2011 09:30 AM
Problem solved. You were right Florent A. It was a problem of conversion.(see picture)
thanks