Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

WPF and DAQmx

Does anyone try to develop daq application with WPF and DAQmx using databinding, dataconverters, livestreaming data in custom controls?

Is it possible to databind highspeed signals with WPF custom controls and do you have some examples?

 

 

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

Hello,

 

 

The easiest way to do this is develop the application using the WPF Model View View Model schema.  It is the way WPF implements an adhoc MDI app.  The signifgance to this approach is the view model.  The view model is the class that will serve up the data to the WPF form controls in the form a a data binding.  The data binding is very easy to do and is done via the property editor in the IDE.  So here is the steps:

 

1) Search for a basic WPF MVVM demo application on the MSDN.

2) Master how the Model View Class is used to expose properties to the WPF form.

3) In the WPF form using the MVVM example look at how you define a data context to the XAML code for the WPF form.  This allows you to data bind to your viewModel class.

4) Learn how to implement c# code for DAQmx (many examples on NI.com).  Then apply the calls the to DAQmx to the modelview class and data properties.

 

 

This sounds like alot of work, but the 2 key elements are find examples of the MVVM for wpf and master.  This is the easiest way to achieve what you are doing.

 

Good luck,

 

The Tech Guy

Message 2 of 2
(4,398 Views)