Auto Refresh Table in Database Viewer

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
vinit_patil
Posts: 9
Joined: Sat Jun 09, 2012 11:30 am

Auto Refresh Table in Database Viewer

Post by vinit_patil »

Hi.

I am using Qterm A12 Pannel.
I want refresh the "DataLogger1" table in Database Viewer @ every 1sec rate.
i have attached the screen shot of script included in "LogData" screen.
While validating the project i got error (error file attached).

Can you please clarify what does this error means.
Attachments
Error message while validating project.
Error message while validating project.
AutoRefreshDatabaseViewer_Error.png (147.43 KiB) Viewed 10835 times
Script included in "Log Data" Screen
Script included in "Log Data" Screen
AutoRefreshDatabaseViewer.png (164.77 KiB) Viewed 10835 times
Last edited by vinit_patil on Mon Jun 25, 2012 8:40 am, edited 1 time in total.

vinit_patil
Posts: 9
Joined: Sat Jun 09, 2012 11:30 am

Re: Auto Refresh Table in Database Viewer

Post by vinit_patil »

I have iX Developer Version 1.31 build 1.31.93.0

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Auto Refresh Table in Database Viewer

Post by mark.monroe »

That is a C# error, not an error from iX Developer. You are using a static function to call a dynamic variable. DatabaseViewer1 is not static, and may not exist when you call the static function Timeout4.

The solution is to not call a dynamic viable in a static function.

http://msdn.microsoft.com/en-us/library ... 80%29.aspx
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

vinit_patil
Posts: 9
Joined: Sat Jun 09, 2012 11:30 am

Re: Auto Refresh Table in Database Viewer

Post by vinit_patil »

Thanks for your feedback

memethemyn
Posts: 51
Joined: Fri Apr 27, 2012 12:33 pm

Re: Auto Refresh Table in Database Viewer

Post by memethemyn »


Post Reply