LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

web UI builder

Hello all, has anyone seen this error in Web UI Builder?  It doesn't seem to be listed in the list of error messages.  I have a simple web service on a cRIO controller - see attached.

 

Untitled.vix: Started run at 10:28:22 AM 9/27/2012
web.vix: ToMoreSpecificClass in Web: Bad type cast.  The run-time value of this class cannot be treated as an instance of the given class.

 

0 Kudos
Message 1 of 4
(2,788 Views)

Marvin,

 

Would it be possible for you to post the web.vix file and the data.ctl?  I have not seen this error before and I want to try to reproduce it.

 

Regards,

 

Greg Haley

Applications Engineer

National Instruments

Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,769 Views)

Hi Greg,

 

Thanks for looking into this.  I might need to apologize, though; during some of my troubleshooting I didn't keep the project intact, so these might not be the exact files that caused the error. 

 

Interestingly, the problem was solved when I didn't use a cluster network shared variable (see web without cluster.vi) to publish the data from the cRIO.

 

Regards,

Marvin

Download All
0 Kudos
Message 3 of 4
(2,742 Views)

Hello Marvin,

 

Thanks for posting the LabVIEW web service and Web UI builder files. I've attempted to duplicate the "Bad type cast" error and your workround, but haven't seen the error. The steps I've gone through include:

  • Creating a shared variable library with both the cluster & non-cluster variables
  • Building & deploying both VIs as web services
  • Importing both web services into Web UI builder
  • Running the Web UI builder program

There was a known issue with the 2011 Real-Time module and typedef shared variables, but it would prevent the web service from functioning altogether (not produce errors in Web UI builder).

 

Regards,

 

Andrew Brown

Software Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,721 Views)