Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple read of Digital i/o on 6008 winth C#

hey all.. 
can I wiht no use of messurementstudio read simple digital i/o and analog values from the 6008 ?
 
 
plz codeexample  (using DAQmx or ?)
 
best regards Johnny Koch DK
0 Kudos
Message 1 of 3
(3,727 Views)

found the examples in C:\Program files\National Instruments\MeasurementStudioVS2005\DotNET\Examples\DAQmx\Digital\Read Values, but no deviece are found with

physicalChannelComboBox.Items.AddRange(

DaqSystem.Local.GetPhysicalChannels(PhysicalChannelTypes.DILine, PhysicalChannelAccess.External));

help...

0 Kudos
Message 2 of 3
(3,723 Views)
Hi Johnny,
If you open your MAX(Measurement & Automation Explorer), you will see your USB-6008 under "Devices and Interfaces->NI-DAQmx Devices" as NI USB-6008: "DevX". Where X=1,2,3.....
 
Let's run the example from:
C:\Program Files\National Instruments\MeasurementStudioVS2005\DotNET\Examples\DAQmx\Digital\Read Values\ReadDigChan\Cs
Because my USB-6008 is "Dev2"--> I changed to "Dev2/port0/line0:7" under Channel Parameters, and I'm now able to read from Digital port0/line:0:7.
 
Regards
 
 
-----------------------------------------------------
Dennis Morini
District Sales Manager
National Instruments Denmark
http://www.ni.com/ask
0 Kudos
Message 3 of 3
(3,705 Views)