LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Type Code for Fixed Point

The VI "C:\Program Files\National Instruments\LabVIEW 2011\vi.lib\Utility\GetType.llb\Get Type Code from I16 Array.vi" takes a type descriptor in and outputs an enum that indicates the type.  However it doesn't handle fixed point numeric types, returning "bad wire" as the type.

0 Kudos
Message 1 of 3
(2,154 Views)

Thats the dangerous part about digging into vi.lib.  Lots of useful functions can be found but the documentation does not contain information on what the SCOPE of the functions are.  I this case the vi in question is probably demoted in favor of a newer method in fxp and left for backward compatability.  it likely predates the fixed point functions that were added around 7.0


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 3
(2,152 Views)

I think that the GetType.llb functions are now replaced with the VariantType.lvlib library. 

 

The old library provides backwards compatability. The newer library has support for fixed point and timestamp data.

 

vi.lib\Utility\VariantDataType\VariantType.lvlib

 

 

The OpenG Variant library is being updated to support the newer datatypes. 

 

http://lavag.org/topic/15029-openg-labview-data-library-41016-release/

 

 

You may be interested in this post on LAVA w/r/t rolling your own "format anything" code:

 

http://lavag.org/topic/14310-bug-format-variant-into-string-ogtkvi-doesnt-handle-timestamps/page__vi...

 


Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

Message 3 of 3
(2,144 Views)