Hi Thomas,
The DDK is a set of reference examples for writing a device driver from scratch. Since most write-it-yourselfers expect to be running in an uncommon environment (where LabVIEW cannot run) or need to undergo some kind of final validation or peer review (where not everyone may have LabVIEW available), a text-based implementation provides them a faster "see how it works" starting point for those purposes.
When programming for the 6230 from LabVIEW, you have a few options available.
- You can use the existing C++ chip objects in the DDK but manipulate them into a shared library (a .so) so that you can call the Library Function Node in LabVIEW [1].
- You can use the register I/O palette [2] in VISA and transcribe the C++ chip objects into LabVIEW.
- Expand the DAQmx Base driver [3] to make the extra RLP calls for the 623x (explained below).
All three are somewhat challenging, and you will also need some additional information about the specifics of programming for the 623x sub-family. Since they have isolated IO, some of the registers are re-purposed for enabling and disabling the isolators. There are several threads in this forum [4] about the 623x-specific calls that need to be made.
If you choose to exapand the DAQmx Base driver, you will find that a bug in the code will make the system think your 6230 is a 6222 [5]. In addition the 623x-specific RLP calls, you'll need to correct and differentiate the 6230 from the other M Series boards.
[1] Call Library Function Node -- LabVIEW Help
http://zone.ni.com/reference/en-XX/help/371361G-01/glang/call_library_function/
[2] Register Access Functions -- VISA Help
http://zone.ni.com/reference/en-XX/help/371361G-01/lvinstio/high_level_reg_acc_func/
[3] DAQmx Base 3.4 for Linux
http://joule.ni.com/nidu/cds/view/p/id/2128/lang/en
[4] 623x RLP Considerations
http://forums.ni.com/t5/forums/searchpage/tab/message?location=Node%3A90&q=623x#message-list
[5] DAQmx Base 3.4 incorrectly attaches to the 6230
http://decibel.ni.com/content/message/20827#20827
Joe FriedchickenNI Configuration Based Software |
---|
Get with your fellow OS users [ Linux ] [ macOS ] | Principal Software Engineer :: Configuration Based Software Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018) Software Engineer :: Measurements RLP Group (until Mar 2014) Applications Engineer :: High Speed Product Group (until Sep 2008) |