Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading analog input c# - NI USB-6008

Hello everyone!

How can I read some information such as frequency from ni usb 6008?

I going to create oscilloscope.

I have Visual Studio 2012 and Measurement Studio addition to VS2012.

I found some solutions like this: http://www.youtube.com/watch?v=mItGQvRKEsc

There are only wavegraph and gauge controls - ok, but how do it connect with the device?

Need I a DAQmx library?

Sorry for my english 😞

0 Kudos
Message 1 of 5
(10,265 Views)

Hi 26600!

 

Wellcome on NI forums!

 

First of all you have to download and install the NI DAQmx driver. The lates version is here: http://joule.ni.com/nidu/cds/view/p/id/3811/lang/hu

This is a quite big package of drivers, because it support all of our DAQ devices. Sadly you can not choose, that you install support for only one device. With the driver all the functions, and dlls that you need for programming are installed as well. 

In the installer please tka care on selecting Visual Studio support and Examples as weel. With the examples you can easily create your application and learn how to program NI DAQmx devices.

 

If you have any questions, please feel free to post them.

 

BR, 

CLA, CLED
Message 2 of 5
(10,245 Views)

Thank you vey much for your reply!

I hope it will work 🙂

0 Kudos
Message 3 of 5
(10,242 Views)

Hello again! 

I have next problem 😞 ,

when i connect the device to laptop (via USB) ,run "DataSocket Reader" from examples( MS for VS2012)and click Connect I see Status:Error: Not Connected: Connection refused. No application on the host machine to service the connection. 

Do you know why that is?

If i run "DataSocket WRITER" program had connected with the device, but the "Wave form graph" is behave..weird - like randomly. (but it was connected).

0 Kudos
Message 4 of 5
(9,993 Views)

Hi

I have download the DAQmx 9.7 dirver and installed it, The example of "Measure Frequency" is for SCXI1126 device, I want to use NI 6008/6009 to measure frequency, How can I do ?

Tips: If i run the example of "Measure Frequency" is for SCXI1126 device,

The error:

Selected physical channel does not support the measurement type required by the virtual channel you are creating.

Create a channel of a measurement type that is supported by the physical channel, or select a physical channel that supports the measurement type.

Property: NationalInstruments.DAQmx.AIChannel.MeasurementType
Requested Value: NationalInstruments.DAQmx.AIMeasurementType.Frequency
You Can Select: NationalInstruments.DAQmx.AIMeasurementType.Current, NationalInstruments.DAQmx.AIMeasurementType.Resistance, NationalInstruments.DAQmx.AIMeasurementType.StrainGage, NationalInstruments.DAQmx.AIMeasurementType.BuiltInTemperatureSensor, NationalInstruments.DAQmx.AIMeasurementType.Rtd, NationalInstruments.DAQmx.AIMeasurementType.Thermistor, NationalInstruments.DAQmx.AIMeasurementType.Thermocouple, NationalInstruments.DAQmx.AIMeasurementType.Voltage, NationalInstruments.DAQmx.AIMeasurementType.VoltageCustomWithExcitation

Task Name: _unnamedTask<0>

Status Code: -200431

0 Kudos
Message 5 of 5
(9,458 Views)