From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-15-2014 10:24 AM
I am interested in monitor over current and status of the DO channel. I am using NI 9476 module in cDAQ-9178 chassis. My development environment is visual studio (.net). I found kind of an example in labview. I am able to set DO fine just want to check the status (ON/ OFF or Over-current state).
Thanks
01-16-2014 01:31 PM
K-Man,
I do not have strong knowledge in using DAQmx in .NET languages, but searching around I did find some initial info for you to look at (if you haven’t already come across these yourself). After I found the properties in LabVIEW, I just searched the site with “overcurrent .NET” and found some initial starting points. Hopefully this gets you started in the right direction.
01-17-2014 08:59 AM
Hi Wayne:
Thanks a lot for the help, I think I have figured out and implemented overcurrent code. Have not tested it yet, code snippet below.
However, I still need to find out state of my digital outputs i.e. whether they are On or OFF state.
if(digitalWriteTask.Stream.ReadOvercurrentChannelsExist == true)
{
string[] OverCurrentChannels = digitalWriteTask.Stream.ReadOvercurrentChannels;
Console.WriteLine("Class NI, NISetDO: Over Current Detected");
foreach (String overCurrentChannel inOverCurrentChannels)
Console.WriteLine("overCurrent detected on channel"+ overCurrentChannel);
}
01-20-2014 03:13 PM
K-Man,
I looked at the DAQmx channel properties list, linked here if you want to browse to the DO (digital output) settings. There isn't any property to monitor the actual state of the line.
http://zone.ni.com/reference/en-XX/help/370469AB-01/daqmxprop/daqmxchannel/
01-25-2014 09:24 PM