Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ and ASP.NET

Hi Chuck,

Have you tried including the NI-DAQmx class libraries to your ASP.net website as references? I would recommend taking a look at the .NET examples that ship with NI-DAQmx to see how to use the class libraries, and then implement similar code for your website. If you run into any specific errors or roadblocks while trying to implement the website, please do not hesitate to post your questions in a thread here.
Daniel Dorroh
National Instruments
0 Kudos
Message 11 of 12
(2,939 Views)

Hi, Chuck

 

I threw together a quick example by splicing our UI.WebForms.Examples.2012 example with one of our .NET shipping examples for NI-DAQmx. I've attached it to this post. If you run the website and click the NI-DAQmx Graph option in the Examples tree, you will see a simple Measurement Studio WebForms Waveform graph with a button labeled Plot DAQ Data. This will attempt to read the first analog input channel from a DAQ card named "Dev1" (as configured in NI MAX). You can simulate a DAQ card to try this example.

 

The demo plots 50 samples to the Waveform graph, and the result looks something like the following image:

 

DAQASP.png

 

If you have any questions, please let me know!

 

Thanks,

Daniel Dorroh
National Instruments
0 Kudos
Message 12 of 12
(2,934 Views)