K8055N35 in some sample applications
In the first sample K8055N35 is used as feed to a "sliding Queue" (data window) to display detail data in a 12 second timeslot.
Here is the code needed for board handling:
Snippet created with CBEnhancer
private void Window_Loaded(
object sender,
RoutedEventArgs e) {
InitGrid();
K8055XBoardHolder.Board0.AutoreadDelay = 200;
K8055XBoardHolder.Board0.Analog1InDelta = 5;
K8055XBoardHolder.Board0.UIDispatcher = Dispatcher;
K8055XBoardHolder.Board0.OnAnalog1Changed +=
new PublicDelegates.
OnDataDG(Board0_OnAnalog1Changed);
}
void Board0_OnAnalog1Changed(
K8055Input kData) {
AddDataPointNow(kData.Analog1);
}
Below is a screen shot of a dashboard for 4 USB Experiment Interface Boards -
K8055.
This (included with the product) sample is a window holding 4 User Controls for the USB Interface Boards.
The two lower controls (2 and 3) are greyed out (disabled) because there is no board connected to the PC.
This is done via binding:
Snippet created with CBEnhancer
<local:KBoard x:Name="Board0" Grid.Row="1" Grid.Column="1" IsEnabled="{Binding IsPresent}"/>
<local:KBoard x:Name="Board1" Grid.Row="1" Grid.Column="3" IsEnabled="{Binding IsPresent}"/>
<local:KBoard x:Name="Board2" Grid.Row="3" Grid.Column="1" IsEnabled="{Binding IsPresent}"/>
<local:KBoard x:Name="Board3" Grid.Row="3" Grid.Column="3" IsEnabled="{Binding IsPresent}"/>