• 0

Where can I find a sample CS project example that uses the WaveFormSDK?


concept

Question

1 answer to this question

Recommended Posts

  • 0

Hi @concept

Add the WFSDK/ samples/ cs/ dwf.cs to your project, see the WFSDK/manual and /samples/py

image.png.2ced82e4802762f832eddd364187f7d4.png

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            
            int hdwf;
            if (dwf.FDwfDeviceOpen(-1, out hdwf)==0) {
                Console.WriteLine("failed to open device");
                return;
            }
            Console.WriteLine("connected");
            //...
            Console.WriteLine("diconnecting");
            dwf.FDwfDeviceCloseAll();
        }
    }
}

 

Edited by attila
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now