06-15-2009 12:26 PM
06-17-2009 10:11 AM
Hi programma,
perhaps this may help you:
http://zone.ni.com/devzone/cda/epd/p/id/5296
http://zone.ni.com/devzone/cda/epd/p/id/523
The first one is about how to measure resistance with DMM
and the second includes an example of how to measure DC voltage
with DMM in c#
06-23-2009 06:23 AM
Hi!
I tried to initialize the resistance channel with the following code:
private void button1_Click(object sender, EventArgs e) { Task myTask = new Task(); try { myTask.AIChannels.CreateResistanceChannel("DAQ::1:INSTR", "", 1.0, 200000.0, AIResistanceConfiguration.TwoWire, AIExcitationSource.None, 0.0, AIResistanceUnits.Ohms); myTask.Control(TaskAction.Verify); AnalogSingleChannelReader myAnalogReader = new AnalogSingleChannelReader(myTask.Stream); } catch (DaqException exception) { myTask.Dispose(); MessageBox.Show(exception.Message); }
But I don't know which device name i should use? I tried "DAQ::1:INSTR", "DEV0", "DEV1"..... I can't find any information about the device name...
06-25-2009 08:24 AM
Hi
If you go to -> Start -> Programs -> National Instruments -> NI-DMM -> DMM Soft Frontpanel
You can test your DMM. And there is also shown the device name.
I used a PCI-4060 here and the device name is DAQ::1