Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
4 rating:
 1.25 out of 5     Rate this Document

Error 1057 in To More Specific Class Function when Using a Waveform or Intensity Chart or Graph

Primary Software: LabVIEW Development Systems>>LabVIEW Base Package
Primary Software Version: 7.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I am trying to use the To More Specific Class function with Waveform or Intensity Chart or Graph references, but I get error 1057 below, why could this be?

Error 1057 occurred at To More Specific Class in <VI>

Possible reason(s):

LabVIEW:  Type mismatch: Object cannot be type casted to the specified type.


Solution:
As specified, this error occurs because of a type mismatch.  It is most likely occurring because the data type of the strict Class Specifier constant is different from the data type of the Graph or Chart you are trying to modify.

For example, if you are using a Waveform Chart (strict) Class Specifier constant that uses a 2D Array of Doubles as its data type, and the Waveform Chart you are trying to modify is displaying a 1D Array of Waveform data type, you will get this error because a 2D Array of Doubles is different from a 1D Array of Waveforms.  Even though they are both Waveform Charts, they differ because they accept different data types.

Related Links:

Attachments:





Report Date: 06/29/2007
Last Updated: 07/01/2007
Document ID: 4ASJFU4G

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit