ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control and simulation multisim, decimal precision

Solved!
Go to solution

I'm using labview to simulate a multisim circuit with an input and an output voltage. The voltage comes out of the multisim module and goes into a collector and is written to a text file.The values I receive in Labview have 6 decimal numbers (0.XXXXXX). I need a more accurate reading. Is there a way to increase the precision ? Preferably around 10-12 decimal numbers.

 

 

0 Kudos
Message 1 of 3
(4,085 Views)
Solution
Accepted by topic author MarnixGi

Hi Marnix,

 


@MarnixGi wrote:

is written to a text file.The values I receive in Labview have 6 decimal numbers (0.XXXXXX). I need a more accurate reading. Is there a way to increase the precision ? Preferably around 10-12 decimal numbers.


Generic answer: change the formatting settings (of your indicators and file write options)!

 

More detailed answer: Please attach your VI to receive specific suggestions.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(4,049 Views)

Thanks, it was indeed the format in the 'write to spreadsheet' function. I changed this format to %.12f and everything works now. In case this helps someone else these are all formatting possibilities. 

https://www.ni.com/docs/en-US/bundle/labview/page/format-specifier-syntax.html

0 Kudos
Message 3 of 3
(4,042 Views)