not running .Net C # - copy the code on Labview.

Post your .Net discussions here
Post Reply
verter
Newbie
Posts: 0
Joined: Mon Nov 24, 2014 4:21 pm

not running .Net C # - copy the code on Labview.

Post by verter » Tue Nov 25, 2014 12:20 pm

computer translation
not running .Net C # - copy the code on Labview.

digital oscilloscope (PicoScope 3425). There are 2 examples from the developer, 1st driver - for LV, 2nd - C #. In LV everything works well, try to test this same driver in C #, the three functions are successful, the 4th shut up, I can not find a mistake, do not understand what you need to understand? All inputs attach an attachment. C # tested in Visual Studio 2010 express, LabView 2011. For clarity, attach pictures, slices observed, where he works, and where not.
Attachments
ps3000_c.zip
cod Visual Studio 2010 express C#
(177.26 KiB) Downloaded 182 times
ps_lv.jpg
ps_c#.jpg

verter
Newbie
Posts: 0
Joined: Mon Nov 24, 2014 4:21 pm

Re: not running .Net C # - copy the code on Labview.

Post by verter » Wed Nov 26, 2014 6:36 am

solution

Code: Select all

static void Main(string[] args)
        {
            
            short handle = ps3000_open_unit();
           

           ps3000_set_channel(handle, Channel.ChannelA, true, Coupling.AC, Range.Range1V);
           ps3000_set_trigger2(handle, Channel.ChannelA, 0, TriggerThresholdDirection.Rising, 0, 0);
           ps3000_set_ets(handle, EtsMode.Off, 0, 0);
           ps3000_run_streaming_ns( handle, 1, TimeUnits.MilliSeconds, 1000000, true, 10, 25000);

           Console.WriteLine(handle);

        }
thanks for the help

Post Reply