ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

取消
显示结果 
搜索替代 
您的意思是: 

Change source control setting by programming

We have 2 source servers for redundancy.

The client will point to either of them.

When failover happens, how to switchover the source target from one server to another in client pc by programing.

Is there any setting in files can be changed.

 

Thanks,

 

0 项奖励
1 条消息(共 2 条)
2,801 次查看
Hi turbot,

If I understand correctly, you would like your client to switch over to the back-up server if the first server returns an error.  In this case, you will want to unbundle the error cluster from the server to retrieve the status.  Wire the error status into a case structure.  In the true statement of the case structure, open a connection to the back up server and close the connection to the primary server.  In the false case, just pass your data straight through.

Please try this suggestion, and let me know if this does not work.  Also, let me know if I have misunderstood the question.  Please do not hesitate to respond to this post with any other questions or concerns regarding this issue.

Best of luck on your application, and have a great day!!

Regards,
Ching P.
DAQ and Academic Hardware R&D
National Instruments
0 项奖励
2 条消息(共 2 条)
2,774 次查看