Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Where to find .NET samples and how to get DAQmx installed as a VS 2010 reference?

The problem is that your device is not an NI Switch device, just a relay.  Our switches use a specific API that is not compatible with our standard devices.  This is why the code located in the Switches Example folder won't run with your device.  You should be able to modify the other examples we discussed in order to accomplish what you need though.

 

Please let us know if there's anything else we can do, and if this is highly time sensitive I suggest you call our Support Line at 866-275-6964

Mason M
Applications Engineer
National Instruments
0 Kudos
Message 11 of 19
(2,062 Views)

Where can I find sample code to control the relay portion of the 6525?

0 Kudos
Message 12 of 19
(2,058 Views)

Our relays are controlled with digital logic, here's an article that describes how they are controlled using our API's:

 

http://digital.ni.com/public.nsf/allkb/515BD99CD2AF31EA8625724C0061F342

 

You can write boolean true or false to open the individual relays.  You can start with the WriteDigPort or our other examples and build from there.

Mason M
Applications Engineer
National Instruments
0 Kudos
Message 13 of 19
(2,049 Views)

Thank you. I have that portion of the code working now.

 

I am trying to use the rising edge of Port1 Line0 to trigger an event in code (I have hardware pass and fail buttons on the test fixture), but the sample code "ReadDigChan_ChangeDetection_Events" is not working. The program shows all the digital ports on both the 6525 and two 6008s but gives me the error "Requested value is not a supported value for this property" regardless of which port I choose.

 

0 Kudos
Message 14 of 19
(2,013 Views)

I have not received a reply to this question.

0 Kudos
Message 15 of 19
(1,981 Views)

Hello ManiacFL

 

The USB-6008 does not support "change detection events". The USB-6525 does.

Which NI DIO Devices Support Change Detection?

 

I tested the example "ReadDigChan_ChangeDetection_Events" and it worked in port 1 for the 6525.

 

Regards

Frank R.

0 Kudos
Message 16 of 19
(1,961 Views)

Where did you find the DAQmx dll?  I am having problems with my references.  My program cannot locate;

NationalInstruments.Common

NationalInstruments.DAQmx

NationalInstruments.UI

NationalInstruments.UI.WindowsForms

 

I cannot figure out where to get these correct reference dlls from.

 

Thanks,

 

0 Kudos
Message 17 of 19
(1,263 Views)

You should create a new thread.

But here is this KB with the steps https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019Ma3SAE

0 Kudos
Message 18 of 19
(1,249 Views)

Thank you for the response.  I actually just got off the phone with NI support and they walked me through that exact process and it worked out.  Thank you for the info though, much appreciated.

0 Kudos
Message 19 of 19
(1,247 Views)