09-09-2013 09:12 AM
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
09-09-2013 01:15 PM
Where can I find sample code to control the relay portion of the 6525?
09-09-2013 04:24 PM
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.
09-17-2013 10:50 AM
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.
I
09-20-2013 07:37 AM
I have not received a reply to this question.
09-23-2013 10:51 AM
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.
03-20-2018 04:47 PM
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,
03-21-2018 12:49 PM
You should create a new thread.
But here is this KB with the steps https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019Ma3SAE
03-21-2018 01:04 PM
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.