06-13-2007 07:11 AM
06-13-2007 09:35 AM
Jamie,
You are correct in your first statement that LabVIEW "throws away" the imaginary components of your data if you connect a complex data type to a real number indicator (i.e. UINT8, 16, etc). You can tell that a transformation is occuring because a coercion dot appears at the corresponding terminal on the block diagram.
One method to recognize whether or not the input data is complex is to use a case statement to determine if LabVIEW should treat/display the number as complex or real. I have attached a quick sample example that implements this design.
One note with the code within the case statement is that it uses references to the indicators and property nodes to make the correct indicator visible. To see more information on this feature consult the LabVIEW help documentation.
Cheers,
Jonah Paul
Applications Engineer
National Instruments
06-13-2007 09:12 PM
06-13-2007 10:12 PM
06-13-2007 10:31 PM