National Instruments 373392C-01 Uživatelský manuál Strana 128

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 179
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 127
Chapter 5 Getting Started with Measurement Studio
Measurement Studio User Manual 5-24 ni.com
7. Select NetworkVariable Communication Library. Click Finish.
8. In
Program.cs, add the following code to write an array of data to the
server:
Note You should choose the appropriate code depending on whether you created a VB or
C# project.
[VB.NET]
Imports System
Imports System.Collections.Generic
Imports System.Text
Imports System.Threading
Imports NationalInstruments.NetworkVariable
Module Module1
Private Function GenerateDoubleArray(ByVal phase As Double) As Double()
Dim values(999) As Double
Dim x As Integer
For x = 0 To 999
values(x) = Math.Sin(((2 * Math.PI * x) / 1000) + phase) * 2
Next x
Zobrazit stránku 127
1 2 ... 123 124 125 126 127 128 129 130 131 132 133 ... 178 179

Komentáře k této Příručce

Žádné komentáře