compactrio (fpga interface)access the ni-rio readme on the ni-rio installation cd. software support...

697
CompactRIO™ Reference and Procedures (FPGA Interface) June 2008, 370984N-01 Use this book as a reference for information about which FPGA I/O functions , I/O resources, arbitration options, methods, and properties each C Series module supports. This book also includes instructions for using LabVIEW with CompactRIO devices. To view related topics, click the Locate button, shown at left, in the toolbar at the top of this window. The LabVIEW Help highlights this topic in the Contents tab so you can navigate the related topics. To comment on National Instruments documentation, refer to the National Instruments Web site . © 2004–2008 National Instruments Corporation. All rights reserved.

Upload: others

Post on 01-Apr-2020

26 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CompactRIO™ReferenceandProcedures(FPGAInterface)June2008,370984N-01UsethisbookasareferenceforinformationaboutwhichFPGAI/Ofunctions,I/Oresources,arbitrationoptions,methods,andpropertieseachCSeriesmodulesupports.ThisbookalsoincludesinstructionsforusingLabVIEWwithCompactRIOdevices.

Toviewrelatedtopics,clicktheLocatebutton,shownatleft,inthetoolbaratthetopofthiswindow.TheLabVIEWHelphighlightsthistopicintheContentstabsoyoucannavigatetherelatedtopics.

TocommentonNationalInstrumentsdocumentation,refertotheNationalInstrumentsWebsite.©2004–2008NationalInstrumentsCorporation.Allrightsreserved.

Page 2: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CompactRIORelatedDocumentation(FPGAInterface)CompactRIOincludesthefollowingdocumentation.

Page 3: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HelpResourcesLabVIEWHelp—UsethishelpfiletoaccessreferenceinformationaboutCSeriesmodulesandinstructionsforusingLabVIEWwithCompactRIOdevices.UsingtheContentstab,navigatetoFPGAModule»CompactRIOReferenceandProcedures.YoucanfindhelptopicsforthemoduleyouareusingbynavigatingontheContentstabtoFPGAModule»CompactRIOReferenceandProcedures»ModuleType»NI9xxx.Measurement&AutomationExplorer(MAX)HelpforCompactRIO—UsethishelpfiletoaccessinstructionsforconfiguringtheCompactRIOcontrollerandenablingthecRIO-910xReconfigurableEmbeddedchassisforusewithLabVIEW.AfteryoulaunchMAX,selectHelp»MAXHelpandnavigatetoMeasurement&AutomationExplorerHelp»InstalledProducts»MAXHelpforCompactRIOontheContentstab.

Page 4: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

PDFDocumentsThesedocumentsareavailableasPDFsintheCompactRIO\manualsdirectory.Thelatestversionsofthesedocumentsareonlineatni.com/manuals.YoumusthaveAdobeReaderwithSearchandAccessibility5.0.5orlaterinstalledtoviewthePDFs.YoumusthaveAdobeReaderwithSearchandAccessibility6.xorlaterinstalledtosearchPDFversionsofthesemanuals.RefertotheAdobeSystemsIncorporatedWebsitetodownloadAcrobatReader.

CompactRIORSeriesExpansionSystemInstallationInstructions—UsetheseinstallationinstructionstolearnhowtoinstallthecRIO-9151RSeriesExpansionchassis.CompactRIOReconfigurableEmbeddedSystemInstallationInstructions—UsetheseinstallationinstructionstolearnhowtoinstallthecRIO-910xReconfigurableEmbeddedchassis.CompactRIOcRIO-9002/9004OperatingInstructions—Usetheseoperatinginstructionstolearnhowtoconnectthecontrollertothenetworkandusethefeaturesofthecontroller.CompactRIOcRIO-9012/9014OperatingInstructionsandSpecifications—Usetheseoperatinginstructionstolearnhowtoconnectthecontrollertothenetworkandusethefeaturesofthecontroller.CompactRIOcRIO-9052OperatingInstructions—Usetheseoperatinginstructionstolearnhowtoconnectthecontrollertothenetworkandusethefeaturesofthecontroller.CompactRIOcRIO-9072/9074OperatingInstructionsandSpecifications—Usetheseoperatinginstructionstolearnhowtoconnecttheintegratedchassis/controllertothenetworkandusethefeaturesoftheintegratedchassis/controller.GettingStartedwithCompactRIOandLabVIEW—UsethistutorialtolearnhowtodevelopaCompactRIOapplicationinLabVIEW.Whiledevelopingtheapplication,youcanlearnconceptsandtechniquesthatyoucanapplywhenyoudevelopyourownCompactRIOapplication.Thistutorialisavailableonlineatni.com/manuals.NI9xxxOperatingInstructionsandSpecifications—UsetheoperatinginstructionsfortheCSeriesmoduletolearnabout

Page 5: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

modulespecificationsandhowtousethemodule.Forexample,usetheNI9403OperatingInstructionsandSpecificationstolearnabouttheNI9403.

Page 6: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ReadmeDocumentsNI-RIOReadme—Usethisfiletolearnimportantlast-minuteinformationaboutNI-RIO,includinginstallationinstructionsanddescriptionsofknownissuesforinstallingandusingNI-RIO.AccesstheNI-RIOReadmeontheNI-RIOinstallationCD.SoftwareSupportforCompactRIO,CompactDAQ,andRSeriesDevices—UsethisNIDeveloperZonedocumenttodeterminewhatversionsoftheNI-RIOsoftware,theLabVIEWReal-TimeModule,andtheLabVIEWFPGAModuleyouneedfortheCSeriesmodules,CompactRIOchassis,CompactRIOcontrollers,Single-BoardRIOdevices,andRSeriesdevicesyouareusing.

Page 7: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

SearchingPDFVersionsofCompactRIOManuals(FPGAInterface)UseAdobeReaderwithSearchandAccessibility6.xorlatertosearchPDFversionsofalltheCompactRIOmanuals.RefertotheAdobeSystemsIncorporatedWebsitetodownloadAcrobatReader.CompletethefollowingstepstosearchallthePDFversionsofCompactRIOmanuals.

1. InAdobeReader,selectEdit»SearchtodisplaytheSearchPDFwindow.

2. EnterawordorphraseintheWhatwordorphrasewouldyouliketosearchfortextbox.

3. ClicktheAllPDFDocumentsinbuttonandselectBrowseforLocationfromthedrop-downlist.TheBrowseforFolderdialogboxappears.

a. NavigatetotheCompactRIO\manualsdirectory.b. ClicktheOKbuttontoclosethedialogboxandreturnto

theSearchPDFwindow.4. ClicktheSearchbutton.

RefertotheAdobeReaderHelpformoreinformationaboutsearchingallthePDFdocumentsinadirectoryforawordorphrase.

Page 8: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsingCompactRIOandSingle-BoardRIO(FPGAInterface)UsethisbookasareferenceforinformationaboutusingLabVIEWwithCompactRIOandSingle-BoardRIO(sbRIO)devices.

NoteCSeriesmodulescantakeupto2secondstoinitializeafteryouresettheFPGAVI.

Toviewrelatedtopics,clicktheLocatebutton,shownatleft,inthetoolbaratthetopofthiswindow.TheLabVIEWHelphighlightsthistopicintheContentstabsoyoucannavigatetherelatedtopics.

Page 9: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CSeriesModuleIDs(FPGAInterface)YoucanusetheModuleIDpropertywiththeFPGAI/OPropertyNodetoreadtheIDsassociatedwiththeCSeriesmodules.

Page 10: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ByIDID Module

0x709C NI94350x709D NI94110x709E NI94230x709F NI9421withscrewterminal0x70A0 NI94740x70A1 NI9472withscrewterminal0x70A2 NI94810x70A3 NI92110x70A4 NI92010x70A5 NI92210x70A6 NI9215withscrewterminal0x70A7 NI9263withscrewterminal0x70A8 NI92330x7129 NI92030x712A NI9205withDSUB0x712B NI92170x712C NI92650x712E NI9421withDSUB0x712F NI94250x7130 NI94010x7131 NI94030x7132 NI9472withDSUB0x7133 NI94760x7134 NI98020x7135 NI9215withBNC0x714F NI98530x71C2 NI9239withscrewterminal

Page 11: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

0x71C3 NI9237withRJ-500x71CA NI94220x71CB NI94770x71EA NI9205withspringterminal0x71EB NI92060x71ED NI95050x71F3 NI98520x71F6 NI94850x72B5 NI92340x72F6 NI92640x72FD NI9229withscrewterminal0x7305 NI98700x7306 NI98710x730C NI9219withspringterminal0x731A NI94780x7328 NI94020x732A NI92350x732B NI92360x7367 NI9239withBNC0x7368 NI9229withBNC0x7369 NI9263withBNC0x736A NI94260x736F NI9219withLEMO0x7377 NI94750x7383 NI92250x73A3 NI92130x73A4 NI9237withDSUB

Page 12: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ByModuleModule ID

NI9201 0x70A4NI9203 0x7129NI9205withDSUB 0x712ANI9205withspringterminal 0x71EANI9206 0x71EBNI9211 0x70A3NI9213 0x73A3NI9215withBNC 0x7135NI9215withscrewterminal 0x70A6NI9217 0x712BNI9219withLEMO 0x736FNI9219withspringterminal 0x730CNI9221 0x70A5NI9225 0x7383NI9229withBNC 0x7368NI9229withscrewterminal 0x72FDNI9233 0x70A8NI9234 0x72B5NI9235 0x732ANI9236 0x732BNI9237withDSUB 0x73A4NI9237withRJ-50 0x71C3NI9239withBNC 0x7367NI9239withscrewterminal 0x71C2NI9263withBNC 0x7369NI9263withscrewterminal 0x70A7NI9264 0x72F6

Page 13: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9265 0x712CNI9401 0x7130NI9402 0x7328NI9403 0x7131NI9411 0x709DNI9421withDSUB 0x712ENI9421withscrewterminal 0x709FNI9422 0x71CANI9423 0x709ENI9425 0x712FNI9426 0x736ANI9435 0x709CNI9472withDSUB 0x7132NI9472withscrewterminal 0x70A1NI9474 0x70A0NI9475 0x7377NI9476 0x7133NI9477 0x71CBNI9478 0x731ANI9481 0x70A2NI9485 0x71F6NI9505 0x71EDNI9802 0x7134NI9852 0x71F3NI9853 0x714FNI9870 0x7305NI9871 0x7306

Page 14: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CompactRIODiscoveryStatusDialogBox(FPGAInterface)WhenyouaddaCompactRIOcontrollerorchassisoraSingle-BoardRIOdevicetoaLabVIEWproject,LabVIEWfindsallCSeriesmodulesinthenewsystem.ThisdialogboxappearswhenLabVIEWreturnserrorswhilelookingforCSeriesmodulesinstalledinthesystem.Thedialogboxlistsanyerrorsthatoccurduringthediscoveryprocess.TheDescriptionfieldofthedialogboxcontainsadetaileddescriptionofeachtypeoferrorcondition.

Page 15: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CompactRIOErrorCodes(FPGAInterface)TheFPGAI/OfunctionsandInvokeMethodfunctioncanreturnthefollowingerrorcodesforCompactRIO.

Code Description−65580 TheFPGApersonalityrunningontheRIOtargetdoesnothave

enoughspecialtydigitalresourcestosupportthismodule.−65537 Themodulethatwasdetectedisdifferentthanthemodulethat

wasexpected.Makesuretheslotthemoduleisconfiguredforinsoftwarematchesthephysicallocationofthemodule.

−65407 Toomanyspecialtydigitalslots.InScanInterfacemode,youcanconfigureonlytwoslotsforspecialtydigitalI/O.Ifyouwantmorespecialtydigitalslots,addanFPGAtargetunderthechassistoputthechassisinLabVIEWFPGAinterfacemode.

65000 Unabletomountdrive.Thegivendeviceiseithernotpresentornotrecognizableasamountabledevice.

65001 Nopartitionsfound.Thepartitiontableonthedeviceiscorruptorthedevicehaszeropartitionsonit.

65002 Invaliddrivehandle.Thegivenhandledoesnotrepresentanactivemounteddrive.

65003 Drivealreadymounted.Thegivendeviceisalreadymountedasadrive.

65004 Thechannel,slot,orconnectornumberyouwiredtothemethodinputisinvalid.ChangethemethodinputtomatchtheconfigurationoftheCompactRIOsystem.

65005 TheCSeriesmoduleatthespecifiedlocationdoesnotsupportTEDSorTEDSaccessisnotenabledforthemodule.

65006 Communicationwiththemoduletimedout.ThemoduleisbusyperforminganotheractionorLabVIEWisunabletocommunicatewiththemodule.

65007 NoTEDSsensorwasdetectedonthespecifiedchannel.MakesurethattheCSeriesmoduleandsensorareproperlyconnected.Makesurethespecifiedlocationmatchesthesensorlocation.

Page 16: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

65008 CompactRIOdoesnotsupporttheTEDSsensorconnectedtothischannel.

65009 ThePXItriggerthatyouhaveselectedtoreserveorunreserveisinvalid.ValidPXItriggersare0through7,inclusive.

65200 DIOLineAccessConflict.Invalidmoduleconfiguration.AsinglephysicalDIOlinecannotbeaccessedbymultipletypesofoutputnodeswhentheNumberofSynchronizingRegisters=0andanyoftheoutputaccessesisinaSingle-CycleTimedLoop.EitherchangethenumberofSynchronizingRegistersto1inthemodule'spropertiesdialog,oraccesstheresourceexclusivelyasaportoranindividualline,notboth.

65201 DuplicateTerminalsInTheSameNode.AnFPGAI/ONodehasduplicateterminals.DeletetheduplicateterminalfromtheI/ONode.

65202 DigitalResourceAccessConflict.ThedigitalI/OresourcecannotbeaccessedinaSingle-CycleTimedLoopfrombothaDigitalOutputfunctionandaDigitalPortOutputfunction.IfyouneedtoaccessthisresourceinaSingle-CycleTimedLoop,pleaseexclusivelyusejusttheDigitalOutputfunctionorDigitalPortOutputfunction,notboth.

65203 ModuleTimebaseConfigurationError.LabVIEWdetectedaninvalidconfigurationforanFPGAI/ONodethatcontainschannelsfromamodulewithaconfigurabletimebase.IfchannelsofmultiplemoduleswithaconfigurabletimebaseareinthesameFPGAI/ONode,makesureyouconfigurethemodulestosharethesametimebase.UsetheCSeriesModulePropertiesdialogboxtoconfigurethemoduletimebase.RefertotheLabVIEWHelpforinformationabouthowtosynchronizemultipleCSeriesmodules.

65204 DigitalResourceAccessConflict.ThedigitalI/OresourcecannotbeaccessedfrombothaDigitalOutputfunctionandaDigitalPortOutputfunctioniftheNeverArbitrateoptionisused.PleasechangethearbitrationoftheDigitalLineand/orDigitalPorttosomethingotherthanNeverArbitrate,orexclusivelyusejusttheDigitalOutputfunctionorDigitalPortOutputfunction,notboth.

Page 17: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

65205 InvalidCSeriesModuleConfiguration.Possiblereasonsfortheinvalidconfigurationincludethatthemastertimebasesourcemoduleisunabletobeidentified,themastertimebasesourcemoduleisnotconfiguredtoexportitstimebase,orthemastertimebasesourcemoduleisnotavalidmoduletype.UsetheCSeriesModulePropertiesdialogboxtoconfigurethemoduletimebase.RefertotheLabVIEWHelpforinformationabouthowtosynchronizemultipleCSeriesmodules.

65206 Invalidtop-levelclock.Youmustuseatop-levelclockof40MHzwhenusingthismodule.Tochangethetop-levelclock,rightclickonyourFPGAtargetintheLabVIEWProjectExplorerandselectproperties.FromtheTop-LevelClockcategory,choosea40MHzclock.

65207 ThedigitaloutputresourcecannotbeaccessedfrombothaDigitalOutputfunctionandaDigitalPortOutputfunction.PleaseexclusivelyusejusttheDigitalOutputfunctionorDigitalPortOutputfunction,notboth.

65208 ThecRIO-9151RSeriesExpansionchassisnolongersupportssynchronizingmultipleNI9225/9229/923xmodules.UsetheCSeriesModulePropertiesdialogboxtosetthemastertimebasesourceoftheslavemodule(s)totheonboardclock.Right-clickthemoduleintheprojectandselectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.ContactNationalInstrumentstechnicalsupportwithquestionsorconcerns.

65209 YoucannotwritetotheSleepchannelifyouareusingtheScanInterfacewithanymodulesinthesystem.

65400 TheFPGAtargetiseitherrunninganFPGAVIorhasloadedanFPGAVI.

65401 OneormorediscoveredCSeriesmodulesarenotsupportedbythecurrentversionsofLabVIEWandNI-RIO.

65402 AninternalsoftwareerrorinNI-RIOhasoccurred.PleasecontactNationalInstrumentstechnicalsupportatni.com/support.

65403 AnunexpectederroroccurredwhenDiscoveringCSeriesModules.MakesuretheLabVIEWProjectissetupproperly.

Page 18: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

65404 Thecontrolleryouselectedhasanunconfigured(0.0.0.0)IPaddress.Ifthecontrollerisonline,configureitinMeasurement&AutomationExplorer(MAX),thenmakesuretheIPaddressinLabVIEWmatchestheIPaddressinMAX.Ifitisoffline,youcannotdiscoverconnectedtargetsanddevices,butyoucanaddnew,offlinetargetsanddevices.

65405 Modulenotfound.Themodulewhoseconfigurationyoudeployedisnotpresentinthechassis.

65406 Differentmodule.Themodulewhoseconfigurationyoudeployeddoesnotmatchthemodelcurrentlyinthechassis.

65407 Toomanyspecialtydigitalslots.InScanInterfacemode,youcanconfigureonlytwoslotsforspecialtydigitalI/O.Ifyouwantmorespecialtydigitalslots,addanFPGAtargetunderthechassistoputthechassisinLabVIEWFPGAInterfacemode.

65536 Unabletocommunicatewiththemodule.Reinsertthemoduleandcheckconnections.

65537 Themodulethatwasdetectedisdifferentthanthemodulethatwasexpected.Makesuretheslotthemoduleisconfiguredforinsoftwarematchesthephysicallocationofthemodule.

65538 Theoperationfailedtocompleteintime.Makesurethemoduleisnotbusyandthesystemisconfiguredproperly.

65539 Theinputfunctionmissedoneormoredatapoints.Makesuretheloopcanexecuteasfastasthemoduledatarate.

65540 TheI/OResourceisnotincommunicationmode.Youmuststartcommunicationmodebeforeyoucanperformthisoperation.

65541 TheI/OResourceisincommunicationmode.Youmuststopcommunicationmodebeforeyoucanperformthisoperation.

65542 Oneormorechannelshavedetectedanopencurrentloop.Checkthemoduleconnections.

65543 Thepowersupplyvoltagelevelisoutofrange.Checkthesupplyvoltageandthemoduleconnections.

65544 Oneormorechannelsareinovercurrentprotectionmode.Thedeviceconnectedtothechannelispassingmorecurrentthanisallowedthroughthechannel.Checkforpossibleshortsorexternaldevicefailure.

Page 19: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

65545 Aninputparameter,oracombinationofparameters,isinvalid.65546 YourapplicationusesafeaturethatisnotsupportedbyyourC

Serieshardware.65547 ToomanyCANbuserrorframesaredetected.Pleasereferto

thedescriptionofthe'ErrorTerminals'formoreinformation.65548 Oneormorechannelsareinovercurrentorovervoltage

protectionmode.Checktheterminalsforanyfaultconditionthatcouldbecausinganout-of-rangevoltageorcurrentonthechannels.

65549 Ageneralorundefinederrorhasoccurred.Verifythatthecardisinsertedproperlyandthatthedoorisclosed.Iftheerroroccursagain,runCHKDSKonthecard.

65550 Aproblemwasfoundinthefilesystem.RemovetheSDcardandrunCHKDSK.

65551 TheSDcardisinusebyRT.TryagainafterRTunmountsthecard.

65552 TheSDcardisnotready.Verifythatthecardisinsertedproperlyandthatthedoorisclosed.

65553 TheSDcarddoorwasopenedwhileafileonthecardwasopen.

65554 Thespecifiedfiledoesnotexistonthecard.65555 TheOpenmethodtriedtoopenanewfileforwriting,butafile

withthesamenamealreadyexistsonthedisk.65556 AReadorWritemethodtriedtoaccessafilethatwasnot

openedintherequiredmode.65558 AClosemethodtriedtocloseafilethatwasnotopen.65559 AmethodtriedtoopenafileontheSDcardwhenafilewas

alreadyopen.Thisdevicesupportsonlyonefileopenatatime.ThiserrorisalsoreturnedwhenanillegalattempttocalltheDeleteFileorGetFileSizemethodismadewhenafileisopenonthecard.

65560 Anattempttoallocatestoragefailedbecausethefilesystemisfull.

Page 20: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

65561 Attemptedtoexceedthelimitof512rootdirectoryentries.65562 AReadmethodtriedtoreadbeyondtheendofafile.Thismay

haveoccurredwhenthemethodreadtheendofafileusingaU16orU32datatypewhentheactualnumberofbytesinthefile(asreportedbythedirectory)wasnotanintegermultipleofthenumberofbytesinthereaddatatype.

65563 AproblemwasfoundwiththeformatoftheSDcard.VerifythattheSDcardisformattedwithavalidFAT16filesystem.

65577 Anopenthermocouplewasdetectedonatleastonechannel.Checkthemoduleconnections.

65578 Thecommon-modevoltageisoutsideofacceptablelimitsonatleastonechannel.Checktheterminalsforanyfaultconditionthatcouldbecausinganout-of-rangevoltageonthechannels.

Page 21: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CompactRIOInterfaceMethods(FPGAInterface)InadditiontothemethodsdescribedintheInvokeMethodtopic,youcanusethefollowingmethodwiththeInvokeMethodfunctionforCompactRIOdevices.

ReadTEDS—ReadsTEDSinformationfromaCSeriesmodulethathasTEDSsupportenabled.

ConnectorspecifiestheconnectortowhichthecRIO-9151RSeriesExpansionchassisisconnected.ThisinputisavailableonlyiftheOpenFPGAVIReferencefunctionisconfiguredforanRSeriesdevice.Validvaluesare0through3fortheNI781xR,1or2fortheNI7831RandNI7833R,and1fortheNI7830R.

SlotspecifiesthechassisslotoftheCSeriesmodulefromwhichyouwanttoreadTEDSinformation.IftheslotdoesnothaveaCSeriesmodulethatsupportsthisfeature,LabVIEWreturnsanerror.Validvaluesare1throughN,whereNisthenumberofslotsinthechassis.

ChannelspecifiesthechannelonthemodulefromwhichyouwanttoreadTEDSinformation.Ifasensorisnotconnectedtothechannel,theInvokeMethodfunctionreturnsanerror.Validvaluesare0through3fortheNI9219,NI9233,NI9234,andNI9237.

TEDSBinaryrepresentstheTEDSinformationofthesensorconnectedtothespecifiedchannelinanarrayofbits.YoucanusetheTEDSToolkittoparsethisdata.

v0.9(TEDS)determineswhetherthesensorstoredintheTEDSisinthereleasedIEEE1451.4standardformatorinthelegacyversion(v0.9)format.v0.9returnsTRUEiftheTEDSisinthelegacyformat.TheTEDSToolkitVIsrequirethisoutputtoproperlyparseinformation.

MountSDCard—PreparesthefilesystemofanNI9802SDCardsoyoucanaccessthefilesusingtheFileI/OVIsandfunctions.YoumustusetheUnmountSDCardmethodtounmountthefilesystemafteraccessingfiles.

Page 22: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NoteTheFPGAVImustberunningfortheReal-TimeVItoaccesstheMountSDCardandUnmountSDCardmethods.YoucannotaccessanSDCardfromtheReal-TimeVIandtheFPGAVIatthesametime.

ModulespecifiesthechassisslotoftheNI9802module.IftheslotdoesnothaveanNI9802module,LabVIEWreturnsanerror.Validvaluesare1throughN,whereNisthenumberofslotsinthechassis.

CardSlotspecifiesthecardslotoftheSDCardwhichyouwanttoaccess.Validvaluesare0or1.

DriveHandlereturnsahandletothemounteddrive.WirethisoutputtotheDriveHandleinputoftheUnmountSDCardmethod.

DriveLetterreturnsthebasepathoftheSDCardfilesystemyoumounted.

NoteThecRIO-9002/9004controllerdoesnotsupportdriveletteraccess.

RefertotheNI9802RTAccessVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9802\NI9802RTAccessdirectoryforanexampleofusingthismethod.

Openexample

UnmountSDCard—UnmountstheSDCardfilesystemyoumountedintoadrive.Thismethodattemptstoexecuteeveniftheerrorinparametercontainsanerror.

DriveHandlespecifiesthedrivetounmount.

Page 23: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CompactRIOReconfigurableEmbeddedChassis(FPGAInterface)Auser-reconfigurableFPGAcontrolsthedigitalandanalogI/OlinesonthecRIO-910xReconfigurableEmbeddedchassisoftheCompactRIOEmbeddedsystem.TheFPGAchipisembeddedwithintheCompactRIOchassisandisconnectedtotheCSeriesI/Omodulesinastartopology,providingdirectaccesstoeachmoduleforprecisecontrolandflexibilityintiming,triggering,andsynchronization.YoucanconfiguretheCompactRIOsystemandchangethefunctionalityoftheFPGAontheCompactRIOchassisinLabVIEWusingtheLabVIEWFPGAModuleandNI-RIOtocreateanddownloadacustomVItotheFPGA.

Page 24: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringaProjectforaCompactRIORSeriesExpansionSystem(FPGAInterface)CompletethefollowingstepstoaddacRIO-9151RSeriesExpansionchassissystemtoaneworexistingproject.

NoteIfyouhavenotyetcreatedaLabVIEWproject,youalsocanusetheFPGAProjectWizardtocreateaprojectfortheCompactRIOsystem.

Page 25: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringaProjectwithConnectedHardwareCompletethefollowingstepstoconfiguretheprojectifyouhavehardwareinstalled.TheRSeriesExpansionchassismusthaveCSeriesmodulesinstalledandmustbeconnectedtoanRSeriesdeviceinstalledinthecomputer.RefertotheCompactRIORSeriesExpansionSystemInstallationInstructionsforinformationaboutinstallingthechassis.

1. Createanewprojectoropenanexistingproject.2. Right-clickMyComputerintheProjectExplorerwindowand

selectNew»TargetsandDevicesfromtheshortcutmenutodisplaytheAddTargetsandDevicesdialogbox.

3. SelecttheappropriateRSeriesdeviceunderRSeriesandclicktheOKbutton.LabVIEWaddsanFPGAtargetitemfortheRSeriesdevicetotheproject.

4. Right-clicktheFPGATargetfortheRSeriesdeviceintheProjectExplorerwindowandselectNew»RSeriesExpansionChassisfromtheshortcutmenutodisplaytheNewRSeriesExpansionChassisdialogbox.

5. SelecttheconnectortowhichtheRSeriesExpansionchassisisconnectedintheLocationpull-downmenu.

6. ChecktheDiscoverCSeriesmodulescheckboxandclicktheOKbutton.LabVIEWaddsitemsforthechassisandallinstalledCSeriesmodulestotheproject.LabVIEWalsoaddsFPGAI/OitemstotheprojectforallinstalledCSeriesmoduleI/O.

7. Right-clickamoduleitemintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutoconfiguremodule-specificsettingsintheCSeriesModulePropertiesdialogbox.Somemodulesdonothaveanysettingstoconfigureotherthanthemodulenameandchassisslotlocation.ClicktheHelpbuttonontheCSeriesModulePropertiesdialogboxforinformationaboutthemodulesettings.

Page 26: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringaProjectwithOfflineHardwareCompletethefollowingstepstoconfiguretheprojectifyoudonothavehardwareinstalled.

1. Createanewprojectoropenanexistingproject.2. Right-clickMyComputerintheProjectExplorerwindowand

selectNew»TargetsandDevicesfromtheshortcutmenutodisplaytheAddTargetsandDevicesdialogbox.

3. ClicktheNewtargetordeviceradiobutton,selecttheappropriateRSeriesdeviceunderRSeries,andclicktheOKbutton.LabVIEWaddsanFPGAtargetitemfortheRSeriesdevicetotheproject.

4. Right-clicktheFPGATargetfortheRSeriesdeviceintheProjectExplorerwindowandselectNew»RSeriesExpansionChassisfromtheshortcutmenutodisplaytheNewRSeriesExpansionChassisdialogbox.

5. ClicktheOKbutton.LabVIEWaddsachassisitemtotheproject.6. Right-clickthechassisitemintheProjectExplorerwindowand

selectNew»CSeriesModulesfromtheshortcutmenutodisplaytheAddTargetsandDevicesdialogbox.

7. ClicktheNewtargetordeviceradiobutton,selectCSeriesModule,andclicktheOKbuttontodisplaytheNewCSeriesModuledialogbox.

8. SelecttheappropriateCSeriesmodulefromtheModuleTypepull-downmenuandclicktheOKbutton.LabVIEWaddsamoduleitemandFPGAI/OitemsforthemoduleI/Ototheproject.

9. Repeatsteps6through8toaddadditionalCSeriesmodulestotheproject.

10. Right-clickamoduleitemintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutoconfiguremodule-specificsettingsintheCSeriesModulePropertiesdialogbox.Somemodulesdonothaveanysettingstoconfigureotherthanthemodulenameandchassisslotlocation.ClicktheHelpbuttonontheCSeriesModulePropertiesdialogboxforinformationaboutthemodulesettings.

Page 27: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringaProjectforaCompactRIOReconfigurableorIntegratedSystem(FPGAInterface)CompletethefollowingstepstoaddacRIO-910xReconfigurableEmbeddedsystemorcRIO-9072/9074Integratedcontrollerandchassissystemtoaneworexistingproject.

NoteIfyouhavenotyetcreatedaLabVIEWproject,youalsocanusetheFPGAProjectWizardtocreateaprojectfortheCompactRIOsystem.

Page 28: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringaProjectwithConnectedHardwareCompletethefollowingstepstoconfiguretheprojectifyouhavehardwareinstalled.ThecontrollermustbeattachedtoachassiswithCSeriesmodulesinstalled,connectedtothesamesubnetasthehostcomputer,andpoweredon.Refertothecontrolleroperatinginstructionsforinformationaboutinstallingthecontrolleronachassis,connectingthecontrollertoanetwork,andwiringpowertothecontroller.ThecontrolleralsomustbeconfiguredinMeasurement&AutomationExplorer(MAX).RefertotheMeasurement&AutomationExplorer(MAX)HelpforCompactRIOforinformationaboutconfiguringthecontroller.

1. Createanewprojectoropenanexistingproject.2. Right-clicktheprojectrootintheProjectExplorerwindowand

selectNew»TargetsandDevicesfromtheshortcutmenutodisplaytheAddTargetsandDevicesdialogbox.

3. SelecttheappropriatecontrollerunderReal-TimeCompactRIOandclicktheOKbutton.IfyouareusingacontrollerandchassisthataresupportedinScanInterfacemode,theSelectProgrammingModedialogboxappears.

4. IftheSelectProgrammingModedialogboxappears,selectLabVIEWFPGAInterfaceandclicktheContinuebuttontoputthesystemintoLabVIEWFPGAInterfacemode.

5. ClicktheDiscoverbuttonintheDiscoverCSeriesModules?dialogboxthatappears.LabVIEWaddsitemsforthecontroller,thechassis,theFPGAtarget,andallinstalledCSeriesmodulestotheproject.LabVIEWalsoaddsFPGAI/OitemstotheprojectforallinstalledCSeriesmoduleI/O.

6. Right-clickamoduleitemintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutoconfiguremodule-specificsettingsintheCSeriesModulePropertiesdialogbox.Somemodulesdonothaveanysettingstoconfigureotherthanthemodulenameandchassisslotlocation.ClicktheHelpbuttonontheCSeriesModulePropertiesdialogboxforinformationaboutthemodulesettings.

Page 29: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringaProjectwithOfflineHardwareCompletethefollowingstepstoconfiguretheprojectifyoudonothavehardwareinstalled.

1. Createanewprojectoropenanexistingproject.2. Right-clicktheprojectrootintheProjectExplorerwindowand

selectNew»TargetsandDevicesfromtheshortcutmenutodisplaytheAddTargetsandDevicesdialogbox.

3. ClicktheNewtargetordeviceradiobutton,selecttheappropriatecontrollerunderReal-TimeCompactRIO,andclicktheOKbutton.LabVIEWaddsanRTtargetitemforthecontrollertotheproject.

4. Right-clicktheRTCompactRIOTargetintheProjectExplorerwindowandselectNew»TargetsandDevicesfromtheshortcutmenutodisplaytheAddTargetsandDevicesdialogbox.

5. ClicktheNewtargetordeviceradiobutton,selecttheappropriatechassisunderCompactRIOChassis,andclicktheOKbutton.LabVIEWaddsachassisitemtotheproject.

NoteIfyouselectedthecRIO-9072/9074Integratedcontrollerinstep4,youmustselectthematchingcRIO-9072/9074Integratedchassisinthisstep.

6. Right-clickthechassisitemintheProjectExplorerwindowandselectNew»FPGATargetfromtheshortcutmenu.IfthechassistypeissupportedinScanInterfacemode,theDeployCompactRIOChassisSettings?dialogboxappears.ClicktheNobuttontoreturntotheproject.LabVIEWaddsanFPGAtargetitemforthechassistotheprojectandputsthesystemintoLabVIEWFPGAInterfacemode.

7. Right-clicktheFPGATargetintheProjectExplorerwindowandselectNew»CSeriesModulesfromtheshortcutmenutodisplaytheAddTargetsandDevicesdialogbox.

8. ClicktheNewtargetordeviceradiobutton,selectCSeriesModule,andclicktheOKbuttontodisplaytheNewCSeriesModuledialogbox.

9. SelecttheappropriateCSeriesmodulefromtheModuleTypepull-downmenuandclicktheOKbutton.LabVIEWaddsa

Page 30: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

moduleitemandFPGAI/OitemsforthemoduleI/Ototheproject.

10. Repeatsteps7through9toaddadditionalCSeriesmodulestotheproject.

11. Right-clickamoduleitemintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutoconfiguremodule-specificsettingsintheCSeriesModulePropertiesdialogbox.Somemodulesdonothaveanysettingstoconfigureotherthanthemodulenameandchassisslotlocation.ClicktheHelpbuttonontheCSeriesModulePropertiesdialogboxforinformationaboutthemodulesettings.

Page 31: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringaProjectforaSingle-BoardRIOReconfigurableSystem(FPGAInterface)CompletethefollowingstepstoaddaSingle-BoardRIO(sbRIO)ReconfigurableEmbeddedsystemtoaneworexistingproject.

NoteIfyouhavenotyetcreatedaLabVIEWproject,youalsocanusetheFPGAProjectWizardtocreateaprojectforthesbRIOsystem.

Page 32: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringaProjectwithConnectedHardwareCompletethefollowingstepstoconfiguretheprojectifyouhavehardwareinstalled.ThesbRIOdevicemustbeconnectedtothesamesubnetasthehostcomputerandpoweredon.RefertothesbRIOdevicemanualforinformationaboutconnectingthedevicetoanetworkandwiringpowertothedevice.ThesbRIOdevicealsomustbeconfiguredinMeasurement&AutomationExplorer(MAX).

1. Createanewprojectoropenanexistingproject.2. Right-clicktheprojectrootintheProjectExplorerwindowand

selectNew»TargetsandDevicesfromtheshortcutmenutodisplaytheAddTargetsandDevicesdialogbox.

3. SelecttheappropriatesbRIOdeviceunderReal-TimeSingle-BoardRIOandclicktheOKbutton.

4. ClicktheDiscoverbuttonintheDiscoverCSeriesModules?dialogboxthatappears.LabVIEWaddsitemsforthesbRIOdevice,theFPGAtarget,andallonboardandinstalledCSeriesmodulestotheproject.LabVIEWalsoaddsFPGAI/OitemstotheprojectforallonboardandinstalledCSeriesmoduleI/O.

5. Right-clickamoduleitemintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutoconfiguremodule-specificsettingsintheCSeriesModulePropertiesdialogbox.Somemodulesdonothaveanysettingstoconfigureotherthanthemodulenameandchassisslotlocation.ClicktheHelpbuttonontheCSeriesModulePropertiesdialogboxforinformationaboutthemodulesettings.

Page 33: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringaProjectwithOfflineHardwareCompletethefollowingstepstoconfiguretheprojectifyoudonothavehardwareinstalled.

1. Createanewprojectoropenanexistingproject.2. Right-clicktheprojectrootintheProjectExplorerwindowand

selectNew»TargetsandDevicesfromtheshortcutmenutodisplaytheAddTargetsandDevicesdialogbox.

3. ClicktheNewtargetordeviceradiobutton,selecttheappropriatesbRIOsystemunderReal-TimeSingle-BoardRIO,andclicktheOKbutton.LabVIEWaddsanRTtargetitemforthesbRIOdevicetotheproject.

4. Right-clickRTSingle-BoardRIOintheProjectExplorerwindowandselectNew»TargetsandDevicesfromtheshortcutmenutodisplaytheAddTargetsandDevicesdialogbox.

5. ClicktheNewtargetordeviceradiobutton,selecttheappropriatesbRIOsystemunderSingle-BoardRIO,andclicktheOKbutton.LabVIEWaddsanFPGAtargetitemforthesbRIOdeviceandFPGAI/OitemsforallonboardCSeriesmoduleI/Ototheproject.

NoteThesystemyouselectinthisstepmustbethesamesystemyouselectedinstep3.

6. Right-clicktheFPGATargetforthesbRIOdeviceintheProjectExplorerwindowandselectNew»CSeriesModulesfromtheshortcutmenutodisplaytheAddTargetsandDevicesdialogbox.

7. ClicktheNewtargetordeviceradiobutton,selectCSeriesModule,andclicktheOKbuttontodisplaytheNewCSeriesModuledialogbox.

8. SelecttheappropriateCSeriesmodulefromtheModuleTypepull-downmenuandclicktheOKbutton.LabVIEWaddsamoduleitemandFPGAI/OitemsforthemoduleI/Ototheproject.

9. Repeatsteps6through8toaddadditionalCSeriesmodulestotheproject.

10. Right-clickamoduleitemintheProjectExplorerwindowand

Page 34: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

selectPropertiesfromtheshortcutmenutoconfiguremodule-specificsettingsintheCSeriesModulePropertiesdialogbox.Somemodulesdonothaveanysettingstoconfigureotherthanthemodulenameandchassisslotlocation.ClicktheHelpbuttonontheCSeriesModulePropertiesdialogboxforinformationaboutthemodulesettings.

Page 35: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConvertingtheTemperatureofaCompactRIOChassisoraSingle-BoardRIODevice(FPGAInterface)TheFPGAI/ONodereturnsbinaryvaluesforthechassistemperature.Youcanconvertthesevaluesintomeaningfulengineeringunits.ToensurethattheFPGAVIisasefficientaspossible,convertthevaluesinthehostVI.

Page 36: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsingaVItoConvertValuesRefertothe910xTemperatureMonitor(FPGA)VIinthelabview\examples\CompactRIO\ChassisSpecific\910xTemperatureMonitor\910xTemperatureMonitor.lvprojforanexampleofconvertingbinaryvalues.Youcanusethe910xTemperatureMonitor(FPGA)VIasasubVIinthehostVItoconvertthevalues.Openexample

Page 37: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsinganEquationtoConvertValuesYoucanusethefollowingequationinthehostVItoconvertbinaryvaluestotemperature:Temperature=BinaryValue×0.25°Cwhere BinaryValueisthevaluereturnedbytheFPGAI/ONode.

Page 38: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

DownloadingtoFlashMemory(FPGAInterface)YoucandownloadaVIorbitfiletotheflashmemoryontheFPGAtargetusingoneofthefollowingmethods:

Right-clicktheVIyouwanttodownloadtoflashmemoryontheFPGAtarget,selectDownloadVItoFlashMemoryfromtheshortcutmenu,andclicktheYesbuttonontheConfirmDownloadingVItoFlashdialogboxthatappears.Right-clicktheFPGAtargettowhichyouwanttodownloadabitfileintheProjectExplorerwindowinLabVIEWandselectRIODeviceSetupfromtheshortcutmenutodisplaytheRIODeviceSetupdialogbox.RefertotheRIODeviceSetupHelp,availablebyclickingtheHelpbuttonontheRIODeviceSetupdialogbox,formoreinformationabouttheRIODeviceSetuputility.SelectStart»AllPrograms»NationalInstruments»NI-RIO»RIODeviceSetuptodisplaytheRIODeviceSetupdialogbox.Whenyoudisplaythedialogboxinthismanner,youmustselecttheFPGAtargettowhichyouwanttodownloadabitfilefromtheDevicepull-downmenu.RefertotheRIODeviceSetupHelp,availablebyclickingtheHelpbuttonontheRIODeviceSetupdialogbox,formoreinformationabouttheRIODeviceSetuputility.

Page 39: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

EnablingSleepModeonaCompactRIOChassisoraSingle-BoardRIODevice(FPGAInterface)ThecRIO-910xReconfigurableEmbeddedchassis,thecRIO-9072/9074Integratedcontrollerandchassis,andtheSingle-BoardRIO(sbRIO)deviceshaveasleepmodeline.Whenyouenablesleepmode,installedandonboardCSeriesI/Omodulesinthechassisordeviceenteralow-powerstate.Typically,youcannotcommunicatewithmoduleswhentheyareinsleepmode.Ifyoutrytocommunicatewithamodulewhenitisinsleepmode,LabVIEWreturnsamodulecommunicationserrorfromtheFPGAI/Ofunctions.SleepmodedoesnotaffecttheCompactRIOchassisorcontrollerorthesbRIOdevice.

NoteThecRIO-9151RSeriesExpansionchassisdoesnothaveasleepmodeline.

CompletethefollowingstepstoenablesleepmodeonacRIO-910xReconfigurableEmbeddedchassisoransbRIOdevice.

1. ConfiguretheCompactRIOorsbRIOsystem.2. MakesuretheSleepI/Oitemisaddedtothesystem.3. Right-clicktheFPGAtargetandselectNew»VIfromtheshortcut

menutoaddanewVItothesystem.4. PlaceanFPGAI/ONodeontheblockdiagramoftheVI.5. ClicktheelementsectionoftheFPGAI/ONodeandselect

ChassisI/O(orOnboardI/O)»Sleepfromtheshortcutmenu.6. Right-clicktheSleepinputoftheFPGAI/ONodeandselect

Create»Controlfromtheshortcutmenu.WhenSleepisTRUE,thesystementerssleepmode.WhenSleepisFALSE,thesystementersactivemode.Thedefaultstateofthesystemisactivemode.

Page 40: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfirmingtheStateoftheSleepChannelCompletethefollowingstepstoreadthestateoftheSleepchannel.

1. PlaceanotherFPGAI/ONodefunctionontheblockdiagram.ThisFPGAI/ONodemustexecuteaftertheFPGAI/ONodeyouaddedabove.

2. ClicktheelementsectionoftheFPGAI/ONodeandselectChassisI/O(orOnboardI/O)»Sleepfromtheshortcutmenu.

3. Right-clicktheFPGAI/ONodeandselectChangetoReadfromtheshortcutmenu.

4. Right-clicktheSleepoutputoftheFPGAI/ONodeandselectCreate»Indicatorfromtheshortcutmenu.

WhenyouruntheVI,theFPGAI/ONodereadsthestateoftheSleepchannel.

Page 41: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NewCSeriesModuleDialogBox(FPGAInterface)Right-clickthechassisintheProjectExplorerwindowandselectNew»CSeriesModulesfromtheshortcutmenutodisplaytheAddTargetsandDevicesdialogbox.SelectNewtargetordevice,selectCSeriesModule,andclicktheOKbuttontodisplaytheNewCSeriesModuledialogbox.Usethisdialogboxtoselectamodulename,thetypeofmodule,andthechassisslotinwhichthemoduleisinstalled.Thisdialogboxincludesthefollowingcomponents:

Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmoduleyouwanttoaddtothechassisintheProjectExplorerwindow.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.

Page 42: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NewRSeriesExpansionChassisDialogBox(FPGAInterface)Thisdialogboxappearswhenyouright-clickanRSeriesdeviceintheProjectExplorerwindowandselectNew»RSeriesExpansionChassisfromtheshortcutmenu.UsethisdialogboxtoenteranameforthecRIO-9151RSeriesExpansionchassisandselecttheconnectortowhichitisinstalled.

Name—Youcanusethistextboxtoenteranameforthechassis.Location—Youcanusethispull-downmenutoselecttheconnectortowhichthechassisisconnected.DiscoverCSeriesmodules—PlaceacheckmarkinthischeckboxifyouwantLabVIEWtofindallCSeriesmodulesinstalledinthechassis.DonotcheckthischeckboxifyoudonothaveanexpansionchassisinstalledtotheconnectorselectedintheLocationpull-downmenu.

Page 43: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI-RIOFPGACommunicationsFrameworkErrorCodes(FPGAInterface)TheFPGAInterfacefunctionscanreturnthefollowingerrorcodesforNI-RIODevices.

Code Description−63198 Thesystemhasrunoutofresources.Closeasessionandretry

theoperation.−63197 Aninvalidattributevaluehasbeenspecified.−63196 Aninvalidattributehasbeenspecified.−63195 Thehandlefordevicecommunicationisinvalidorhasbeen

closed.Restarttheapplication.−63194 TheNI-RIOsoftwareontheremotesystemisnotcompatible

withthelocalNI-RIOsoftware.UpgradetheNI-RIOsoftwareontheremotesystem.

−63193 Therequestedfeatureisnotsupported.−63192 EitherthesuppliedresourcenameisinvalidasaRIOresource

name,orthedevicewasnotfound.UseMAXtofindtheproperresourcenamefortheintendeddevice.

−63189 Thesuppliedsearchpatternisinvalid.−63188 Theoperationisnolongersupported.−63187 Thisremotesystemdoesnotsupportconnectionstoother

remotesystems.−63183 Aninvalidportwasspecified.TheRIOserverportmustbe

between0and65535,where0indicatesadynamicallyassignedport.Port3580isreservedandcannotbeused.

−63182 Aninvaliddeviceaccesssettingwasspecified.RIOdeviceaccesspatternsmaycontainonlyalphanumerics,'-','_','.',and'*'.

−63181 Thesuppliedaliaswasnotfound.−63180 Aninvalidaliaswasspecified.RIOaliasesmaycontainonly

alphanumerics,'-',and'_'.−63150 Anunspecifiedhardwarefailurehasoccurred.Theoperation

Page 44: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

couldnotbecompleted.−63082 Theoperationcouldnotcompletebecauseanothersessionis

accessingtheFIFO.Closetheothersessionandretry.−63081 Thecallerdidnotallocateamemorybuffer.−63080 Theallocatedbufferistoosmall.−63073 Thespecifiedeventdidnotoccurwithinthespecifiedtime

period,inmilliseconds.Extendthetimeperiod,orignoreiftheresultwasexpected.

−63072 ThespecifiedRIOeventhasnotbeenenabledforthissession.AttemptingaWaitonIRQafteranAbortcausesthiserror.

−63071 ThespecifiedRIOeventhasalreadybeenenabledforthissession.

−63070 Thespecifiedeventtypeisinvalid.−63052 Triggerlinesarenotsupportedorenabled.ForPXI,identifythe

controllerandchassisusingMAX.−63051 Thespecifiedtriggerlineisnotreservedinthecurrentsession.−63050 Thespecifiedtriggerlineisalreadyreserved.ConsulttheMAX

Triggersettingsorthetriggerreservationsforeachdevicewithinthesystem.

−63043 Thesessionisinvalid.Thetargetmayhaveresetorbeenrebooted.Checkthenetworkconnectionandretrytheoperation.

−63042 Afaultonthenetworkcausedtheoperationtofail.−63041 Theconnectiontotheremotedevicehasbeenlostduetoan

errorontheremotedevice.Retrytheoperation.Iftheremotedevicecontinuestoreportthiserror,checkitspowersupplyandlookfordiagnosticmessagesontheconsole.

−63040 Aconnectioncouldnotbeestablishedtothespecifiedremotedevice.Ensurethatthedeviceisonandaccessibleoverthenetwork,thatNI-RIOsoftwareisinstalled,andthattheRIOserverisrunningandproperlyconfigured.ForNI-RIO2.3andforward,refertoSoftware»NI-RIO»NI-RIOSettingsunderthesysteminMAX.PriortoNI-RIO2.3,refertoSoftware»NI-VISA»VISAOptionsunderthesysteminMAX.

Page 45: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

−63033 Accesstotheremotesystemwasdenied.UseMAXtochecktheRemoteDeviceAccesssettingsunderSoftware»NI-RIO»NI-RIOSettingsontheremotesystem.

−63031 Theoperationcouldnotbecompletedbecauseanothersessionisaccessingthedevice.Closeallothersessionsandretry.

−63030 Operationfailedduetodevicereconfiguration.MultiplesessionstoFPGAdevicesarenotsupported.Closetheothersessionandretrythisoperation.ThiserrorcodecanoccuronlywithLabVIEW8.2andearlierversions.Theoperationcouldnotcompletebecauseanothersessionhasreconfiguredthedevice.

−63001 DMAfromhosttoFPGAtargetisnotsupportedforthisremotesystem.UseanothermethodforI/OorchangethecontrollerassociatedwiththeFPGAtarget.

63033 Accesstotheremotesystemwasdenied.UseMAXtochecktheRemoteDeviceAccesssettingsunderSoftware»NI-RIO»NI-RIOSettingsontheremotesystem.

63073 Thespecifiedeventdidnotoccurwithinthespecifiedtimeperiod,inmilliseconds.Extendthetimeperiod,orignoreiftheresultwasexpected.

63186 ThenumberofopenRIOsessionsexceedstherecommendedlimit.Foroptimalperformance,closeRIOsessionswhenyounolongerneedthem.

63188 Theoperationisnolongersupported.63194 Thetargetsoftwareisolderthan,butcompatiblewith,thehost.

Upgradetargetsoftwaretogetfullfunctionality.

Page 46: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ProgrammaticallyResettingtheCompactRIOorSingle-BoardRIOSystem(FPGAInterface)TheCompactRIOcRIO-910xandcRIO-9072/9074chassisandtheSingle-BoardRIO(sbRIO)deviceshaveadigitaloutputlineyoucanusetoprogrammaticallyresetthesystem.Completethefollowingstepstoprogrammaticallyresetthesystem.

1. ConfiguretheCompactRIOorsbRIOsystem.2. MakesuretheSystemResetI/Oitemisaddedtothesystem.3. Right-clicktheFPGAtargetintheProjectExplorerwindowand

selectNew»VIfromtheshortcutmenutoaddanewFPGAVItothesystem.

4. PlaceanFPGAI/ONodeontheblockdiagramoftheFPGAVI.5. ClicktheelementsectionoftheFPGAI/ONodeandselect

ChassisI/O(orOnboardI/O)»SystemResetfromtheshortcutmenu.

6. Right-clicktheSystemResetinputoftheFPGAI/ONodeandselectCreate»Controlfromtheshortcutmenu.WhenSystemResetisTRUE,thesystemresets.

ThesystemFPGAdeassertstheSystemResetlineduringthesystemreset.YoudonotneedtowireaFALSEBooleanvaluetotheSystemResetinputorensurethattheSystemResetinputisTRUEforaminimumamountoftime.

CautionIftheFPGAVIusestheSystemResetoutput,andyouconfigurethesystemtoloadtheFPGAVIwhenthereisasoftwareorhardwarereset,makesurethatthesystemisnotsetupinawayinwhichthesystemcontinuallyresetsbeforeyouruntheFPGAVI.Ifthesystemisinastateinwhichitcontinuallyresets,contactNationalInstruments.

Page 47: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ProgrammingtheCompactRIOChassisFPGALED(FPGAInterface)ThecRIO-910xReconfigurableEmbeddedchassisandthecRIO-9072/9074IntegratedcontrollerandchassishaveanFPGALED.YoucanusetheFPGALEDtohelpdebugyourapplicationoreasilyretrieveapplicationstatus.CompletethefollowingstepstoconfiguretheFPGALED.

NoteThecRIO-9002/9004embeddedcontrollerdoesnothaveanFPGALED.

1. ConfiguretheCompactRIOsystem.2. MakesuretheFPGALEDI/OitemisaddedtotheCompactRIO

system.3. Right-clicktheFPGAtargetintheProjectExplorerwindowand

selectNew»VIfromtheshortcutmenutoaddanewVItotheCompactRIOsystem.

4. PlaceanFPGAI/ONodeontheblockdiagramoftheVI.5. ClicktheelementsectionoftheFPGAI/ONodeandselect

ChassisI/O»FPGALEDfromtheshortcutmenu.6. Right-clicktheFPGALEDinputoftheFPGAI/ONodeandselect

Create»Controlfromtheshortcutmenu.WhenFPGALEDisTRUE,theCompactRIOchassisFPGALEDislit.WhenFPGALEDisFALSE,theCompactRIOchassisFPGALEDisoff.

Page 48: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

RSeriesExpansionChassisPropertiesDialogBox(FPGAInterface)Thisdialogboxappearswhenyouright-clickancRIO-9151RSeriesExpansionchassisintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenu.UsethisdialogboxtoenteranamefortheRSeriesExpansionchassisandselecttheconnectortowhichitisinstalled.

Name—Youcanusethistextboxtoenteranewnameforthechassis.Location—Youcanusethispull-downmenutoselecttheconnectortowhichthechassisisconnected.

Page 49: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ReadingfromCompactRIOChannels(FPGAInterface)CompletethefollowingstepstoreaddatafromaCompactRIOchannel.

1. ConfiguretheCompactRIOsystem.2. MakesuretheinputchannelisaddedtotheCompactRIO

system.3. Right-clicktheFPGAtargetintheProjectExplorerwindowand

selectNew»VIfromtheshortcutmenutoaddanewFPGAVItotheCompactRIOsystem.

4. PlaceanFPGAI/ONodeontheblockdiagramoftheFPGAVI.5. ClicktheelementsectionoftheFPGAI/ONodeandselect

Module»Module/Channelfromtheshortcutmenu,whereModulerepresentsaCSeriesmoduleandModule/Channelisthechannelfromwhichyouwanttoread.IfyouconfigureanFPGAI/ONodeformultiplechannels,theI/ONodeaccessesthechannelssimultaneouslyorsequentiallydependingonthetypeofmoduleandotherfactors.

NoteLabVIEWcanreadCompactRIOdigitalinputlinesasportsforsomeI/Omodules.Refertothereferencetopicforthemoduleyouareusingformoreinformation.YoucanfindthereferencetopicforthemodulebynavigatingontheContentstabtoFPGAModule»CompactRIOReferenceandProcedures»DigitalInputModules»NI9xxx.

Page 50: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ReadingtheTemperatureofaCompactRIOChassisoraSingle-BoardRIODevice(FPGAInterface)ThecRIO-910xReconfigurableEmbeddedchassis,thecRIO-9072/9074Integratedcontrollerandchassis,andtheSingle-BoardRIO(sbRIO)deviceshaveanonboardtemperaturesensor.Completethefollowingstepstoreadthetemperatureofthechassisordevice.

1. ConfiguretheCompactRIOorsbRIOsystem.2. MakesuretheChassisTemperatureI/Oitemisaddedtothe

system.3. Right-clicktheFPGAtargetintheProjectExplorerwindowand

selectNew»VIfromtheshortcutmenutoaddanewVItothesystem.

4. PlaceanFPGAI/ONodeontheblockdiagramoftheVI.5. ClicktheelementsectionoftheFPGAI/ONodeandselect

ChassisI/O(orOnboardI/O)»ChassisTemperaturefromtheshortcutmenu.

6. Right-clicktheChassisTemperatureoutputoftheFPGAI/ONodeandselectCreate»Indicatorfromtheshortcutmenu.

TheChassisTemperatureoutputreturns16-bitvaluesforthetemperature.Youcanconvertthisvalueintomeaningfulengineeringunits.

Page 51: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

SimultaneouslyReadingFromorWritingtoMultipleCompactRIOChannels(FPGAInterface)YoucansimultaneouslyreadfromorwritetomultiplechannelsonasinglesimultaneousmodulesuchastheNI9215,NI9225,NI9229,NI9239,NI9263,NI9264,andNI9265.ConfigureasingleFPGAI/ONodewiththechannelsyouwanttosimultaneouslysampleorupdate.IfyouconfigureasingleFPGAI/ONodewithchannelsfromdifferentmodules,FPGAI/Oexecutionbeginsatthesametimeforallthemodules,buttheactualsamplingorupdatetimesmaydifferbetweenmodulesdependingonthetypesofmodules,thenumberofchannelsusedoneachmodule,thearbitrationsettings,andwhetherornotthemodulesareidlewhentheI/ONodebeginsexecution.IfyouconfigureanFPGAI/ONodewithmultiplechannelsonanon-simultaneousmodule,thefunctionaccessesthechannelssequentially.

Page 52: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UnderstandingPower-OnandStartupOutputStatesforCompactRIOOutputModules(FPGAInterface)Thepower-onoutputstateisthestatethataCSeriesoutputmoduleisinwhenpowerisappliedtothemodule.RefertotheNI9xxxOperatingInstructionsandSpecificationsforthemoduleforthepower-onoutputstate.Youcannotconfigurethepower-onoutputstate.ThestartupoutputstateisthestatethataCompactRIOchannelisinafteryouloadandrunanFPGAVIthatcommunicateswiththeoutputmodule.Youcanconfigurestartupoutputstates.

Page 53: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringStartupOutputStatesUsetheFPGAI/ONodeanalogordigitaloutputoptionstochangestartupoutputstates.YoucandeveloptheFPGAVIsothattheoutputfunctionexecuteswhentheFPGAVIstartsrunning.

NoteIfyouinsertanNI9263orNI9265modulewhiletheCompactRIOchassisispoweredonandanFPGAVIisrunning,theanalogoutputchannelsresettothepower-onoutputstate,andtheFPGAVIcontinuesrunningandcommunicatingwiththeanalogoutputchannels.

Page 54: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UnderstandingOutputStates

ActionStateofthe

OutputChannels

Thechassiswiththemodulepowerson. Power-onoutputstate

AnFPGAVIloads. Startupoutputstate

AnInvokeMethodfunctionconfiguredwiththeAbortmethodexecutesonthehostVI.

Power-onoutputstate

ACloseFPGAVIReferencefunctionthatisconfiguredtoCloseandResetexecutes.CloseandResetisthedefaultactionfortheCloseFPGAVIReferencefunction.

Power-onoutputstate

ACloseFPGAVIReferencefunctionthatisconfiguredtoCloseexecutes.

Laststatethatwaswritten

YouclicktheAbortbuttononthehostVIorselectOperate»StopwhileLabVIEWistargetedtoanFPGAdeviceandtheFPGAVIisrunningwithInteractiveFrontPanelCommunication.

Laststatethatwaswritten

Youremoveandreinsertoneofthefollowingmodules:NI9263,NI9265,NI9476,NI9477,orNI9478.

Power-onoutputstate

YouremoveandreinsertanNI9264moduleandyouhavenotloadedtheFPGAVI.

Power-onoutputstate

YouremoveandreinsertanNI9264moduleafteryouloadedtheFPGAVI.

Laststatethatwaswritten

Youremoveandreinsertoneofthefollowingmodules:NI9401,NI9402,NI9403,NI9472,NI9474,NI9475,NI9481

Laststatethatwas

Page 55: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

orNI9485.NationalInstrumentsrecommendsthatyoudonotreplaceamodulethatisadifferenttypewithoneofthesemodulesaftertheFPGAVIisloaded.ReplacingamodulethatisadifferenttypethanthemodulewithwhichyouarereplacingitaftertheFPGAVIisloadedcanplacetheoutputchannelsinanundefinedorunexpectedstate.

written

Page 56: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsingtheRIODeviceI/OControl(FPGAInterface)PlacetheRIODeviceI/OcontrolonthefrontpanelofaVI.UsetheI/Ocontrolpull-downmenutoselectaRIOdevice.

Page 57: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

SelectingaRIODeviceinaProjectVITargetedtoMyComputerIftheVIispartofaprojectandistargetedtoMyComputer,theI/Ocontrolpull-downmenushowsthefollowingsectionsfromtoptobottom.

RIOdevicesintheprojectLocalRIOdevicesandlocalRIOaliasesBrowse,whichopenstheBrowseRIODevicesdialogboxRecentlyusedRIOdevices

Page 58: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

SelectingaRIODeviceinaProjectVITargetedtoanRTControllerIftheVIispartofaprojectandistargetedtoanRTcontroller,theI/Ocontrolpull-downmenushowsthefollowingsection.

RIOdeviceslocaltothecontroller

Page 59: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

SelectingaRIODeviceinaNon-ProjectVIIftheVIisnotpartofaproject,theI/Ocontrolpull-downmenushowsthefollowingsectionsfromtoptobottom.

LocalRIOdevicesandlocalRIOaliasesBrowse,whichopenstheBrowseRIODevicesdialogboxRecentlyusedRIOdevices

Page 60: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

WritingtoCompactRIOChannels(FPGAInterface)CompletethefollowingstepstowritetoCompactRIOoutputchannels.

1. ConfiguretheCompactRIOsystem.2. MakesuretheoutputchannelisaddedtotheCompactRIO

system.3. Right-clicktheFPGAtargetintheProjectExplorerwindowand

selectNew»VIfromtheshortcutmenutoaddanewFPGAVItotheCompactRIOsystem.

4. PlaceanFPGAI/ONodeontheblockdiagramoftheFPGAVI.5. ClicktheelementsectionoftheFPGAI/ONodeandselect

Module»Module/Channelfromtheshortcutmenu,whereModulerepresentsaCSeriesmoduleandModule/Channelisthechanneltowhichyouwanttowrite.IfyouconfigureanFPGAI/ONodeformultiplechannels,theI/ONodeaccessesthechannelssimultaneouslyorsequentiallydependingonthetypeofmoduleandotherfactors.

NoteLabVIEWcanwritetoCompactRIOdigitaloutputlinesasportsforsomeI/Omodules.Refertothereferencetopicforthemoduleyouareusingformoreinformation.YoucanfindthereferencetopicforthemodulebynavigatingontheContentstabtoFPGAModule»CompactRIOReferenceandProcedures»DigitalOutputModules»NI9xxx.

Page 61: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfirmingtheStateofDigitalOutputChannelsFordigitalchannels,youalsocanreadthedigitaloutputchannel.Completethefollowingstepstoreadfromthedigitaloutputchannels.

1. PlaceanotherFPGAI/ONodefunctionontheblockdiagram.ThisFPGAI/ONodemustexecuteaftertheFPGAI/ONodeyouaddedabove.

2. ClicktheelementsectionoftheFPGAI/ONodeandselectModule»Module/Channelfromtheshortcutmenu,whereModulerepresentsaCSeriesmoduleandModule/Channelisthechannelyouwanttoread.

3. Right-clickthenewFPGAI/ONodeandselectChangetoReadfromtheshortcutmenu.

Page 62: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConvertingandCalibratingCompactRIOAnalogInputValues(FPGAInterface)SettheCalibrationModetoCalibratedintheCSeriesModulePropertiesdialogboxforananaloginputmoduleifyouwanttheFPGAI/ONodetoreturncalibrated,fixed-pointdataforthemodule.IfyousettheCalibrationModetoRaw,theFPGAI/ONodereturnsuncalibrated,binaryvaluesforthefollowinganaloginputmodules:

NI9201NI9203NI9205NI9206NI9215NI9217NI9221NI9225

NI9229NI9233NI9234NI9235NI9236NI9237NI9239

IfyousettheCalibrationModetoRaw,youmustconvertthebinaryvaluesintomeaningfulengineeringunitsandapplycalibrationconstantstoachievemoreaccurateresults.YoumustconvertandcalibratethesevaluesinthehostVI.

NoteAfteryouconvertthebinaryvaluestoengineeringunitsfortheNI9217,youcanalsoconvertthenominalresistancevaluesintotemperaturevalues.

NoteThebinarydatareturnedbytheNI9211,NI9213,orNI9219isalreadycalibrated.YoumustusedifferentequationstoconvertvaluesfortheNI9211,convertvaluesfortheNI9213,orconvertvaluesfortheNI9219intoengineeringunits.

Page 63: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsingaVItoConvertandCalibrateValuesRefertotheBinarytoNominalVIinthelabview\examples\CompactRIO\BasicIO\AnalogRawHostCalibration\AIRawHostCalibration\AIRawHostCalibration-cRIO.lvprojforanexampleofconvertingbinaryanaloginputvaluestocalibratedengineeringunits.YoucanusetheBinarytoNominalVIasasubVIinthehostVI.OpenexampleFortheNI9205,youcanalsorefertotheBinarytoNominalPolynomial(Host)VIinthelabview\examples\CompactRIO\ModuleSpecific\NI9205\NI9205LinearizationCoefficients\NI9205LinearizationCoefficients.lvprojforanexampleofusingthestraight-lineconversionalgorithmalongwiththeNI-MCallinearizationcorrectiontoconvertbinaryanaloginputvaluestocalibratedengineeringunits.YoucanusetheBinarytoNominalPolynomial(Host)VIasasubVIinthehostVI.OpenNI9205exampleFortheNI9206,youcanalsorefertotheBinarytoNominalPolynomial(Host)VIinthelabview\examples\CompactRIO\ModuleSpecific\NI9206\NI9206LinearizationCoefficients\NI9206LinearizationCoefficients.lvprojforanexampleofusingthestraight-lineconversionalgorithmalongwiththeNI-MCallinearizationcorrectiontoconvertbinaryanaloginputvaluestocalibratedengineeringunits.YoucanusetheBinarytoNominalPolynomial(Host)VIasasubVIinthehostVI.OpenNI9206example

Page 64: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsinganEquationtoConvertandCalibrateValuesYoucanusethefollowingequationinthehostVItoconvertbinaryanaloginputvaluestocalibratedengineeringunits:

InputEngineeringUnits=(BinaryValue×LSBWeight–Offset)*

where BinaryValueisthesignedorunsignedvaluereturnedbytheFPGAI/ONodeLSBWeightisthevaluereturnedbytheLSBWeightpropertyOffsetisthevaluereturnedbytheOffsetproperty.

TheunitsofLSBWeightandOffsetdifferpermodule.RefertothereferencetopicforthemoduleyouareusingfortheLSBWeightandOffsetunits.YoucanfindthereferencetopicforthemodulebynavigatingontheContentstabtoFPGAModule»CompactRIOReferenceandProcedures»AnalogInputModules»NI9xxx.Toconverttocalibratedengineeringunits,usetheFPGAI/OPropertyNodetoreadtheLSBWeightandOffsetproperties.IfyoudonotwanttoreadtheLSBWeightandOffsetvaluesfromthemodule,youcanconverttouncalibratedengineeringunitsbyusingthefollowingvaluesforOffsetandLSBWeight:

Offset=0†

LSBWeight=TypicalInputSpan÷2ADCResolutionwhere TypicalInputSpanisthevalueforthemoduleinthetablebelow

ADCResolutionistheADCresolutionvalueintheNI9xxxOperatingInstructionsandSpecificationsforthemodule.

Module TypicalInputSpanNI9201 21.06VNI9203 21.56mA(unipolar),43.12mA(bipolar)NI9205 20.8VNI9206 21.5VNI9215 20.8VNI9217 1000ΩNI9221 125V

Page 65: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9225 850VNI9229 125.28VNI9233 10.8VNI9234 10.2VNI9235 52.6mV/VNI9236 52.6mV/VNI9237 50mV/VNI9239 21.04V

*WhenconvertingandcalibratingdataacquiredfromtheNI9203in±20mArange,theequationis:InputEngineeringUnits=((BinaryValue–32768)×LSBWeight–Offset)

†WhencalculatingengineeringunitsfortheNI9203in±20mArange,Offset=20mA.

Page 66: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

DetectingOut-of-RangeChannelsforCompactRIOAnalogInputChannels(FPGAInterface)Youcandetectanout-of-rangeCompactRIOanaloginputchannelwhenyoureadthechannel.IfyousettheCalibrationModetoCalibratedintheCSeriesModulePropertiesdialogboxandtheFPGAI/ONodereturnsavaluegreaterthantheminimumoperatingrangevalue,thechannelmightbeoutofrange.RefertotheNI9xxxOperatingInstructionsandSpecificationsforthemoduleformoreinformationaboutmodulespecifications.IfyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogboxandachannelisoutofrange,theFPGAI/ONodereturnsthefull-scalebinaryvalue,asshowninthetablebelow.

Module Full-ScaleBinaryValueNI9201 –2,048(0xF800)or2,047(0x7FF)NI9203 0(0x0000)or65,535(0xFFFF)

NI9205* –32,768(0x8000)or32,767(0x7FFF)

NI9206* –32,768(0x8000)or32,767(0x7FFF)

NI9211 –8,388,608(0xFF800000)or8,388,607(0x7FFFFF)NI9213 –8,388,608(0xFF800000)or8,388,607(0x7FFFFF)NI9215 –32,768(0x8000)or32,767(0x7FFF)NI9217 –8,388,608(0xFF800000)or8,388,607(0x7FFFFF)NI9219 –8,388,608(0xFF800000)or8,388,607(0x7FFFFF)NI9221 –2,048(0xF800)or2,047(0x7FF)NI9225 –8,388,608(0xFF800000)or8,388,607(0x7FFFFF)NI9229 –8,388,608(0xFF800000)or8,388,607(0x7FFFFF)NI9233 –8,388,608(0xFF800000)or8,388,607(0x7FFFFF)NI9234 –8,388,608(0xFF800000)or8,388,607(0x7FFFFF)NI9235 –8,388,608(0xFF800000)or8,388,607(0x7FFFFF)NI9236 –8,388,608(0xFF800000)or8,388,607(0x7FFFFF)NI9237 –8,388,608(0xFF800000)or8,388,607(0x7FFFFF)

Page 67: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9239 –8,388,608(0xFF800000)or8,388,607(0x7FFFFF)*FortheNI9205andNI9206,achannelmightbeoutofrangebeforetheFPGAI/ONodereachestheminimumormaximumfull-scalebinaryvalue.

Page 68: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9201(FPGAInterface)CompactRIO8-Channel,±10V,12-BitAnalogInputModule

Page 69: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

Page 70: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionAIx Analoginputchannelx,wherexisthenumberofthechannel.

TheNI9201hasAIchannels0to7.

Youcanconfiguretheminimumtimebetweenconversionsandunderstandscanningforthesechannels.

Page 71: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 72: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

MethodsThisdevicedoesnotsupportanymethods.

Page 73: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionLSBWeight

ReturnstheLSBweightinnV/LSBforthechannel.UsethisvaluetoconvertandcalibrateNI9201dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Offset ReturnsthecalibrationoffsetinnVforthechannel.UsethisvaluetoconvertandcalibrateNI9201dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Page 74: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 75: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.

Page 76: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9201/9221OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 77: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CSeriesModulePropertiesDialogBoxfortheNI9201andNI9221(FPGAInterface)Right-clickanNI9201orNI9221CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:

Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.CalibrationMode—SetsthecalibrationmodefortheCSeriesmodule.SelectCalibratedifyouwanttheFPGAI/ONodetoreturncalibrated,fixed-pointdatafromthemoduleinunitsofvolts.Thefixed-pointdataissigned,withawordlengthof16bitsandanintegerwordlengthof5bitsfortheNI9201and7bitsfortheNI9221.SelectRawifyouwanttheFPGAI/ONodetoreturnuncalibrated,binarydatafromthemodule.IfyouselectRaw,youmustconvertandcalibratetheanaloginputvaluesinthehostVI.ThedefaultisCalibrated.MinimumTimeBetweenConversions—Specifiestheminimumtimebetweenconversionsinµs.

Page 78: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheMinimumTimeBetweenConversionsfortheNI9201/9221(FPGAInterface)YoucanconfiguretheminimumtimebetweenconversionsfortheNI9201/9221intheCSeriesModulePropertiesdialogbox.CompletethefollowingstepstoconfiguretheminimumtimebetweenconversionsfortheNI9201/9221.

1. ConfiguretheCompactRIOsystem,andaddanNI9201/9221.2. Right-clicktheNI9201/9221intheProjectExplorerwindowand

selectPropertiesfromtheshortcutmenutodisplaytheCSeriesModulePropertiesdialogbox.

3. Enteravaluebetween0and10µsinincrementsof25nsintheMinimumTimeBetweenConversionstextbox.

4. ClicktheOKbutton.5. SelectFile»SaveAllintheProjectExplorerwindow.NoteThedefaultminimumtimebetweenconversionsfortheNI9201is2µs,andthedefaultminimumtimebetweenconversionsfortheNI9221is1.25µs.TheaccuracyspecificationsintheNI9201/9221OperatingInstructionsandSpecificationsarebasedonthesedefaultvalues.RefertothefollowingtablesforexamplesofhowthevalueyouenterintheMinimumTimeBetweenConversionstextboxaffectstheactualtimebetweenconversionsandtheaccuracyofthemodule.

RefertothefollowingtableifyouareusingachassisotherthanthecRIO-9151RSeriesExpansionchassis.

ModuleSamplingDatafromaSingle

orMultipleChannels?

MinimumTimeBetweenConversions*

AbletoAchieveSpecifiedTime

BetweenConversions?NI9201 Single ≥1.25µs Yes

<1.25µs No

Multiple ≥2µs Yes

Page 79: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

<2µs No

NI9221 Single ≥1.25µs Yes

<1.25µs No

Multiple ≥1.25µs Yes

<1.25µs No

RefertothefollowingtableifyouareusingthecRIO-9151RSeriesExpansionchassis.

ModuleSamplingDatafromaSingle

orMultipleChannels?

MinimumTimeBetweenConversions*

AbletoAchieveSpecifiedTime

BetweenConversions?NI9201 Single ≥2.1µs Yes

<2.1µs No

Multiple ≥2.1µs Yes

<2.1µsand≥2µs No

<2µs No

NI9221 Single ≥2.1µs Yes

<2.1µs No

Multiple ≥2.1µs Yes

<2.1µsand≥1.25µs No

Page 80: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

<1.25µs No

*ThevalueyousetintheCSeriesModulePropertiesdialogbox.**TheactualtimebetweenconversionsdependsonhowyoudeveloptheFPGAVI.YesindicatesthatitispossibletowriteanFPGAVIthatcansustaintheminimumtimebetweenconversionsspecifiedintheCSeriesModulePropertiesdialogbox.NoindicatesthattheminimumtimebetweenconversionsspecifiedintheCSeriesModulePropertiesdialogboxistoolowandyoumaynotbeabletowriteanFPGAVIthatcansustainthespecifiedtime.

Page 81: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UnderstandingNI9201/9221Scanning(FPGAInterface)ToscanthechannelsoftheNI9201/9221,configureanFPGAI/ONodewiththechannelsyouwanttoacquirefromthemodule.Thechannelsarescannedinnumericalorder.TheyarenotscannedintheorderofappearanceinanFPGAI/ONode.ThefirsttimeanFPGAI/ONodeconfiguredwithchannelsonanNI9201/9221moduleexecutes,theNI9201/9221moduleperformstwosetupconversionsbeforeconvertingthefirstchannel.ThemodulestoresthechannellistfromthemostrecentlyexecutedFPGAI/ONode.ThemoduledoesnotrepeatthesetupconversionsforsubsequentFPGAI/ONodereadsthatareconfiguredwiththesamechannellist.Themoduleperformsthesetupconversionsonlyifthechannellistchanges.RefertotheAnalogInputVIinthelabview\examples\CompactRIO\BasicIO\AnalogInputdirectoryforanexampleofhandlingthesetupconversionsintheFPGAVIblockdiagram.Openexample

Page 82: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9203(FPGAInterface)CompactRIO8-Channel,±20mA,16-BitAnalogInputModule

Page 83: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

Page 84: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionAIx Analoginputchannelx,wherexisthenumberofthechannel.

TheNI9203hasAIchannels0to7.

Page 85: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 86: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.ThisdevicedoesnotsupportanyI/Omethods.

Method DescriptionSetInputRange

Setstheinputrangeforachannelaseither0–20mAor±20mA.ThismethodoverwritesthevalueyouconfigureintheCSeriesModulePropertiesdialogbox.

Page 87: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionLSBWeight(±20mArange)

ReturnstheLSBweightinpA/LSBforthechannel.UsethisvaluetoconvertandcalibrateNI9203dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox,andyousettheinputrangeto±20mA.

LSBWeight(4–20mArange)

ReturnstheLSBweightinpA/LSBforthechannel.UsethisvaluetoconvertandcalibrateNI9203dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox,andyousettheinputrangeto0–20mA.

Page 88: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionModuleID

ReturnsthemoduleID.

Offset(±20mArange)

ReturnsthecalibrationoffsetinpAforthechannel.UsethisvaluetoconvertandcalibrateNI9203dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox,andyousettheinputrangeto±20mA.

Offset(4–20mArange)

ReturnsthecalibrationoffsetinpAforthechannel.UsethisvaluetoconvertandcalibrateNI9203dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox,andyousettheinputrangeto0–20mA.

SerialNumber

Returnstheuniqueserialnumberofthemodule.

VendorID

ReturnstheNationalInstrumentsvendorID,0x1093.

Page 89: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.

Page 90: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9203OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 91: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CSeriesModulePropertiesDialogBoxfortheNI9203(FPGAInterface)Right-clickanNI9203CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:

Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.CalibrationMode—SetsthecalibrationmodefortheCSeriesmodule.SelectCalibratedifyouwanttheFPGAI/ONodetoreturncalibrated,fixed-pointdatafromthemoduleinunitsofamps.Thefixed-pointdataissigned,withawordlengthof21bitsandanintegerwordlengthof–4bits.SelectRawifyouwanttheFPGAI/ONodetoreturnuncalibrated,binarydatafromthemodule.IfyouselectRaw,youmustconvertandcalibratetheanaloginputvaluesinthehostVI.ThedefaultisCalibrated.MinimumTimeBetweenConversions—Specifiestheminimumtimebetweenconversionsinµs.ChannelConfiguration—Specifiestheinputrangeforeachchannel.

Channels—Specifiesthechannel(s)forwhichyouwanttoselecttheinputrange.InputRange—Specifiestheinputrangefortheselectedchannel(s)aseither0–20mAor±20mA.

Page 92: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9205(FPGAInterface)CompactRIO32-ChannelSingle-Ended/16-ChannelDifferential,±200mVto±10V,16-BitAnalogInputModule

Page 93: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

Page 94: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionAIx Analoginputchannelx,wherexisthenumberofthechannel.

TheNI9205hasAIchannels0to31.Thechannelissampledusingthecurrentlyconfiguredterminalmodeandvoltagerange.YoucanconfigurethesesettingsatedittimeusingtheCSeriesModulePropertiesdialogboxoratruntimeusingtheSetTerminalModeorSetVoltageRangemethods.

DI0 Digitalinputchannelusedtoaccessthemoduledigitalline,whichislabeledPFI0.ThisterminalisnotavailableforanonboardNI9205onaSingle-BoardRIO(sbRIO)device.

Trig Returnstheoutputofthemoduletriggercircuitry.UsetheSetTriggersmethodtoconfigurethetriggercircuit.

DO0 Digitaloutputchannel0.ThisterminalisnotavailableforanonboardNI9205onansbRIOdevice.

RefertotheConversionTimingtopicforinformationabouttheorderandtimingofconversionsfortheseI/Ochannels.

Page 95: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 96: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.ThisdevicedoesnotsupportanyI/Omethods.

Method DescriptionIOSample

Acquiresasinglesamplefromthemodule.Thechannelnumber,terminalmode,andvoltagerangeareallconfigurableatruntime.

NoteNationalInstrumentssuggeststhatyoudonotconfiguretheVItorunanIOSamplemethodandanotherFPGAI/OMethodNodeinparallelwhenbotharetargetedtothesameCSeriesmodule.Similarly,NationalInstrumentssuggeststhatyoudonotconfiguretheVItorunmultipleIOSamplemethodsinparallelwhentheIOSamplemethodsaretargetedtothesameCSeriesmodule.

Refertothe9205BasicIOVIandtheNI9205AdvancedIOVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9205\NI9205BasicIOandlabview\examples\CompactRIO\ModuleSpecific\NI9205\NI9205AdvancedIOdirectoriesforexamplesrelatedtothismethod.

BasicIO

OpenexampleAdvancedIO

Openexample

SetTerminalMode

SetstheterminalmodeforachannelasRSE(referencedsingle-ended),NRSE(non-referencedsingle-ended),orDIFF(differential).ThismethodoverwritesthevalueyouconfigureintheCSeriesModulePropertiesdialogbox.

SetTriggers

Setsthetriggeroutputtooneofthefollowingvalues:None

Page 97: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

AIBelowLowAIAboveHighAIInsideRegionAIBelowLowwithHysteresisAIAboveHighwithHysteresisDITrigger

NoteTheonboardNI9205onsbRIOdevicesdoesnotsupportDItriggering.

Refertothe9205BasicTriggeringVIandthe9205AdvancedTriggeringVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9205\NI9205BasicTriggeringandlabview\examples\CompactRIO\ModuleSpecific\NI9205\NI9205AdvancedTriggeringdirectoriesforexamplesrelatedtothismethod.

BasicTriggering

OpenexampleAdvancedTriggering

Openexample

SetVoltageRange

Setstheinputrangeforachannelas±10V,±5V,±1V,or±200mV.ThismethodoverwritesthevalueyouconfigureintheCSeriesModulePropertiesdialogbox.

Page 98: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.

Property DescriptionLinearizationCoefficientx

(Optional)NI-MCallinearizationcoefficientx,wherexisthenumberofthelinearizationcoefficient.TheNI9205haslinearizationcoefficients3to0.Youcanusethesecoefficientsincalibrationtocompensateforsometypesofmeasurementnonlinearityinherentinthisdevice.

RefertotheNI9205AdvancedIOVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9205\NI9205AdvancedIOdirectoryforanexampleofthisconcept.

OpenexampleLSBWeight(±10Vrange)

ReturnstheLSBweightinpV/LSBforthe±10Vrange.UsethisvaluetoconvertandcalibrateNI9205dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

LSBWeight(±1Vrange)

ReturnstheLSBweightinpV/LSBforthe±1Vrange.UsethisvaluetoconvertandcalibrateNI9205dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

LSBWeight(±200mVrange)

ReturnstheLSBweightinpV/LSBforthe±200mVrange.UsethisvaluetoconvertandcalibrateNI9205dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

LSBWeight(±5Vrange)

ReturnstheLSBweightinpV/LSBforthe±5Vrange.UsethisvaluetoconvertandcalibrateNI9205dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

ModuleID ReturnsthemoduleID.Offset(±10Vrange)

ReturnsthecalibrationoffsetinnVforthe±10Vrange.UsethisvaluetoconvertandcalibrateNI9205dataifyousettheCalibrationModetoRawintheCSeriesModule

Page 99: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Propertiesdialogbox.Offset(±1Vrange)

ReturnsthecalibrationoffsetinnVforthe±1Vrange.UsethisvaluetoconvertandcalibrateNI9205dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Offset(±200mVrange)

ReturnsthecalibrationoffsetinnVforthe±200mVrange.UsethisvaluetoconvertandcalibrateNI9205dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Offset(±5Vrange)

ReturnsthecalibrationoffsetinnVforthe±5Vrange.UsethisvaluetoconvertandcalibrateNI9205dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

SerialNumber

Returnstheuniqueserialnumberofthemodule.

VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 100: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.

Page 101: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9205OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 102: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CSeriesModulePropertiesDialogBoxfortheNI9205andNI9206(FPGAInterface)Right-clickanNI9205orNI9206CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:

Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.CalibrationMode—SetsthecalibrationmodefortheCSeriesmodule.SelectCalibratedifyouwanttheFPGAI/ONodetoreturncalibrated,fixed-pointdatafromthemoduleinunitsofvolts.Thefixed-pointdataissigned,withawordlengthof26bitsandanintegerwordlengthof5bits.SelectRawifyouwanttheFPGAI/ONodetoreturnuncalibrated,binarydatafromthemodule.IfyouselectRaw,youmustconvertandcalibratetheanaloginputvaluesinthehostVI.ThedefaultisCalibrated.MinimumTimeBetweenConversions—Specifiestheminimumtimebetweenconversionsinµs.ChannelConfiguration—Specifiestheinputrangeforeachchannel.

Channels—Specifiesthechannel(s)forwhichyouwanttoselecttheinputrange.InputRange—Specifiestheinputrangefortheselectedchannel(s)as±10V,±5V,±1V,or±200mV.TerminalMode—Specifiestheterminalmodefortheselectedchannel(s)asRSE(referencedsingle-ended),NRSE(non-referencedsingle-ended),orDIFF(differential).

Page 103: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

IOSampleMethod(FPGAInterface)Thismodulemethodacquiresasinglesamplefromthemodule.Thechannelnumber,terminalmode,andvoltagerangeareallconfigurableatruntime.YouusethismodulemethodbyselectingitinanFPGAI/OMethodNodethatisconfiguredfortheappropriatedeviceand/orchannel.DetailsExamples

NoteNationalInstrumentssuggeststhatyoudonotconfiguretheVItorunanIOSamplemethodandanotherFPGAI/OMethodNodeinparallelwhenbotharetargetedtothesameCSeriesmodule.Similarly,NationalInstrumentssuggeststhatyoudonotconfiguretheVItorunmultipleIOSamplemethodsinparallelwhentheIOSamplemethodsaretargetedtothesameCSeriesmodule.

Configuration[i+2]containsencodedconfigurationinformationthatgetsloadedintothemoduleconversionpipeline.Thisconfigurationinformationcontrolsthedatatobesampledtwoiterationsintothefuture.RefertotheConversionTimingtopicformoreinformation.RefertotheConfigurationEncodingtablebelowforanexampleofhowtheconfigurationinformationisencoded.

Data[i]Returnsthedatafromthecurrentsample.errorindescribeserrorconditionsthatoccurbeforethisVIorfunctionruns.Thedefaultisnoerror.IfanerroroccurredbeforethisVIorfunctionruns,theVIorfunctionpassestheerrorinvaluetoerrorout.ThisVIorfunctionrunsnormallyonlyifnoerroroccurredbeforethisVIorfunctionruns.IfanerroroccurswhilethisVIorfunctionruns,itrunsnormallyandsetsitsownerrorstatusinerrorout.Useerrorinanderrorouttocheckerrorsandtospecifyexecutionorderbywiringerroroutfromonenodetoerrorinofthenextnode.

statusisTRUE(X)ifanerroroccurredbeforethisVIorfunctionranorFALSE(checkmark)toindicateawarningorthatnoerroroccurredbeforethisVIorfunctionran.ThedefaultisFALSE.codeistheerrorcodenumberidentifyinganerror.Thedefaultis0.IfstatusisTRUE,codeisanonzeroerrorcode.

Page 104: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

IfstatusisFALSE,codeis0orawarningcode.sourcealwayscontainsanemptystringbecausestringsarenotsupportedinLabVIEWFPGA.

erroroutcontainserrorinformation.IferrorinindicatesthatanerroroccurredbeforethisVIorfunctionran,erroroutcontainsthesameerrorinformation.Otherwise,itdescribestheerrorstatusthatthisVIorfunctionproduces.Right-clicktheerroroutindicatoronthefrontpanelandselectExplainErrorfromtheshortcutmenuformoreinformationabouttheerror.

statusisTRUE(X)ifanerroroccurredorFALSE(checkmark)toindicateawarningorthatnoerroroccurred.codeistheerrorcodenumberidentifyinganerror.Thedefaultis0.IfstatusisTRUE,codeisanonzeroerrorcode.IfstatusisFALSE,codeis0orawarningcode.sourcealwayscontainsanemptystringbecausestringsarenotsupportedinLabVIEWFPGA.

Page 105: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfigurationEncodingTableThefollowingtabledescribeshowtoconstructtheConfiguration[i+2]valuetowritetotheIOSamplemethodtoperformaparticularoperation.TheOperationcolumnliststhetypesofoperationsthatcanbeperformedusingtheIOSamplemethod.TheConfigurationBitFieldscolumnliststhebitpositionswithintheConfiguration[i+2]numberthatneedtobeset.TheValuescolumnspecifiesthebinaryvaluetoapplytothespecifiedConfigurationBitFields.

Operation ConfigurationBitFields Values

AIRead 15:13 001b12:11 01bforchannels0-15

10bforchannels16-3110:8 000bforchannels0,8,16,or24

001bforchannels1,9,17,or25…110bforchannels6,14,22,or30111bforchannels7,15,23,or31

7:6 00b5:4 00bforNRSEmode

11bforRSEorDIFFmodes3:2 11bforchannels8-15or24-31

01bforDIFFmodeonchannels0-7or16-2310bforRSEorNRSEmodeonchannels0-7or16-23

DI0Read 15:0 0000000000000000bDO0Write 15:1 010000000000000b

0 BinaryvaluetowritetoDO0

Page 106: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsingThisMethodTheIOSamplemethodprovidesanefficientandflexibleinterfacetothemodule.Youcanusethismethodtoacquireasinglesamplefromanyofthechannelsonthemodule,atanyrange,andwithanyavailableinputmode.Whenthismethodisexecuted,themoduleperformsasingleconversiononthenextchannelpresentintheconversionpipelineonthemodule.ThedatafromthisconversionisreturnedviatheData[i]methodoutput.Atthesametimethattheconversiondataisreadfromthemodule,thenewconfigurationinformationspecifiedbytheConfiguration[i+2]inputisloadedintotheconfigurationpipelineonthemodule.Thepipelineistwosamplesdeep.So,theconfigurationinformationspecifiedononeexecutionoftheIOSamplemethoddetermineswhichchannelwillbesampledbytheIOSamplemethodtwoiterationsintothefuture.RefertotheConversionTimingtopicformoredetails.

Page 107: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ExamplesRefertothe9205BasicIOVIandtheNI9205AdvancedIOVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9205\NI9205BasicIOandlabview\examples\CompactRIO\ModuleSpecific\NI9205\NI9205AdvancedIOdirectoriesforexamplesoftheIOconceptsdiscussedabove.

BasicIO

OpenexampleAdvancedIO

Openexample

Page 108: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

SetTerminalModeMethod(FPGAInterface)OverridesthedefaultsettingprovidedintheCSeriesModulePropertiesdialogbox.YouusethismodulemethodbyselectingitinanFPGAI/OMethodNodethatisconfiguredfortheappropriatedeviceand/orchannel.

AIChannelisthechannelyouwanttosettheterminalmodefor.TerminalModeisanenumerationofthefollowingtriggermodes:

RSEisasingle-endedmeasurementbetweenanyofthe32individualchannelsandthemoduleground.NRSEisasingle-endedmeasurementbetweenanyofthe32individualchannelsandtheAISENSElineintothemodule.DIFFisadifferentialmeasurementbetweentwoofthe32individualchannels,withthenameofthedifferentialchannelmatchingthechanneltiedtothepositivesideofthedifferentialmeasurement.ChannelsAI0toAI7,andAI16toAI23maybesettoDIFFconfiguration.

errorindescribeserrorconditionsthatoccurbeforethisVIorfunctionruns.Thedefaultisnoerror.IfanerroroccurredbeforethisVIorfunctionruns,theVIorfunctionpassestheerrorinvaluetoerrorout.ThisVIorfunctionrunsnormallyonlyifnoerroroccurredbeforethisVIorfunctionruns.IfanerroroccurswhilethisVIorfunctionruns,itrunsnormallyandsetsitsownerrorstatusinerrorout.Useerrorinanderrorouttocheckerrorsandtospecifyexecutionorderbywiringerroroutfromonenodetoerrorinofthenextnode.

statusisTRUE(X)ifanerroroccurredbeforethisVIorfunctionranorFALSE(checkmark)toindicateawarningorthatnoerroroccurredbeforethisVIorfunctionran.ThedefaultisFALSE.codeistheerrororwarningcode.Thedefaultis0.IfstatusisTRUE,codeisanonzeroerrorcode.IfstatusisFALSE,codeis0orawarningcode.sourcealwayscontainsanemptystringbecausestringsarenotsupportedinLabVIEWFPGA.

Page 109: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

erroroutcontainserrorinformation.IferrorinindicatesthatanerroroccurredbeforethisVIorfunctionran,erroroutcontainsthesameerrorinformation.Otherwise,itdescribestheerrorstatusthatthisVIorfunctionproduces.Right-clicktheerroroutindicatoronthefrontpanelandselectExplainErrorfromtheshortcutmenuformoreinformationabouttheerror.

statusisTRUE(X)ifanerroroccurredorFALSE(checkmark)toindicateawarningorthatnoerroroccurred.codeistheerrororwarningcode.IfstatusisTRUE,codeisanonzeroerrorcode.IfstatusisFALSE,codeis0orawarningcode.sourcealwayscontainsanemptystringbecausestringsarenotsupportedinLabVIEWFPGA.

Page 110: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

SetTriggersMethod(FPGAInterface)Thismodulemethodcontrolsthedatareturnedbythetriggerdigitalinputline.YouusethismodulemethodbyselectingitinanFPGAI/OMethodNodethatisconfiguredfortheappropriatedeviceand/orchannel.DetailsExamples

TriggerModeisanenumerationofthefollowingtriggermodeoptions:

Nonedisablesthetriggerfunction.AIBelowLowdetectswhentheanalogsignalisbelowthelowthresholdyouspecify.AIAboveHighdetectswhentheanalogsignalisabovethehighthresholdyouspecify.AIInsideRegiondetectswhentheanalogsignalisbetweenthehighandlowthresholdsyouspecify.AIBelowLowwithHysteresisassertsthetriggerwhenthesignalstartsabovethehighthresholdyouspecifyandthencrossesbelowthelowthresholdyouspecify.Thetriggerdeassertswhenthesignalcrossesabovethehighthresholdyouspecify.AIAboveHighwithHysteresisassertsthetriggerwhenthesignalstartsbelowthelowthresholdyouspecifyandthencrossesabovethehighthresholdyouspecify.Thetriggerdeassertswhenthesignalcrossesbelowthelowthresholdyouspecify.DITriggerdetectswhenthedigitalsignalonPFI0islogichigh.

NoteTheonboardNI9205onSingle-BoardRIO(sbRIO)devicesdoesnotsupportDItriggering.

AIHighThresholddefinestheupperthresholdfortheanalogtriggercircuit.AILowThresholddefinesthelowerthresholdfortheanalogtriggercircuit.

errorindescribeserrorconditionsthatoccurbeforethisVIorfunctionruns.Thedefaultisnoerror.Ifanerroroccurredbefore

Page 111: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

thisVIorfunctionruns,theVIorfunctionpassestheerrorinvaluetoerrorout.ThisVIorfunctionrunsnormallyonlyifnoerroroccurredbeforethisVIorfunctionruns.IfanerroroccurswhilethisVIorfunctionruns,itrunsnormallyandsetsitsownerrorstatusinerrorout.Useerrorinanderrorouttocheckerrorsandtospecifyexecutionorderbywiringerroroutfromonenodetoerrorinofthenextnode.

statusisTRUEifanerroroccurred.IfstatusisTRUE,theVIdoesnotperformanyoperations.codeistheerrorcodenumberidentifyinganerror.Thedefaultis0.IfstatusisTRUE,codeisanonzeroerrorcode.IfstatusisFALSE,codeis0orawarningcode.sourcealwayscontainsanemptystringbecausestringsarenotsupportedinLabVIEWFPGA.

erroroutcontainserrorinformation.IferrorinindicatesthatanerroroccurredbeforethisVIorfunctionran,erroroutcontainsthesameerrorinformation.Otherwise,itdescribestheerrorstatusthatthisVIorfunctionproduces.Right-clicktheerroroutindicatoronthefrontpanelandselectExplainErrorfromtheshortcutmenuformoreinformationabouttheerror.

statusisTRUEifanerroroccurred.IfstatusisTRUE,theVIdoesnotperformanyoperations.codeistheerrorcodenumberidentifyinganerror.Thedefaultis0.IfstatusisTRUE,codeisanonzeroerrorcode.IfstatusisFALSE,codeis0orawarningcode.sourcealwayscontainsanemptystringbecausestringsarenotsupportedinLabVIEWFPGA.

Page 112: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsingThisMethodUsetheSetTriggersMethodtoconfigurethetriggercircuitonthemodule.Oncethetriggercircuitisconfigured,useanFPGAI/ONodeconfiguredtoaccesstheTrigchanneltomonitortheoutputofthetriggercircuit.Thetriggercircuitdoesnotautomaticallyinitiateanyconversionsonthemodule.ItisuptotheFPGAVItomonitortheTrigline,andtheninitiateaconversionusinganFPGAI/ONodeortheIOSamplemethodwhentheappropriatetriggereventoccurs.PerformthefollowingstepstotriggeranacquisitionusingtheSetTriggersMethod:

1. Ensurethatthemodulepipelineisprimedwiththenexttwochannelsthatyouwanttosampleafterthetriggerevent.ThisstepwillminimizethedelaybetweenthetriggereventandtheAIchannelsgettingsampled.Foranalogtriggeringmodes,thisstepalsoconfigurestheanalogtriggercircuitrytomonitorthedesiredchannel.TheAItriggercircuitmonitorsthechannelwaitinginthemodulepipelineforthenextconversion.

IfyouareusingFPGAI/ONodestoperformtheacquisition,thisstepcanbeaccomplishedbyexecutinganFPGAI/ONodeconfiguredtomatchtheFPGAI/ONodethatyouwillbeexecutingafterthetriggerevent.IfyouareusingoneoftheanalogtriggeringmodesalongwiththeFPGAI/ONodes,theAItriggercircuitwilloperateonthelowestnumberedchannelpresentintheFPGAI/ONode.

RefertotheIOSamplemethodandConversionTimingtopicsformoreinformationonmanagingthemodulepipelineusingtheIOSamplemethod.IfyouareusingoneoftheanalogtriggermodesalongwiththeIOSamplemethod,theAItriggercircuitwilloperateonthechannelwaitinginthepipelinetobeconvertedbythenextIOSamplemethod.

2. ExecutetheSetTriggersmethodwiththeappropriatetriggermodeselected.Thetriggermodecircuitryisimplementedinthehardwareasyouspecifyinthismethod.RefertotheNI9205OperatingInstructionsandSpecificationsorNI9206OperatingInstructionsandSpecificationsformoreinformationaboutthe

Page 113: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

triggermodes.3. MonitortheTrigchannelinaloopuntilyouseetheappropriate

triggerconditionoccur.4. ExecuteanFPGAI/ONodeorIOSamplemethodfunctionto

acquiredatainresponsetothetriggerevent.

Page 114: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ExamplesRefertothe9205BasicTriggeringVIandthe9205AdvancedTriggeringVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9205\NI9205BasicTriggeringandlabview\examples\CompactRIO\ModuleSpecific\NI9205\NI9205AdvancedTriggeringdirectoriesforexamplesofthetriggeringconceptsdiscussedabove.

BasicTriggering

OpenexampleAdvancedTriggering

Openexample

Page 115: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

SetVoltageRangeMethod(FPGAInterface)ThismodulemethodoverridesthedefaultsettingprovidedintheCSeriesModulePropertiesdialogbox.YouusethismodulemethodbyselectingitinanFPGAI/OMethodNodethatisconfiguredfortheappropriatedeviceand/orchannel.

AIChannelisthechannelyouwanttosetthevoltagerangefor.VoltageRangeisanenumerationofthefollowingvoltageranges:

±10V±5V±1V±200mV

errorindescribeserrorconditionsthatoccurbeforethisVIorfunctionruns.Thedefaultisnoerror.IfanerroroccurredbeforethisVIorfunctionruns,theVIorfunctionpassestheerrorinvaluetoerrorout.ThisVIorfunctionrunsnormallyonlyifnoerroroccurredbeforethisVIorfunctionruns.IfanerroroccurswhilethisVIorfunctionruns,itrunsnormallyandsetsitsownerrorstatusinerrorout.Useerrorinanderrorouttocheckerrorsandtospecifyexecutionorderbywiringerroroutfromonenodetoerrorinofthenextnode.

statusisTRUEifanerroroccurred.IfstatusisTRUE,theVIdoesnotperformanyoperations.codeistheerrorcodenumberidentifyinganerror.Thedefaultis0.IfstatusisTRUE,codeisanonzeroerrorcode.IfstatusisFALSE,codeis0orawarningcode.sourcealwayscontainsanemptystringbecausestringsarenotsupportedinLabVIEWFPGA.

erroroutcontainserrorinformation.IferrorinindicatesthatanerroroccurredbeforethisVIorfunctionran,erroroutcontainsthesameerrorinformation.Otherwise,itdescribestheerrorstatusthatthisVIorfunctionproduces.Right-clicktheerroroutindicatoronthefrontpanelandselectExplainErrorfromtheshortcutmenuformoreinformationabouttheerror.

statusisTRUEifanerroroccurred.IfstatusisTRUE,the

Page 116: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

VIdoesnotperformanyoperations.codeistheerrorcodenumberidentifyinganerror.Thedefaultis0.IfstatusisTRUE,codeisanonzeroerrorcode.IfstatusisFALSE,codeis0orawarningcode.sourcealwayscontainsanemptystringbecausestringsarenotsupportedinLabVIEWFPGA.

Page 117: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConversionTimingfortheNI9205/9206(FPGAInterface)ExampleTheNI9205andNI9206modulesimplementatwo-elementdeeppipelineforaccesstotheAI,DI0,andDO0channels.Thispipelineresultsinmaximumsamplerateandmaximumsamplequality.TheTrigchannelhasaparalleldatapaththatbypassesthepipeline.WhenusingtheFPGAI/ONodetosamplechannels,thepipelineisautomaticallymanagedbytheFPGAI/ONode,andthechannelswithintheFPGAI/ONodearesampledinnumericalorderregardlessoftheordertheyappearinthenode.IfthefirsttwochannelrequestsintheFPGAI/ONodedonotmatchthetwochannelrequestsstoredinthemodulepipeline,therewillbeadelaybeforethefirstchannelsampleoccurs.ThisdelayiscausedbytheFPGAI/ONodeautomaticallyupdatingthemodulechannelsamplepipeline,whichtakestwochannelsamplecycles.Tominimizetheneedforthepipelineupdates,eachFPGAI/ONodeleavesthemodulepipelineprimedtorepeatitself.IfyouuseonlyoneFPGAI/ONodeinaloopingstructure,onlythefirstiterationoftheloopwillincurthetwo-cycletimedelay.Allsubsequentiterationsoperatewithnodelay.WhenusingtheIOSamplemethod,youmusttakestepstomanagethispipelineintheVIs.Toreadonechannel,thatchannelconfigurationmustberequestedtwocyclesbeforethetimeitistobesampled.TheU16configurationvalueforanAIchannelsamplecontainsthechannelnumber,channelinputrange,andterminalmode.TheU16configurationvaluealsocanrepresentanaccesstotheDIOorDOOchannels,whichistreatedthesameasanAIoperation.Thefollowingdiagramillustrateshowthepipelineworkswithinasequencestructure.Atypicalapplicationwouldusealoopstructuretoiteratethroughascanlist,whichisapredefinedlistofconfigurations,continuously.ThesequencestructureandartelementsshowhowdatamovesintotheNI9205/9206pipelineandthenisconverted.NotethattheIOSamplemethodfirstconvertstheconfigurationthatisintheADC,

Page 118: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

andthenshiftstheconfigurationvaluesthroughthepipelinetoprepareforthenexttimeLabVIEWcallstheIOSamplemethod.

Thesimplestformofpipelinemanagementistoforcethepipelineoneverysetofsamples.Thisassumesthatthepipelineisalwayswrongatthefirstsample,andsendsallIOSamplerequestsinorder.Thelasttwodatapointsneedsomeconfigurationtoberequested,butitdoesnotmatter,inthisusecase,whatconfigurationthatis.AbetterformofpipelinemanagementemulatesthebehavioroftheFPGAI/ONode.Insteadofalwaysassumingthatthepipelineiswrong,youchoosethelasttwoconfigurationvaluesbasedonthefirsttwosamplesyouwanttoincludeinthenextiteration.Thispipelinemanagementsystemcanbeaccomplishedintwoparts:initializationandsampleiteration.

Tip NationalInstrumentsrecommendsyouusetheIOSamplemethodforthefollowingreasons:

SmalleronFPGA—Withlargechannelcount,theIOSamplemethodismoreefficientwithFPGAresources,andthusrequireslessspaceontheFPGAforthesameapplication.Sampleflexibility—TheIOSamplemethodgivesyoumoreflexibilitytochangechannelrange,terminalmode,andchannelorderatruntimeandatfullsamplerate.Applicationtimingflexibility—TheIOSamplemethodreturnsallsampledataassoonasitisavailable.The

Page 119: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodewillgatherdataforallrequestedsamplesandthenreturnallatonce.

TheMinimumTimeBetweenConversionscontrolyoucansetintheCSeriesModulePropertiesdialogboxdeterminestheshortestpossibletimebetweenanytwoconversions.ForchannelssampledwithinthesameFPGAI/ONode,thetimeyousetdeterminestheexacttimebetweenconversions.ForchannelssampledwithinseparateFPGAI/ONodesorforconversionscausedbyloopingonanFPGAI/ONode,thetimeyousetmaybelessthantheactualtimebetweenconversions.However,theminimumtimeyousetisnevergreaterthanthetimebetweenconversions.IftheapplicationtriestoexecuteanFPGAI/ONodeorIOSamplemethodfasterthanthespecifiedminimumtimebetweenconversions,theconversionisdelayeduntiltheminimumtimeyousetissatisfied.ThedefaultminimumtimebetweenconversionsfortheNI9205/9206is8µs.TheaccuracyspecificationsintheNI9205OperatingInstructionsandSpecificationsorNI9206OperatingInstructionsandSpecificationsarebasedonthisdefaultvalue.Ifyousettheminimumtimebetweenconversionstoatleast8µs,theaccuracyofthemoduleisnotaffected.Ifyousettheminimumtimebetweenconversionstolessthan8µs,theaccuracyofthemoduledegradesifyousampledatafrommultiplechannels.

Page 120: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ExampleRefertotheAdvancedIOexampleinthelabview\examples\CompactRIO\ModuleSpecific\NI9205\NI9205AdvancedIOdirectoryforanexampleofconversiontimingontheNI9205andNI9206CSeriesModules.Openexample

Page 121: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9206(FPGAInterface)CompactRIO32-ChannelSingle-Ended/16-ChannelDifferential,±200mVto±10V,16-BitAnalogInputModule

Page 122: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

Page 123: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionAIx Analoginputchannelx,wherexisthenumberofthechannel.

TheNI9206hasAIchannels0to31.Thechannelissampledusingthecurrentlyconfiguredterminalmodeandvoltagerange.YoucanconfigurethesesettingsatedittimeusingtheCSeriesModulePropertiesdialogboxoratruntimeusingtheSetTerminalModeorSetVoltageRangemethods.

DI0 Digitalinputchannelusedtoaccessthemoduledigitalline,whichislabeledPFI0.

Trig Returnstheoutputofthemoduletriggercircuitry.UsetheSetTriggersmethodtoconfigurethetriggercircuit.

DO0 Digitaloutputchannel0.

RefertotheConversionTimingtopicforinformationabouttheorderandtimingofconversionsfortheseI/Ochannels.

Page 124: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 125: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.ThisdevicedoesnotsupportanyI/Omethods.

Method DescriptionIOSample Acquiresasinglesamplefromthemodule.Thechannel

number,terminalmode,andvoltagerangeareallconfigurableatruntime.

NoteNationalInstrumentssuggeststhatyoudonotconfiguretheVItorunanIOSamplemethodandanotherFPGAI/OMethodNodeinparallelwhenbotharetargetedtothesameCSeriesmodule.Similarly,NationalInstrumentssuggeststhatyoudonotconfiguretheVItorunmultipleIOSamplemethodsinparallelwhentheIOSamplemethodsaretargetedtothesameCSeriesmodule.

Refertothe9206BasicIOVIandtheNI9206AdvancedIOVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9206\NI9206BasicIOandlabview\examples\CompactRIO\ModuleSpecific\NI9206\NI9206AdvancedIOdirectoriesforexamplesrelatedtothismethod.

BasicIO

OpenexampleAdvancedIO

Openexample

SetTerminalMode

SetstheterminalmodeforachannelasRSE(referencedsingle-ended),NRSE(non-referencedsingle-ended),orDIFF(differential).ThismethodoverwritesthevalueyouconfigureintheCSeriesModulePropertiesdialogbox.

SetTriggers Setsthetriggeroutputtooneofthefollowingvalues:

Page 126: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NoneAIBelowLowAIAboveHighAIInsideRegionAIBelowLowwithHysteresisAIAboveHighwithHysteresisDITrigger

Refertothe9206BasicTriggeringVIandthe9206AdvancedTriggeringVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9206\NI9206BasicTriggeringandlabview\examples\CompactRIO\ModuleSpecific\NI9206\NI9206AdvancedTriggeringdirectoriesforexamplesrelatedtothismethod.

BasicTriggering

OpenexampleAdvancedTriggering

Openexample

SetVoltageRange

Setstheinputrangeforachannelas±10V,±5V,±1V,or±200mV.ThismethodoverwritesthevalueyouconfigureintheCSeriesModulePropertiesdialogbox.

Page 127: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.

Property DescriptionLinearizationCoefficientx

(Optional)NI-MCallinearizationcoefficientx,wherexisthenumberofthelinearizationcoefficient.TheNI9206haslinearizationcoefficients3to0.Youcanusethesecoefficientsincalibrationtocompensateforsometypesofmeasurementnonlinearityinherentinthisdevice.

RefertotheNI9206AdvancedIOVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9206\NI9206AdvancedIOdirectoryforanexampleofthisconcept.

OpenexampleLSBWeight(±10Vrange)

ReturnstheLSBweightinpV/LSBforthe±10Vrange.UsethisvaluetoconvertandcalibrateNI9206dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

LSBWeight(±1Vrange)

ReturnstheLSBweightinpV/LSBforthe±1Vrange.UsethisvaluetoconvertandcalibrateNI9206dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

LSBWeight(±200mVrange)

ReturnstheLSBweightinpV/LSBforthe±200mVrange.UsethisvaluetoconvertandcalibrateNI9206dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

LSBWeight(±5Vrange)

ReturnstheLSBweightinpV/LSBforthe±5Vrange.UsethisvaluetoconvertandcalibrateNI9206dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

ModuleID ReturnsthemoduleID.Offset(±10Vrange)

ReturnsthecalibrationoffsetinnVforthe±10Vrange.UsethisvaluetoconvertandcalibrateNI9206dataifyousettheCalibrationModetoRawintheCSeriesModule

Page 128: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Propertiesdialogbox.Offset(±1Vrange)

ReturnsthecalibrationoffsetinnVforthe±1Vrange.UsethisvaluetoconvertandcalibrateNI9206dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Offset(±200mVrange)

ReturnsthecalibrationoffsetinnVforthe±200mVrange.UsethisvaluetoconvertandcalibrateNI9206dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Offset(±5Vrange)

ReturnsthecalibrationoffsetinnVforthe±5Vrange.UsethisvaluetoconvertandcalibrateNI9206dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

SerialNumber

Returnstheuniqueserialnumberofthemodule.

VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 129: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.

Page 130: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9206OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 131: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9211(FPGAInterface)CompactRIO4-Channel,±80mV,24-BitThermocoupleInputModule

Page 132: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

Page 133: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionTCx Thermocoupleinputchannelx,wherexisthenumberofthe

channel.TheNI9211hasTCchannels0to3.CJC Cold-junctioncompensationchannel.Forthebestaccuracy,

readtheCJCchannelinthesameFPGAI/ONodeasthethermocoupleinputchannels.YoumustconverttheCJCdatatotemperature.

Autozero Autozerochannel.Forthebestaccuracy,readtheAutozerochannelinthesameFPGAI/ONodeasthethermocoupleinputchannels.

Page 134: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 135: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

MethodsThisdevicedoesnotsupportanymethods.

Page 136: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 137: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.

Page 138: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9211OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 139: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CSeriesModulePropertiesDialogBoxfortheNI9211(FPGAInterface)Right-clickanNI9211CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:

Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.CalibrationMode—SetsthecalibrationmodefortheCSeriesmodule.SelectCalibratedifyouwanttheFPGAI/ONodetoreturncalibrated,fixed-pointdatafromthemoduleinunitsofvolts.Thefixed-pointdataissigned,withawordlengthof24bitsandanintegerwordlengthof–2bits.IfyouselectCalibrated,youmustconvertconvertthefixed-pointCJCdatatobinaryCJCdataandthenconvertthebinaryCJCdatatotemperature.SelectRawifyouwanttheFPGAI/ONodetoreturncalibrated,binarydatafromthemodule.IfyouselectRaw,youmustconvertthebinarythermocouplevaluestovoltageandconvertthebinaryCJCdatatotemperature.ThedefaultisCalibrated.

Page 140: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConvertingNI9211Data(FPGAInterface)SettheCalibrationModetoCalibratedintheCSeriesModulePropertiesdialogboxfortheNI9211ifyouwanttheFPGAI/ONodetoreturncalibrated,fixed-pointdatafromthemoduleinunitsofvolts.IfyousettheCalibrationModetoCalibrated,youmustconvertthefixed-pointCJCdatatobinaryCJCdataandthenconvertthebinaryCJCdatatotemperature.SettheCalibrationModetoRawifyouwanttheFPGAI/ONodetoreturncalibrated,binarydatafromthemodule.IfyousettheCalibrationModetoRaw,youmustconvertthebinarythermocouplevaluestovoltageandconvertthebinaryCJCdatatotemperature.YoumustconvertthesevaluesinthehostVI.

Page 141: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsingaVItoConvertDatatoTemperatureRefertotheConverttoTemperature(NI9211)polymorphicVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9211\NI9211SupportFiles.llbforanexampleofconvertingcalibratedorrawdatatotemperature.YoucanusetheConverttoTemperature(NI9211)VIasasubVIinthehostVI.Openexample

Page 142: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsinganEquationtoConvertBinaryThermocoupleValuestoVoltageYoucanusethefollowingequationinthehostVItoconvertbinarythermocouplevaluestovoltage:Voltage=BinaryValue×80mV÷8,388,607where BinaryValueisthevaluereturnedbytheFPGAI/ONode.

Page 143: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsinganEquationtoConvertFixed-PointCJCDatatoBinaryCJCDataYoucanusethefollowingequationinthehostVItoconvertfixed-pointCJCdatatobinaryCJCdata:

BinaryCJCData=(Fixed-PointCJCData)÷(0.160÷(224–1))where Fixed-PointCJCDataisthevaluereturnedbytheFPGAI/O

Node.

Page 144: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsingEquationstoConvertBinaryCJCDatatoTemperatureYoucanusethefollowingequationsinthehostVItoconvertbinaryCJCdatatotemperature:Calculatetheresistanceofthethermistor:

RT=(10000×BinaryCJCData)÷(223–BinaryCJCData)

CalculatetheCJCtemperature:

T=[1÷[A+B(ln(RT))+C(ln(RT))3]]–273.85

where T=temperaturein°C

A=1.2873851×10-3

B=2.3575235×10-4

C=9.4978060×10-8

RefertotheNationalInstituteofStandardsandTechnology(NIST)Monograph175thermocouplereferencetablesformoreinformationaboutconvertingandadjustingthermocouplevalues.

Page 145: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9213(FPGAInterface)CompactRIO16-Channel,±78mV,24-BitThermocoupleInputModule

Page 146: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

Page 147: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionTCx Thermocoupleinputchannelx,wherexisthenumberofthe

channel.TheNI9213hasTCchannels0to15.Autozero Autozerochannel.Forthebestaccuracy,readtheAutozero

channelinthesameFPGAI/ONodeasthethermocoupleinputchannels.

CJC Cold-junctioncompensationchannel.Forthebestaccuracy,readtheCJCchannelinthesameFPGAI/ONodeasthethermocoupleinputchannels.YoumustconverttheCJCdatatotemperature.

Page 148: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 149: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.ThisdevicedoesnotsupportanyI/Omethods.

Method DescriptionCheckStatus

ReturnsBooleansforeachchannelthatindicatewhetherthechannelisoutofrangeorhasanopenthermocouple.ThismethoddeterminestheBooleanvaluesfortheOutofRangeandOpenThermocoupleoutputswhentheFPGAI/ONodereadsthechannels.AvalueofTRUEforanychanneliscacheduntiltheCheckStatusmethodexecutes.

ForceStatusRead—WhenthevalueofthisinputisFALSE,themethodreturnsthecachedstatusinformationsincethelasttimethattheCheckStatusmethodexecuted.WhenthevalueisTRUE,themethodforcestheFPGAI/ONodetoreadallchannelsandthenthemethodupdatesthestatusinformation.Forcingastatusreadcanintroducejitterintoananaloginputloop.OutofRange—ReturnsanarrayofBooleanvalues.AvalueofTRUEinanyindexindicatesthatthechannelsharinganumberwiththatindexexceededthecommon-modevoltagerangeatsomepointafterthelasttimethattheCheckStatusmethodexecuted.OpenThermocouple—ReturnsanarrayofBooleanvalues.AvalueofTRUEinanyindexindicatesthatthechannelsharinganumberwiththatindexdetectedanopenthermocoupleonthechannelatsomepointafterthelasttimethattheCheckStatusmethodexecuted.

Page 150: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.

Property DescriptionConversionTime

SetsthetimeittakestoacquireonepointofdatafromoneormorechannelsinasingleFPGAI/ONode.YoucanselectHighSpeedorHighResolution.RefertotheNI9213OperatingInstructionsandSpecificationsformoreinformationabouttheHighSpeedandHighResolutionconversiontimes.ThispropertyoverwritesthevalueyouconfigureintheCSeriesModulePropertiesdialogbox.

ModuleID ReturnsthemoduleID.SerialNumber

Returnstheuniqueserialnumberofthemodule.

VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 151: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.

Page 152: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9213OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.Theoperatinginstructionsshipwiththemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 153: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CSeriesModulePropertiesDialogBoxfortheNI9213(FPGAInterface)Right-clickanNI9213CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:

Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.CalibrationMode—SetsthecalibrationmodefortheCSeriesmodule.SelectCalibratedifyouwanttheFPGAI/ONodetoreturncalibrated,fixed-pointdatafromthemoduleinunitsofvolts.Thefixed-pointdataissigned,withawordlengthof24bitsandanintegerwordlengthof–2bits.IfyouselectCalibrated,youmustconverttheCJCdatafromvoltagetotemperature.SelectRawifyouwanttheFPGAI/ONodetoreturncalibrated,binarydatafromthemodule.IfyouselectRaw,youmustconvertthebinarythermocoupleandCJCvaluestovoltageandthenconverttheCJCdatafromvoltagetotemperature.ThedefaultisCalibrated.ConversionTime—SpecifiesthetimeittakestoacquireonepointofdatafromoneormorechannelsinasingleFPGAI/ONode.YoucanselectHighSpeedorHighResolution.ThedefaultisHighResolution.RefertotheNI9213OperatingInstructionsandSpecificationsformoreinformationabouttheHighSpeedandHighResolutionconversiontimes.

Page 154: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConvertingNI9213Data(FPGAInterface)SettheCalibrationModetoCalibratedintheCSeriesModulePropertiesdialogboxfortheNI9213ifyouwanttheFPGAI/ONodetoreturncalibrated,fixed-pointdatafromthemoduleinunitsofvolts.IfyousettheCalibrationModetoCalibrated,youmustconverttheCJCdatafromvoltagetotemperature.SettheCalibrationModetoRawifyouwanttheFPGAI/ONodetoreturncalibrated,binarydatafromthemodule.IfyousettheCalibrationModetoRaw,youmustconvertthebinarythermocoupleandCJCvaluestovoltageandthenconverttheCJCdatafromvoltagetotemperature.YoumustconvertthesevaluesinthehostVI.

Page 155: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsingaVItoConvertDatatoTemperatureRefertotheNI9213ConverttoTemperaturepolymorphicVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9213\NI9213GettingStarted\NI9213GettingStarted.lvprojforanexampleofconvertingcalibratedorrawdatatotemperature.YoucanusetheNI9213ConverttoTemperatureVIasasubVIinthehostVI.Openexample

Page 156: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsinganEquationtoConvertBinaryValuestoVoltageYoucanusethefollowingequationinthehostVItoconvertthebinarythermocoupleandCJCvaluestovoltage:Voltage=BinaryValue×78.125mV÷8,388,607where BinaryValueisthevaluereturnedbytheFPGAI/ONode.

Page 157: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsingEquationstoConvertCJCDatafromVoltagetoTemperatureYoucanusethefollowingequationsinthehostVItoconvertCJCdatafromvoltstotemperature:Calculatetheresistanceofthethermistor:RT=(10000×CJCData×32)÷(2.5–CJCData×32)

CalculatetheCJCtemperature:

T=[1÷[A+B(ln(RT))+C(ln(RT))3]]–273.15–1

where T=temperaturein°C

A=1.2873851×10-3

B=2.3575235×10-4

C=9.4978060×10-8

RefertotheNationalInstituteofStandardsandTechnology(NIST)Monograph175thermocouplereferencetablesformoreinformationaboutconvertingandadjustingthermocouplevalues.

Page 158: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9215(FPGAInterface)CompactRIO4-Channel,±10V,16-BitSimultaneousAnalogInputModule

Page 159: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

NoteYoucansimultaneouslyreadfrommultiplechannelsontheNI9215.

Page 160: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionAIx Analoginputchannelx,wherexisthenumberofthechannel.

TheNI9215hasAIchannels0to3.

Page 161: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 162: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

MethodsThisdevicedoesnotsupportanymethods.

Page 163: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionLSBWeight

ReturnstheLSBweightinnV/LSBforthechannel.UsethisvaluetoconvertandcalibrateNI9215dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Offset ReturnsthecalibrationoffsetinnVforthechannel.UsethisvaluetoconvertandcalibrateNI9215dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Page 164: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 165: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.

Page 166: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9215OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 167: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CSeriesModulePropertiesDialogBoxfortheNI9215(FPGAInterface)Right-clickanNI9215CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:

Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.CalibrationMode—SetsthecalibrationmodefortheCSeriesmodule.SelectCalibratedifyouwanttheFPGAI/ONodetoreturncalibrated,fixed-pointdataforthemoduleinunitsofvolts.Thefixed-pointdataissigned,withawordlengthof20bitsandanintegerwordlengthof5bits.SelectRawifyouwanttheFPGAI/ONodetoreturnuncalibrated,binarydataforthemodule.IfyouselectRaw,youmustconvertandcalibratetheanaloginputvaluesinthehostVI.ThedefaultisCalibrated.

Page 168: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9217(FPGAInterface)CompactRIO4-Channel,24-Bit,100ΩRTDAnalogInputModule

Page 169: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

Page 170: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionRTDx RTDinputchannelx,wherexisthenumberofthechannel.

TheNI9217hasRTDchannels0to3.

Page 171: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 172: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

MethodsThisdevicedoesnotsupportanymethods.

Page 173: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionLSBWeight

ReturnstheLSBweightinpΩ/LSBforthechannel.UsethisvaluetoconvertandcalibrateNI9217dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Offset ReturnsthecalibrationoffsetinµΩforthechannel.UsethisvaluetoconvertandcalibrateNI9217dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Page 174: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionConversionTime

Setsthetimeinmillisecondsittakestoacquireconversiondata.ThispropertyoverwritesthevalueyouconfigureintheCSeriesModulePropertiesdialogbox.

ModuleID ReturnsthemoduleID.SerialNumber

Returnstheuniqueserialnumberofthemodule.

VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 175: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.

Page 176: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9217OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 177: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CSeriesModulePropertiesDialogBoxfortheNI9217(FPGAInterface)Right-clickanNI9217CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:

Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.CalibrationMode—SetsthecalibrationmodefortheCSeriesmodule.SelectCalibratedifyouwanttheFPGAI/ONodetoreturncalibrated,fixed-pointdatafromthemoduleinunitsofohms.Thefixed-pointdataissigned,withawordlengthof24bitsandanintegerwordlengthof10bits.SelectRawifyouwanttheFPGAI/ONodetoreturnuncalibrated,binarydatafromthemodule.IfyouselectRaw,youmustconvertandcalibratetheanaloginputvaluesinthehostVI.ThedefaultisCalibrated.ConversionTime—Specifiesthetimeittakestoacquireonepointofdatafromallchannels.Youcanselect200msor2.5ms.

Page 178: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConvertingNominalValuestoTemperatureValuesfortheNI9217(FPGAInterface)SettheCalibrationModetoCalibratedintheCSeriesModulePropertiesdialogboxfortheNI9217ifyouwanttheFPGAI/ONodetoreturncalibrated,fixed-pointdataforthemoduleinunitsofohms.IfyousettheCalibrationModetoRaw,theFPGAI/ONodereturnsuncalibrated,binaryvaluesforthemodule.Afteryouconvertthesebinaryvaluestonominalvalues,youcanconvertthenominalresistancevaluesintotemperaturevalues.YoumustconvertthesevaluesinthehostVI.

Page 179: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsingaVItoConvertValuesRefertotheRTDtoTempVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9217\NI9217GettingStarted\NI9217GettingStarted.lvprojforanexampleofconvertingnominalresistancevaluestotemperature.YoucanusetheRTDtoTempVIasasubVIinthehostVItoconvertnominalresistancevaluestotemperature.Openexample

Page 180: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsinganEquationtoMeasureTemperatureYoucanusealinearizationcurveknownastheCallendar-VanDusenequationinthehostVItomeasurethetemperatureofRTDs.

Page 181: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9219(FPGAInterface)CompactRIO4-Channel,24-BitUniversalAnalogInputModule

Page 182: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

Page 183: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionChx Channelx,wherexisthenumberofthechannel.TheNI9219

haschannels0to3.CJCx Cold-junctioncompensationchannelx,wherexisthenumber

ofthechannel.TheNI9219hasCJCchannels0to3.IfachannelisinThermocouplemode,youcanreadCJCdataforthechannel.YoumustconverttheCJCdatatotemperature.

YoucanreadTEDSinformationfromtheNI9219.

Page 184: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 185: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

MethodsThisdevicedoesnotsupportanymethods.

Page 186: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionVoltageRange SetstherangeofachannelinVoltagemode.ResistanceRange SetstherangeofachannelinResistancemode.RTDRange SetstherangeofachannelinRTDmode.QuarterBridgeRange

SetstherangeofachannelinQuarterBridgemode.

FullBridgeRange SetstherangeofachannelinFullBridgemode.DigitalThreshold SetsthethresholdofachannelinDigitalInmode.

Page 187: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionConversionTime

Setsthetimeittakestoacquireonepointofdatafromallchannels.YoucanselectHighSpeed,Best60HzRejection,Best50HzRejection,orHighResolution.RefertotheNI9219OperatingInstructionsandSpecificationsformoreinformationabouttheseconversiontimes.ThispropertyoverwritesthevalueyouconfigureintheCSeriesModulePropertiesdialogbox.

ModuleID ReturnsthemoduleID.SerialNumber

Returnstheuniqueserialnumberofthemodule.

VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 188: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ExcitationProtectionTheNI9219excitationcircuitisprotectedfromovercurrentandovervoltagefaultconditions.Thecircuitisautomaticallydisabledintheeventofafaultcondition.Wheneverpossible,achannelautomaticallyrecoversafterthefaultisremoved.YoumustwireerrorterminalsontheFPGAI/OPropertyNodestoreceivenotificationofovercurrentandovervoltagefaults.LabVIEWreturnserror65544or65548ifthereisanovercurrentorovervoltagefaultonatleastonechannel.Ifawarningoccurs,onlythechannel(s)withthefaultareaffectedandallotherchannelsonthemodulecontinuetofunctionproperlywithoutinterruption.Ifanerroroccurs,themoduleisunabletorecoverfromthefaultconditionandyoumustrestartthemoduleafterthefaultisremoved.

Page 189: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.

Page 190: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9219OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 191: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

AccessingTEDSInformationfromtheNI9219(FPGAInterface)YoucanaccessTransducerElectronicDataSheet(TEDS)informationfromTEDS-compatibletransducersconnectedtothechannelsofanNI9219.YoumustenableTEDSsupportforthemodulebeforeyoucanreadTEDSinformation.YoucanaccessTEDSinformationonlyfromthehostVI.

Page 192: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

EnablingTEDSSupportfortheNI9219CompletethefollowingstepstoenableTEDSsupportfortheNI9219.

1. ConfiguretheCompactRIOsystem,andaddanNI9219.2. Right-clicktheNI9219intheProjectExplorerwindowand

selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

3. PlaceacheckmarkintheEnableTEDSSupportcheckbox.4. ClicktheOKbutton.

TheFPGAVImusthaveanFPGAI/ONodeoranFPGAI/OPropertyNodethatcommunicateswiththeNI9219.Ifitdoesnot,theLabVIEWFPGACompileServeroptimizestheVIwhenyoucompileit,andthehostVIcannotcommunicatewiththeNI9219.

Page 193: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ReadingTEDSInformationintheHostVIAfteryoudeveloptheFPGAVIandopenareferencetoitinthehostVI,completethefollowingstepstoreadTEDSinformationfromtheNI9219.

1. PlaceanInvokeMethodfunctionontheblockdiagram.2. WiretheFPGAVIReferenceOutoutputoftheOpenFPGAVI

ReferencefunctiontotheFPGAVIReferenceIninputoftheInvokeMethodfunction.

3. Right-clickMethodontheInvokeMethodfunctionandselectReadTEDS.

4. IfyouareusingtheNI9219withanRSeriesdevice,right-clicktheConnectorinputoftheInvokeMethodfunctionandselectCreate»ConstantorCreate»Controlfromtheshortcutmenu.ConfiguretheconstantorcontrolfortheslotoftheNI9219.

5. Right-clicktheSlotinputoftheInvokeMethodfunctionandselectCreate»ConstantorCreate»Controlfromtheshortcutmenu.ConfiguretheconstantorcontrolfortheslotoftheNI9219.Validslotvaluesare1throughN,whereNisthenumberofslotsinthechassis.

6. Right-clicktheChannelinputoftheInvokeMethodfunctionandselectCreate»Constantfromtheshortcutmenu.ConfiguretheconstantforthechannelontheNI9219forwhichyouwanttoreadTEDSinformation.Validchannelvaluesare0through3.

7. PlaceaTEDS_ParseBinaryTEDSVI,availableontheTEDSpalette,ontheblockdiagram.

Place Find8. WiretheTEDSBinaryoutputoftheInvokeMethodfunctionto

thebinaryTEDSarrayinputoftheTEDS_ParseBinaryTEDSVI.

9. Wirethev0.9(TEDS)outputoftheInvokeMethodfunctiontothev0.9TEDS(F)inputoftheTEDS_DatatoTableVI.

10. WiretheTEDSdataoutoutputoftheTEDS_ParseBinaryVItotheTEDSdataininputoftheTEDS_DatatoTableVI.

WhenyouruntheVI,LabVIEWreadstheTEDSfromthesensor,andtheLabVIEWTEDSToolkitparsestheTEDSinformationandoutputsitasa

Page 194: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

table.

NoteYoumustenableerrorhandlingintheFPGAVItoreceiveconsistenterrormessagesinthehostVI.

RefertotheNI9219TEDSVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9219\NI9219TEDSdirectoryforanexampleofaccessingTEDSinformation.Openexample

Page 195: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CSeriesModulePropertiesDialogBoxfortheNI9219(FPGAInterface)Right-clickanNI9219CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:

Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.CalibrationMode—SetsthecalibrationmodefortheCSeriesmodule.SelectCalibratedifyouwanttheFPGAI/ONodetoreturncalibrated,fixed-pointdatafromthemodule.Refertothetablebelowforinformationabouttheunitsandencodingofthefixed-pointdatadependingonthechannelmode.IfyouselectCalibratedandanNI9219channelisinThermocouplemode,youmustconverttheCJCdatainthehostVI.SelectRawifyouwanttheFPGAI/ONodetoreturncalibrated,binarydatafromthemodule.IfyouselectRaw,youmustconverttheanaloginputvaluesinthehostVI.ThedefaultisCalibrated.

ChannelMode

UnitsofFixed-PointData

IntegerType

WordLength

IntegerWordLength

Voltage Volts Signed 32bits 7bitsCurrent Amps Signed 32bits –1bitsResistanceandRTD

Ohms Unsigned 32bits 14bits

Thermocouple Volts Signed 32bits –1bitsQuarter Volts/volt Unsigned 32bits 14bits

Page 196: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

BridgeHalfBridge Volts/volt Signed 32bits 7bitsFullBridge Volts/volt Signed 32bits –1bitsChannels—Specifiesthechannel(s)forwhichyouwanttoselectthemodeandrange.SelectedChannel(s)Settings—Specifiesthemodeandrangeforeachchannel.

ChannelMode—Setsthemodefortheselectedchannel(s).Range—Setstherangefortheselectedchannel(s).Threshold—SetstheDigitalInthresholdfortheselectedchannel(s).ThisoptionisavailableonlyifyouselectDigitalInforthechannelmode.

ConversionTime—Specifiesthetimeittakestoacquireonepointofdatafromallchannels.YoucanselectHighSpeed,Best60HzRejection,Best50HzRejection,orHighResolution.RefertotheNI9219OperatingInstructionsandSpecificationsformoreinformationabouttheseconversiontimes.EnableTEDSSupport—PlaceacheckmarkinthischeckboxifyouwanttoenableTEDSsupportintheFPGAandhostVIsforthismodule.

Page 197: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConvertingNI9219Data(FPGAInterface)SettheCalibrationModetoCalibratedintheCSeriesModulePropertiesdialogboxfortheNI9219ifyouwanttheFPGAI/ONodetoreturncalibrated,fixed-pointdatafromthemodule.IfyousettheCalibrationModetoCalibratedandanNI9219channelisinThermocouplemode,youmustconvertthefixed-pointCJCdatatobinaryCJCdataandthenconvertthebinaryCJCdatatotemperature.SettheCalibrationModetoRawifyouwanttheFPGAI/ONodetoreturnbinaryvaluesfromthemodulethatarecalibratedbasedontherangeoftheselectedmode.IfyousettheCalibrationModetoRaw,youmustconvertthebinaryvaluestomeaningfulengineeringunits.IfyousettheCalibrationModetoRawandanNI9219channelisinThermocouplemode,youalsomustconvertthebinaryCJCdatatotemperature.YoumustconvertthesevaluesinthehostVI.

Page 198: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsingaVItoConvertandAdjustBinaryValuesRefertotheNI9219BinarytoNominalVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9219\NI9219ScalingUtilitydirectoryforanexampleofconvertingandadjustingbinaryinputvalues.YoucanusethepolymorphicNI9219BinarytoNominalVIasasubVIinthehostVItoconvertandadjustbinaryinputvalues.

Page 199: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsinganEquationtoConvertBinaryValuesYoucanusethefollowingequationinthehostVItoconvertthebinaryinputvaluestoengineeringunitsforeachchannel:

EngineeringUnits*=BinaryValue×(RangeHigh–RangeLow)÷224

where BinaryValueisthevaluereturnedbytheFPGAI/ONode

RangeHighistheuppervalueoftheinputrange†

RangeLowisthelowervalueoftheinputrange.*EngineeringunitsareequivalenttotheunitsofthemodeinputrangeintheNI9219OperatingInstructionsandSpecifications.†RefertotheNI9219OperatingInstructionsandSpecificationsfortheinputrangesforeachmode.Formodesthathaveonlyoneinputrangevalue,use0asthelowervalueoftheinputrange.DigitalInDigitalInmodereturnsaBooleanvalue,whereFALSEisequivalenttoanyvoltagebelowthespecifiedthresholdandTRUEisequivalenttoanyvoltageabovethespecifiedthreshold.OpenContactOpenContactmodereturnsaBooleanvalue,whereFALSEindicatesaclosedcircuitandTRUEindicatesaopencircuit.

Page 200: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsinganEquationtoConvertFixed-PointCJCDataYoucanusethefollowingequationinthehostVItoconvertfixed-pointCJCdatatobinaryCJCdata:

BinaryCJCData=(Fixed-PointCJCData)÷(0.250÷(224–1))

Page 201: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsingEquationstoConvertBinaryCJCDataYoucanusethefollowingequationsinthehostVItoconvertbinaryCJCdatatotemperature:Calculatetheresistanceofthethermistor:

RT=10000÷[(216÷BinaryCJCData)–1]

CalculatetheCJCtemperature:

T=[1÷[A+B(ln(RT))+C(ln(RT))3]]–274.65

where T=temperaturein°C

A=1.2873851×10-3

B=2.3575235×10-4

C=9.4978060×10-8

RefertotheNationalInstituteofStandardsandTechnology(NIST)Monograph175thermocouplereferencetablesformoreinformationaboutconvertingandadjustingthermocouplevalues.

Page 202: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringModesandRangesfortheNI9219(FPGAInterface)YoucanconfigurethemodeandrangeforeachchannelontheNI9219atedittimeusingtheCSeriesModulePropertiesdialogbox.YoucanprogrammaticallychangetherangeforeachchannelatruntimeusingtheFPGAI/OPropertyNode.TheexecutionofanI/OPropertyNodethatisconfiguredwithaRangepropertyoverwritesthevalueyouconfiguredintheCSeriesModulePropertiesdialogbox.

Page 203: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringModesandRangesUsingtheCSeriesModulePropertiesDialogBoxCompletethefollowingstepstoconfigurethechannel(s)modeandrangeusingtheCSeriesModulePropertiesdialogbox.

1. ConfiguretheCompactRIOsystem,andaddanNI9219.2. Right-clicktheNI9219intheProjectExplorerwindowand

selectPropertiesfromtheshortcutmenutodisplaytheCSeriesModulePropertiesdialogbox.

3. Selectthechannel(s)forwhichyouwanttoconfigurethemodeandrangefromtheChannelstable.Youcanselectmorethanonechannelbyholdingthe<Ctrl>or<Shift>keywhenselectingchannels.

4. Selectthemodeforthechannel(s)fromtheChannelModepull-downmenu.IfyouselectDigitalInmode,skipthefollowingstepsandsetthethreshold.IfyouselectOpenContactmode,skipthefollowingstep.

5. SelecttherangefromtheRangepull-downmenufortheselectedchannel(s).

6. ClicktheOKbutton.7. SelectFile»SaveAllintheProjectExplorerwindow.

Page 204: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringRangesUsingtheFPGAI/OPropertyNodeCompletethefollowingstepstoconfigurethechannelrangeusingtheFPGAI/OPropertyNode.

1. CreateFPGAI/OitemsforthechanneloftheNI9219forwhichyouwanttoconfigureaRangeproperty.ThechannelmustbesettoVoltagemode,Resistancemode,RTDmode,QuarterBridgemode,orFullBridgemode.

2. PlaceanFPGAI/OPropertyNodeontheblockdiagramandconfigureitfortheNI9219channelforwhichyouwanttoconfiguretherange.

3. ClickthePropertysectionandselecttheRangepropertyfromtheshortcutmenu.

4. Right-clicktheRangeinputandselectCreate»Controlfromtheshortcutmenu.

5. OnthefrontpaneloftheVI,selectaratefromtheRangepull-downmenu.

YoucanchangethechannelrangeatruntimebywritingtothecontrolfromthehostVI.RefertotheNI9219GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9219\NI9219GettingStarteddirectoryforanexampleofchangingachannelrangeusingtheFPGAI/OPropertyNode.Openexample

Page 205: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheDigitalInThresholdfortheNI9219(FPGAInterface)ChannelsinDigitalInmodeontheNI9219havea0–60Vunipolarthreshold.ThedefaultvalueoftheDigitalInmodethresholdis1.5V.YoucanconfigurethethresholdatedittimeusingtheCSeriesModulePropertiesdialogbox.YoucanprogrammaticallychangethethresholdatruntimeusingtheFPGAI/OPropertyNode.TheexecutionofanI/OPropertyNodethatisconfiguredwithaDigitalThresholdpropertyoverwritesthevalueyouconfiguredintheCSeriesModulePropertiesdialogbox.

Page 206: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheDigitalInThresholdUsingtheCSeriesModulePropertiesDialogBoxCompletethefollowingstepstoconfiguretheDigitalInthresholdfortheNI9219usingtheCSeriesModulePropertiesdialogbox.

1. ConfiguretheCompactRIOsystem,andaddanNI9219.2. Right-clicktheNI9219intheProjectExplorerwindowand

selectPropertiesfromtheshortcutmenutodisplaytheCSeriesModulePropertiesdialogbox.

3. Selectthechannel(s)forwhichyouwanttoconfiguretheDigitalInthresholdfromtheChannelstable.Youcanselectmorethanonechannelbyholdingthe<Ctrl>or<Shift>keywhenselectingchannels.

4. SelectDigitalInfromtheChannelModepull-downmenu.5. Enteravaluebetween0and60intheThresholdtextboxforthe

selectedchannel(s).6. ClicktheOKbutton.7. SelectFile»SaveAllintheProjectExplorerwindow.

Page 207: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheDigitalInThresholdUsingtheFPGAI/OPropertyNodeCompletethefollowingstepstoconfiguretheDigitalInthresholdusingtheFPGAI/OPropertyNode.

1. CreateFPGAI/OitemsforthechanneloftheNI9219forwhichyouwanttoconfiguretheDigitalThresholdproperty.ThechannelmustbesettoDigitalInmode.

2. PlaceanFPGAI/OPropertyNodeontheblockdiagramandconfigureitfortheNI9219channelforwhichyouwanttoconfiguretheDigitalInthreshold.

3. ClickthePropertysectionandselectDigitalThresholdfromtheshortcutmenu.

4. Right-clicktheDigitalThresholdinputandselectCreate»Controlfromtheshortcutmenu.

5. OnthefrontpaneloftheVI,enterabinaryvalueintheDigitalThresholdcontrol.YoucanusethefollowingequationinthehostVItocalculatethethresholdvalue:Threshold(binary)=Threshold(volts)x224÷60

YoucanchangetheDigitalInthresholdatruntimebywritingtothecontrolfromthehostVI.RefertotheNI9219DigitalThresholdVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9219\NI9219DigitalThresholddirectoryforanexampleofconfiguringtheNI9219DigitalInthresholdusingtheFPGAI/OPropertyNode.Openexample

Page 208: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9221(FPGAInterface)CompactRIO8-Channel,±60V,12-BitAnalogInputModule

Page 209: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

Page 210: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionAIx Analoginputchannelx,wherexisthenumberofthechannel.

TheNI9221hasAIchannels0to7.

Youcanconfiguretheminimumtimebetweenconversionsandunderstandscanningforthesechannels.

Page 211: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 212: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

MethodsThisdevicedoesnotsupportanymethods.

Page 213: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionLSBWeight

ReturnstheLSBweightinnV/LSBforthechannel.UsethisvaluetoconvertandcalibrateNI9221dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Offset ReturnsthecalibrationoffsetinnVforthechannel.UsethisvaluetoconvertandcalibrateNI9221dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Page 214: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 215: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.

Page 216: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9201/9221OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 217: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9225(FPGAInterface)CompactRIO3-Channel,300Vrms,24-BitSimultaneousAnalogInputModule

Page 218: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

NoteYoucansimultaneouslyreadfromorwritetomultiplechannelsontheNI9225.YoucanalsosynchronizeanNI9225modulewithotherNI9225/9229/923xmodules.

Page 219: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionAIx Analoginputchannelx,wherexisthenumberofthechannel.

TheNI9225hasAIchannels0to2.DonotaccessAIchannelsonmultiplemodulesinthesameFPGAI/ONodeifthemodulesarenotsynchronizedordonotusethesamedatarate.

OnboardClock

GivesaccesstotheonboardclockintheLabVIEWblockdiagram.TheOnboardClockfrequencyis12.8MHz.UsetheFPGAI/ONodeinasingle-cycleTimedLooptoaccessthischannel.YoumustexporttheOnboardClockoftheNI9225toaccessthischannel.

Start ChannelthatcontrolswhentheNI9225startsacquiringdata.IfTRUEiswrittentotheStartchannel,theNI9225startsacquiringdata.WhentheNI9225isacquiringdata,youmustwriteTRUEtotheStopchannelbeforeyoucanaccesspropertiesforthemodule.IfFALSEiswrittentotheStartchannel,nooperationisperformed.

RefertotheNI9225GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9225\NI9225GettingStarteddirectoryforanexampleofusingtheStartandStopchannels.

OpenexampleStop ChannelthatcontrolswhentheNI9225stopsacquiringdata.

IfTRUEiswrittentotheStopchannel,theNI9225stopsacquiringdata.WhentheNI9225isacquiringdata,youmustwriteTRUEtotheStopchannelbeforeyoucanaccesspropertiesforthemodule.IfFALSEiswrittentotheStopchannel,nooperationisperformed.

RefertotheNI9225GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9225\NI9225GettingStarteddirectoryforanexampleofusingtheStartand

Page 220: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Stopchannels.

Openexample

Page 221: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 222: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

MethodsThisdevicedoesnotsupportanymethods.

Page 223: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionLSBWeight

ReturnstheLSBweightinpV/LSBforthechannel.UsethisvaluetoconvertandcalibrateNI9225dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Offset ReturnsthecalibrationoffsetinuVforthechannel.UsethisvaluetoconvertandcalibrateNI9225dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Page 224: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionDataRate SetstherateatwhichtheNI9225acquiresdata.ModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 225: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopYoucanusetheOnboardClockchannelinthesingle-cycleTimedLoop.YoucannotusetheotherchannelsontheNI9225withthesingle-cycleTimedLoop.RefertotheUnderstandingLoopTimingfortheNI9225/9229/923xtopicforinformationaboutlooptimingforthismodule.

Page 226: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9225OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 227: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

AcquiringDatafromanNI9225/9229/9239(FPGAInterface)TheNI9225/9229/9239hasanaloginputchannelsthataresampledsimultaneouslyatthedatarateforwhichyouhaveconfiguredthemodule.UsetheStartandStopchannelsoftheNI9225/9229/9239toputthemoduleinandoutofacquisitionmode.Inacquisitionmode,theNI9225/9229/9239canonlyacquiredata.YoucanusetheFPGAI/ONodetoreadthedatafromthemodule.YoucannotperformotheroperationswiththeNI9225/9229/9239,suchasaccessingproperties,whilethemoduleisinacquisitionmode.

NoteYoumustcreateFPGAI/OitemsfortheNI9225/9229/9239beforeyoucanconfiguretheitemsusingtheFPGAI/ONode.

Page 228: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

PuttingtheModuleinAcquisitionModeConfigureanFPGAI/ONodewiththeStartchanneloftheNI9225/9229/9239.WireaBooleanconstantsettoTRUEtotheStartinputoftheFPGAI/ONodetosendasynchronizationpulsetothemodule.Themodulestartsacquiringdataatthedatarateyouconfigure.

Page 229: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ReadingDatafromtheModuleWhenthemodulestartsacquiringdata,youcanuseanFPGAI/ONodetoreaddatafromthemodule.YoucanconnecttheAIoutputoftheFPGAI/ONodetovarioustypesoffunctions,includinganFPGAMemoryfunctionoranFPGAFIFOfunction.Ifyoureadfrommultiplechannelsonthemodule,placethechannelsinthesameFPGAI/ONodetoensurethattheVIreadsthedatasynchronously.BecausetheNI9225/9229/9239internallyacquiresdataataspecifiedrate,theFPGAI/ONodedoesnotreturndatauntilnewdatahasbeenacquiredbythemodule.IftheNI9225/9229/9239didnotstartacquiringdataorstopsacquiringdatawhileanFPGAI/ONodeiswaitingfordatafromthemodule,theFPGAI/ONodereturnsatimeouterror.

Page 230: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ExitingAcquisitionModeConfigureanFPGAI/ONodewiththeStopchanneloftheNI9225/9229/9239.WriteaTRUEtotheStopinput.ThemoduleisnolongerinacquisitionmodeandnowyoucanaccessNI9225/9229/9239properties.

Page 231: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ExamplesRefertotheNI9225GettingStarted(FPGA)VIinthelabview\examples\CompactRIO\ModuleSpecific\NI9225\NI9225GettingStarteddirectoryforanexampleofreadingfromtheNI9225.OpenNI9225exampleRefertotheNI9229GettingStarted(FPGA)VIinthelabview\examples\CompactRIO\ModuleSpecific\NI9229\NI9229GettingStarteddirectoryforanexampleofreadingfromtheNI9229.OpenNI9229exampleRefertotheNI9239GettingStarted(FPGA)VIinthelabview\examples\CompactRIO\ModuleSpecific\NI9239\NI9239GettingStarteddirectoryforanexampleofreadingfromtheNI9239.OpenNI9239example

Page 232: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CSeriesModulePropertiesDialogBoxfortheNI9225,NI9229,andNI9239(FPGAInterface)Right-clickanNI9225,NI9229,orNI9239CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:

Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.CalibrationMode—SetsthecalibrationmodefortheCSeriesmodule.SelectCalibratedifyouwanttheFPGAI/ONodetoreturncalibrated,fixed-pointdatafromthemoduleinunitsofvolts.Thefixed-pointdataissigned,withawordlengthof24bitsandanintegerwordlengthof10bitsfortheNI9225,7bitsfortheNI9229,and5bitsfortheNI9239.SelectRawifyouwanttheFPGAI/ONodetoreturnuncalibrated,binarydatafromthemodule.IfyouselectRaw,youmustconvertandcalibratetheanaloginputvaluesinthehostVI.ThedefaultisCalibrated.MasterTimebaseSource—Specifiesthemastertimebasesourcethatthemoduleuses.ExportOnboardClock—Placeacheckmarkinthischeckboxifyouwanttomakethismoduleaccessibleasamastertimebasesourcetoothermodules.DataRate—Specifiestherateatwhichthemoduleacquiresdata.

Page 233: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheMasterTimebaseSourcefortheNI9225/9229/9239(FPGAInterface)Bydefault,theNI9225/9229/9239moduleusestheinternal12.8MHzOnboardClockasthemastertimebasesource.InasystemwithmultipleNI9225/9229/923xmodules,youcanconfigureoneoftheNI9225/9229/923xmodulesasthemastertimebasesource(master)andconfiguretheotherNI9225/9229/923xmodulestousethatmastertimebasesource(slaves).SharingthesamemastertimebasesourceenablesyoutosynchronizemultipleNI9225/9229/923xmodules.TheNI9225/9229/9239dividesthemastertimebasesourcetoacquiredataatthedatarateyouconfigure.

NoteThecRIO-9151RSeriesExpansionchassisdoesnotsupportsynchronizingmultipleNI9225/9229/923xmodules.

Page 234: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheOnboardClockastheMasterTimebaseSourceCompletethefollowingstepstoconfiguretheinternal12.8MHzOnboardClockasthemastertimebasesource.

1. ConfiguretheCompactRIOsystem,andaddanNI9225/9229/9239.

2. Right-clicktheNI9225/9229/9239intheProjectExplorerwindowandselectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

3. Select<OnboardClock>fromtheMasterTimebaseSourcepull-downmenu.

4. ClicktheOKbutton.5. SelectFile»SaveAllintheProjectExplorerwindow.

Page 235: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringaMasterModuletoSharetheMasterTimebaseSourcewithSlavesCompletethefollowingstepstoconfigurethemastertimebasesourceforamastermoduleandslaves.

1. ConfiguretheCompactRIOsystem,andaddanNI9225/9229/9239.

2. Right-clicktheNI9225/9229/9239intheProjectExplorerwindowandselectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

3. Select<OnboardClock>fromtheMasterTimebaseSourcepull-downmenu.

4. PlaceacheckmarkintheExportOnboardClockcheckbox.5. Right-clicktheNI9225/9229/9239youwanttoconfigureasa

slaveintheProjectExplorerwindowandselectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

6. SelectthenameofthemastermodulefromtheMasterTimebaseSourcepull-downmenu.

7. Repeatsteps5and6foreachslavemoduleyouwanttoconfigure.

8. ClicktheOKbutton.9. SelectFile»SaveAllintheProjectExplorerwindow.

Page 236: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheNI9225/9229/9239DataRate(FPGAInterface)YoucanconfigurethedatarateatwhichtheNI9225/9229/9239moduleacquiresandreturnsdataatedittimeusingtheCSeriesModulePropertiesdialogbox.YoucanprogrammaticallychangethedatarateatruntimeusingtheFPGAI/OPropertyNode.TheexecutionofanI/OPropertyNodethatisconfiguredwithaDataRatepropertyoverwritesthevalueyouconfiguredintheCSeriesModulePropertiesdialogbox.

Page 237: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheDataRateUsingtheCSeriesModulePropertiesDialogBoxCompletethefollowingstepstoconfigurethedataratefortheNI9225/9229/9239usingtheCSeriesModulePropertiesdialogbox.

1. ConfiguretheCompactRIOsystem,andaddanNI9225/9229/9239.

2. Right-clicktheNI9225/9229/9239intheProjectExplorerwindowandselectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

3. SelecttheratefromtheDataRatepull-downmenu.4. ClicktheOKbutton.5. SelectFile»SaveAllintheProjectExplorerwindow.

Page 238: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheDataRateUsingtheFPGAI/OPropertyNodeCompletethefollowingstepstoconfigurethedatarateusingtheFPGAI/OPropertyNode.

1. PlaceanFPGAI/OPropertyNodeontheblockdiagramandconfigureitfortheNI9225/9229/9239.

2. ClickthePropertysectionandselectDataRatefromtheshortcutmenu.

3. Right-clicktheDataRateinputandselectCreate»Controlfromtheshortcutmenu.

4. OnthefrontpaneloftheVI,selectaratefromtheDataRatepull-downmenu.

YoucanchangethedatarateatruntimebywritingtothecontrolfromthehostVI.RefertotheNI9225GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9225\NI9225GettingStarteddirectoryforanexampleofconfiguringtheNI9225datarateusingtheFPGAI/OPropertyNode.OpenNI9225exampleRefertotheNI9229GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9229\NI9229GettingStarteddirectoryforanexampleofconfiguringtheNI9229datarateusingtheFPGAI/OPropertyNode.OpenNI9229exampleRefertotheNI9239GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9239\NI9239GettingStarteddirectoryforanexampleofconfiguringtheNI9239datarateusingtheFPGAI/OPropertyNode.OpenNI9239example

NoteTheDataRatepropertyreturnserror65538ifthemoduleisacquiringdata.YoumustusetheStopchanneltostopacquiringdatabeforeyoucanwritepropertiestothemodules.RefertotheNI9225,NI9229,andNI9239helptopicsformoreinformationaboutmoduleproperties.

Page 239: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

SynchronizingMultipleNI9225/9229/923xModules(FPGAInterface)YoucansynchronizemultipleNI9225/9229/923xmodulesthatareconnectedtothesameFPGAdevice.TosynchronizemultipleNI9225/9229/923xmodules,themodulesmustusethesamemastertimebasesource,themodulesmuststartacquisitionmodeatthesametime,andasingleFPGAI/ONodefunctionmustreadthesynchronousdata.YoumustcreateFPGAI/OitemsfortheNI9225/9229/923xbeforeyoucanconfiguretheitemsusingtheFPGAI/ONode.DeveloptheFPGAVItomeetthefollowingguidelines.

NoteSynchronizingtheNI9234modulewithNI9225/9229/9233/9235/9236/9237/9239modulesdependsonthefrequencyofthesharedmastertimebase.

NoteThecRIO-9151RSeriesExpansionchassisdoesnotsupportsynchronizingmultipleNI9225/9229/923xmodules.

Page 240: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

SharingaMasterTimebaseSourceConfigurethemodulestosharethesamemastertimebasesource.

Page 241: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

StartingtheSynchronizedAcquisitionConfigureanFPGAI/ONodewithStartchannelsfortheNI9225/9229/923xmodulesyouwanttosynchronizeandwireaBooleanconstantsettoTRUEtoeachStartchannel.

NoteEnsurethatallI/OchannelsareinthesameFPGAI/ONode.Otherwise,theFPGAI/ONodewillnotreturnsynchronizeddata.

Page 242: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

AcquiringDatafromSynchronizedNI9225/9229/923xModuleswiththeSameDataRateConfigureanFPGAI/ONodewithallofthechannelsfromwhichyouwanttosynchronouslysample.

NoteEnsurethatallI/OchannelsareinthesameFPGAI/ONode.Otherwise,theFPGAI/ONodewillnotreturnsynchronizeddata.

RefertotheSynchronizingNI923xModules(FPGA)VIinthelabview\examples\CompactRIO\ModuleSpecific\NI923x\SynchronizingNI923xModulesdirectoryforanexampleofsynchronizingmultiplemoduleswiththesamedatarate.Openexample

Page 243: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

AcquiringDatafromSynchronizedNI9225/9229/923xModuleswithDifferentDataRatesIfyousynchronizeNI9225/9229/923xmodulesthatareconfiguredfordifferentdatarates,createaseparateloopforeachdatarateintheFPGAVI.Ineachloop,configureanFPGAI/ONodewithallofthechannelsthatareconfiguredforthedatarateofthatloop.IfyouplaceNI9225/9229/923xchannelsthatareconfiguredfordifferentdataratesinthesameloop,LabVIEWreturnsanoverrunwarningfromtheFPGAI/ONode(error65539)whenyouruntheVI.ThereisadelaybeforetheFPGAI/ONodereturnsthefirstdatapoint.ThelengthofthedelaydependsonthedatarateoftheNI9225/9229/923x.

Page 244: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UnderstandingLoopTimingfortheNI9225/9229/923x(FPGAInterface)TheNI9225/9229/923xisinternallytimed.DonotusetheLoopTimerorWaitfunctionsinaloopwithanFPGAI/ONodethatacquiresdatafromanNI9225/9229/923x.WhenyoucreatealoopthatreadsdatafromanNI9225/9229/923x,makesuretheloopdoesnotexecuteslowerthanthedatarateoftheNI9225/9229/923x.IftheloopexecutiontimeisslowerthantheNI9225/9229/923xdatarate,theFPGAI/ONodereturnsanoverrunwarningandcontinuestoreadNI9225/9229/923xdata.TheoverrunwarningmeansthatthedatatheFPGAI/ONodereturnsisvalid,butthefunctionmissedoneormoredatapointssincethelasttimeitreaddatafromthemodule.Thefunctionreturnstheoverrunwarningwhenallofthefollowingconditionsaretrue:

TheNI9225/9229/923xisinacquisitionmode.AnFPGAI/ONodethatisacquiringdatafromtheNI9225/9229/923xexecutesatleastonceafteryouputthemoduleinacquisitionmode.TheFPGAI/ONodedidnotreadoneormoredatapointssincetheprevioustimethefunctionexecuted.

IftheapplicationacquiresmultiplebuffersofdatafromanNI9225/9229/923xandthetimingrelationshipbetweenthemisnotimportant,youcanignoretheoverrunwarningreturnedwiththefirstpointofeachbuffer.Toavoidoverrunwarnings,developtheFPGAVItomeetthefollowingguidelines:

ReadingfrommultipleNI9225/9229/923xmodulesinthesameloop—UseoneFPGAI/ONodetoreadtheNI9225/9229/923xchannels.YoualsomustconfiguretheNI9225/9229/923xmodulestoshareamastertimebasesourceandhavethesamedatarate.ReadingfromtheNI9225/9229/923xandadifferentanaloginputmoduleinthesameloop—IftherateatwhichyoucanacquiredatafromtheotherCSeriesmoduleisasfastorfasterthanthedatarateconfiguredfortheNI9225/9229/923x,youcanreadfrombothmodulesinthesameloop.Ifyouusethesame

Page 245: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodetoreaddatafromthemodules,theFPGAI/ONodedoesnotreturndatafortheothermoduleuntiltheNI9225/9229/923xacquiresdata.However,ifthemodulehasaslowerdataratethantheNI9225/9229/923xandyoureadfromthemodulesinthesameloop,theFPGAI/ONodefortheNI9225/9229/923xreturnsanoverrunwarningandcontinuesreadingdata.Toavoidmissingdata,youcaneitherchangethedatarateoftheNI9225/9229/923xorreadfromeachmoduleinadifferentloop.

Page 246: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9229(FPGAInterface)CompactRIO4-Channel,±60V,24-BitSimultaneousAnalogInputModule

Page 247: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

NoteYoucansimultaneouslyreadfromorwritetomultiplechannelsontheNI9229.YoualsocansynchronizeanNI9229modulewithotherNI9225/9229/923xmodules.

Page 248: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionAIx Analoginputchannelx,wherexisthenumberofthechannel.

TheNI9229hasAIchannels0to3.DonotaccessAIchannelsonmultiplemodulesinthesameFPGAI/ONodeifthemodulesarenotsynchronizedordonotusethesamedatarate.

OnboardClock

GivesaccesstotheonboardclockintheLabVIEWblockdiagram.TheOnboardClockfrequencyis12.8MHz.UsetheFPGAI/ONodeinasingle-cycleTimedLooptoaccessthischannel.YoumustexporttheOnboardClockoftheNI9229toaccessthischannel.

Start ChannelthatcontrolswhentheNI9229startsacquiringdata.IfTRUEiswrittentotheStartchannel,theNI9229startsacquiringdata.WhentheNI9229isacquiringdata,youmustwriteTRUEtotheStopchannelbeforeyoucanaccesspropertiesforthemodule.IfFALSEiswrittentotheStartchannel,nooperationisperformed.

RefertotheNI9229GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9229\NI9229GettingStarteddirectoryforanexampleofusingtheStartandStopchannels.

OpenexampleStop ChannelthatcontrolswhentheNI9229stopsacquiringdata.

IfTRUEiswrittentotheStopchannel,theNI9229stopsacquiringdata.WhentheNI9229isacquiringdata,youmustwriteTRUEtotheStopchannelbeforeyoucanaccesspropertiesforthemodule.IfFALSEiswrittentotheStopchannel,nooperationisperformed.

RefertotheNI9229GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9229\NI9229GettingStarteddirectoryforanexampleofusingtheStartand

Page 249: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Stopchannels.

Openexample

Page 250: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 251: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

MethodsThisdevicedoesnotsupportanymethods.

Page 252: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionLSBWeight

ReturnstheLSBweightinpV/LSBforthechannel.UsethisvaluetoconvertandcalibrateNI9229dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Offset ReturnsthecalibrationoffsetinnVforthechannel.UsethisvaluetoconvertandcalibrateNI9229dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Page 253: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionDataRate SetstherateatwhichtheNI9229acquiresdata.ModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 254: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopYoucanusetheOnboardClockchannelinthesingle-cycleTimedLoop.YoucannotusetheotherchannelsontheNI9229withthesingle-cycleTimedLoop.RefertotheUnderstandingLoopTimingfortheNI9225/9229/923xtopicforinformationaboutlooptimingforthismodule.

Page 255: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9229/9239OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 256: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9233(FPGAInterface)CompactRIO4-Channel,±5V,24-BitIEPEAnalogInputModule

Page 257: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

NoteYoucansynchronizeanNI9233modulewithotherNI9225/9229/923xmodules.

Page 258: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionAIx Analoginputchannelx,wherexisthenumberofthechannel.

TheNI9233hasAIchannels0to3.DonotaccessAIchannelsonmultiplemodulesinthesameFPGAI/ONodeifthemodulesarenotsynchronizedordonotusethesamedatarate.

12.8MHzTimebase

12.8MHzinternalclockoftheNI9233.UsetheFPGAI/ONodeinasingle-cycleTimedLooptoaccessthischannel.Youmustexportthe12.8MHztimebaseoftheNI9233toaccessthischannel.Ifyoudonotexportthe12.8MHztimebaseandtrytoaccessthe12.8MHzTimebasechannel,LabVIEWreturnsacodegenerationerrorwhenyoutrytocompiletheFPGAVI.

Start ChannelthatcontrolswhentheNI9233startsacquiringdata.IfTRUEiswrittentotheStartchannel,theNI9233startsacquiringdata.WhentheNI9233isacquiringdata,youmustwriteTRUEtotheStopchannelbeforeyoucanaccesspropertiesorTEDSinformationforthemodule.IfFALSEiswrittentotheStartchannel,nooperationisperformed.

RefertotheNI9233GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9233\NI9233GettingStarteddirectoryforanexampleofusingtheStartandStopchannels.

OpenexampleStop ChannelthatcontrolswhentheNI9233stopsacquiringdata.

IfTRUEiswrittentotheStopchannel,theNI9233stopsacquiringdata.WhentheNI9233isacquiringdata,youmustwriteTRUEtotheStopchannelbeforeyoucanaccesspropertiesorTEDSinformationforthemodule.IfFALSEiswrittentotheStopchannel,nooperationisperformed.

RefertotheNI9233GettingStartedVIinthe

Page 259: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

labview\examples\CompactRIO\ModuleSpecific\NI9233\NI9233GettingStarteddirectoryforanexampleofusingtheStartandStopchannels.

Openexample

Page 260: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 261: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

MethodsThisdevicedoesnotsupportanymethods.

Page 262: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionLSBWeight

ReturnstheLSBweightinpV/LSBforthechannel.UsethisvaluetoconvertandcalibrateNI9233dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Offset ReturnsthecalibrationoffsetinnVforthechannel.UsethisvaluetoconvertandcalibrateNI9233dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Page 263: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionDataRate SetstherateatwhichtheNI9233acquiresdata.ModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 264: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopYoucanusethe12.8MHzTimebasechannelinthesingle-cycleTimedLoop.YoucannotusetheotherchannelsontheNI9233withthesingle-cycleTimedLoop.RefertotheUnderstandingLoopTimingfortheNI9225/9229/923xtopicforinformationaboutlooptimingforthismodule.

Page 265: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9233OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 266: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

AccessingTEDSInformationfromtheNI9233(FPGAInterface)YoucanaccessTransducerElectronicDataSheet(TEDS)informationfromTEDS-compatibletransducersconnectedtothechannelsofanNI9233.YoumustenableTEDSsupportforthemodulebeforeyoucanreadTEDSinformation.YoucanaccessTEDSinformationonlyfromthehostVI.

Page 267: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

EnablingTEDSSupportfortheNI9233CompletethefollowingstepstoenableTEDSsupportfortheNI9233.

1. ConfiguretheCompactRIOsystem,andaddanNI9233.2. Right-clicktheNI9233intheProjectExplorerwindowand

selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

3. PlaceacheckmarkintheEnableTEDSSupportcheckbox.4. ClicktheOKbutton.

TheFPGAVImusthaveanFPGAI/ONodethatcommunicateswiththeNI9233.Ifitdoesnot,theLabVIEWFPGACompileServeroptimizestheVIwhenyoucompileit,andthehostVIcannotcommunicatewiththeNI9233.

Page 268: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ReadingTEDSInformationintheHostVIAfteryoudeveloptheFPGAVIandopenareferencetoitinthehostVI,completethefollowingstepstoreadTEDSinformationfromtheNI9233.

NoteThehostVIcannotaccessTEDSinformationwhilethemoduleisinacquisitionmode.TheNI9233mustexitacquisitionmodebeforethehostVIcanaccessTEDSinformation.

1. PlaceanInvokeMethodfunctionontheblockdiagram.2. WiretheFPGAVIReferenceOutoutputoftheOpenFPGAVI

ReferencefunctiontotheFPGAVIReferenceIninputoftheInvokeMethodfunction.

3. Right-clickMethodontheInvokeMethodfunctionandselectReadTEDS.

4. IfyouareusingtheNI9233withanRSeriesdevice,right-clicktheConnectorinputoftheInvokeMethodfunctionandselectCreate»ConstantorCreate»Controlfromtheshortcutmenu.ConfiguretheconstantorcontrolfortheslotoftheNI9233.

5. Right-clicktheSlotinputoftheInvokeMethodfunctionandselectCreate»ConstantorCreate»Controlfromtheshortcutmenu.ConfiguretheconstantorcontrolfortheslotoftheNI9233.Validslotvaluesare1throughN,whereNisthenumberofslotsinthechassis.

6. Right-clicktheChannelinputoftheInvokeMethodfunctionandselectCreate»Constantfromtheshortcutmenu.ConfiguretheconstantforthechannelontheNI9233forwhichyouwanttoreadTEDSinformation.Validchannelvaluesare0through3.

7. PlaceaTEDS_ParseBinaryTEDSVI,availableontheTEDSpalette,ontheblockdiagram.

Place Find8. WiretheTEDSBinaryoutputoftheInvokeMethodfunctionto

thebinaryTEDSarrayinputoftheTEDS_ParseBinaryTEDSVI.

9. Wirethev0.9(TEDS)outputoftheInvokeMethodfunctiontothev0.9TEDS(F)inputoftheTEDS_DatatoTableVI.

10. WiretheTEDSdataoutoutputoftheTEDS_ParseBinaryVIto

Page 269: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

theTEDSdataininputoftheTEDS_DatatoTableVI.WhenyouruntheVI,LabVIEWreadstheTEDSfromthesensor,andtheLabVIEWTEDSToolkitparsestheTEDSinformationandoutputsitasatable.

NoteYoumustenableerrorhandlingintheFPGAVItoreceiveconsistenterrormessagesinthehostVI.

RefertotheNI9233GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9233\NI9233GettingStarteddirectoryforanexampleofaccessingTEDSinformation.Openexample

Page 270: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

AcquiringDatafromanNI9233(FPGAInterface)TheNI9233hasfouranaloginputchannelsthataresampledsimultaneouslyatthedatarateforwhichyouhaveconfiguredthemodule.UsetheStartandStopchannelsoftheNI9233toputthemoduleinandoutofacquisitionmode.Inacquisitionmode,theNI9233canonlyacquiredata.YoucanusetheFPGAI/ONodetoreadthedatafromthemodule.YoucannotperformotheroperationswiththeNI9233,suchasaccessingpropertiesorTEDSinformation,whilethemoduleisinacquisitionmode.

NoteYoumustcreateFPGAI/OitemsfortheNI9233beforeyoucanconfiguretheitemsusingtheFPGAI/ONode.

Page 271: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

PuttingtheModuleinAcquisitionModeConfigureanFPGAI/ONodewiththeStartchanneloftheNI9233.WireaBooleanconstantsettoTRUEtotheStartinputoftheFPGAI/ONodetosendasynchronizationpulsetothemodule.Themodulestartsacquiringdataatthedatarateyouconfigure.

Page 272: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ReadingDatafromtheModuleWhenthemodulestartsacquiringdata,youcanuseanFPGAI/ONodetoreaddatafromthemodule.YoucanconnecttheAIoutputoftheFPGAI/ONodetovarioustypesoffunctions,includinganFPGAMemoryfunctionoranFPGAFIFOfunction.Ifyoureadfrommultiplechannelsonthemodule,placethechannelsinthesameFPGAI/ONodetoensurethattheVIreadsthedatasynchronously.BecausetheNI9233internallyacquiresdataataspecifiedrate,theFPGAI/ONodedoesnotreturndatauntilnewdatahasbeenacquiredbythemodule.IftheNI9233didnotstartacquiringdataorstopsacquiringdatawhileanFPGAI/ONodeiswaitingfordatafromthemodule,theFPGAI/ONodereturnsatimeouterror.

Page 273: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ExitingAcquisitionModeConfigureanFPGAI/ONodewiththeStopchanneloftheNI9233.WriteaTRUEtotheStopinput.ThemoduleisnolongerinacquisitionmodeandnowyoucanaccessNI9233propertiesandTEDSinformation.

Page 274: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ExampleRefertotheNI9233GettingStarted(FPGA)VIinthelabview\examples\CompactRIO\ModuleSpecific\NI9233\NI9233GettingStarteddirectoryforanexampleofreadingfromtheNI9233.Openexample

Page 275: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CSeriesModulePropertiesDialogBoxfortheNI9233(FPGAInterface)Right-clickanNI9233CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:

Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.CalibrationMode—SetsthecalibrationmodefortheCSeriesmodule.SelectCalibratedifyouwanttheFPGAI/ONodetoreturncalibrated,fixed-pointdatafromthemoduleinunitsofvolts.Thefixed-pointdataissigned,withawordlengthof24bitsandanintegerwordlengthof4bits.SelectRawifyouwanttheFPGAI/ONodetoreturnuncalibrated,binarydatafromthemodule.IfyouselectRaw,youmustconvertandcalibratetheanaloginputvaluesinthehostVI.ThedefaultisCalibrated.MasterTimebaseSource—Specifiesthemastertimebasesourcethatthemoduleuses.Export12.8MHzTimebase—Placeacheckmarkinthischeckboxifyouwanttomakethismoduleaccessibleasamastertimebasesourcetoothermodules.DataRate—Specifiestherateatwhichthemoduleacquiresdata.EnableTEDSSupport—PlaceacheckmarkinthischeckboxifyouwanttoenableTEDSsupportintheFPGAandhostVIsforthismodule.

Page 276: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheMasterTimebaseSourcefortheNI9233(FPGAInterface)Bydefault,theNI9233moduleusestheinternalOnboardClockasthemastertimebasesource.InasystemwithmultipleNI923xmodules,youcanconfigureoneoftheNI923xmodulesasthemastertimebasesource(master)andconfiguretheotherNI923xmodulestousethatmastertimebasesource(slaves).SharingthesamemastertimebasesourceenablesyoutosynchronizemultipleNI923xmodules.TheNI9233dividesthemastertimebasesourcetoacquiredataatthedatarateyouconfigure.

NoteThecRIO-9151RSeriesExpansionchassisdoesnotsupportsynchronizingmultipleNI9225/9229/923xmodules.

Page 277: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheOnboardClockastheMasterTimebaseSourceCompletethefollowingstepstoconfiguretheOnboardClockasthemastertimebasesource.

1. ConfiguretheCompactRIOsystem,andaddanNI9233.2. Right-clicktheNI9233intheProjectExplorerwindowand

selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

3. Select<12.8MHzTimebase>fromtheMasterTimebaseSourcepull-downmenu.

4. ClicktheOKbutton.5. SelectFile»SaveAllintheProjectExplorerwindow.

Page 278: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringaMasterModuletoSharetheMasterTimebaseSourcewithSlavesCompletethefollowingstepstoconfigurethemastertimebasesourceforamastermoduleandslaves.

1. ConfiguretheCompactRIOsystem,andaddanNI9233.2. Right-clicktheNI9233intheProjectExplorerwindowand

selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

3. Select<12.8MHzTimebase>fromtheMasterTimebaseSourcepull-downmenu.

4. PlaceacheckmarkintheExport12.8MHzTimebasecheckbox.5. Right-clicktheNI9233youwanttoconfigureasaslaveinthe

ProjectExplorerwindowandselectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

6. SelectthenameofthemastermodulefromtheMasterTimebaseSourcepull-downmenu.

7. Repeatsteps5and6foreachslavemoduleyouwanttoconfigure.

8. ClicktheOKbutton.9. SelectFile»SaveAllintheProjectExplorerwindow.

Page 279: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheNI9233DataRate(FPGAInterface)YoucanconfigurethedatarateatwhichtheNI9233moduleacquiresandreturnsdataatedittimeusingtheCSeriesModulePropertiesdialogbox.YoucanprogrammaticallychangethedatarateatruntimeusingtheFPGAI/OPropertyNode.TheexecutionofanI/OPropertyNodethatisconfiguredwithaDataRatepropertyoverwritesthevalueyouconfiguredintheCSeriesModulePropertiesdialogbox.

Page 280: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheDataRateUsingtheCSeriesModulePropertiesDialogBoxCompletethefollowingstepstoconfigurethedataratefortheNI9233usingtheCSeriesModulePropertiesdialogbox.

1. ConfiguretheCompactRIOsystem,andaddanNI9233.2. Right-clicktheNI9233intheProjectExplorerwindowand

selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

3. SelecttheratefromtheDataRatepull-downmenu.4. ClicktheOKbutton.5. SelectFile»SaveAllintheProjectExplorerwindow.

Page 281: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheDataRateUsingtheFPGAI/OPropertyNodeCompletethefollowingstepstoconfigurethedatarateusingtheFPGAI/OPropertyNode.

1. PlaceanFPGAI/OPropertyNodeontheblockdiagramandconfigureitfortheNI9233.

2. ClickthePropertysectionandselectDataRatefromtheshortcutmenu.

3. Right-clicktheDataRateinputandselectCreate»Controlfromtheshortcutmenu.

4. OnthefrontpaneloftheVI,selectaratefromtheDataRatepull-downmenu.

YoucanchangethedatarateatruntimebywritingtothecontrolfromthehostVI.RefertotheNI9233GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9233\NI9233GettingStarteddirectoryforanexampleofconfiguringthedatarateusingtheFPGAI/OPropertyNode.Openexample

NoteTheDataRatepropertyreturnserror65538ifthemoduleisacquiringdata.YoumustusetheStopchanneltostopacquiringdatabeforeyoucanwritepropertiestothemodules.

Page 282: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9234(FPGAInterface)CompactRIO4-Channel,±5V,51.2KS/s,24-BitSoftwareSelectableIEPEandAC/DCAnalogInputModule

Page 283: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

NoteYoucansynchronizeanNI9234withotherNI9225/9229/923xmodules.

Page 284: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionAIx Analoginputchannelx,wherexisthenumberofthechannel.

TheNI9234hasAIchannels0to3.DonotaccessAIchannelsonmultiplemodulesinthesameFPGAI/ONodeifthemodulesarenotsynchronizedordonotusethesamedatarate.

OnboardClock

13.1072MHzinternalclockoftheNI9234.UsetheFPGAI/ONodeinasingle-cycleTimedLooptoaccessthischannel.YoumustexporttheonboardclockoftheNI9234toaccessthischannel.IfyoudonotexporttheonboardclockandtrytoaccesstheOnboardClockchannel,LabVIEWreturnsacodegenerationerrorwhenyoutrytocompiletheFPGAVI.

Start ChannelthatcontrolswhentheNI9234startsacquiringdata.IfTRUEiswrittentotheStartchannel,theNI9234startsacquiringdata.WhentheNI9234isacquiringdata,youmustwriteTRUEtotheStopchannelbeforeyoucanaccesspropertiesorTEDSinformationforthemodule.IfFALSEiswrittentotheStartchannel,nooperationisperformed.

RefertotheNI9234GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9234\NI9234GettingStarteddirectoryforanexampleofusingtheStartandStopchannels.

OpenexampleStop ChannelthatcontrolswhentheNI9234stopsacquiringdata.

IfTRUEiswrittentotheStopchannel,theNI9234stopsacquiringdata.WhentheNI9234isacquiringdata,youmustwriteTRUEtotheStopchannelbeforeyoucanaccesspropertiesorTEDSinformationforthemodule.IfFALSEiswrittentotheStopchannel,nooperationisperformed.

RefertotheNI9234GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9234\NI9234

Page 285: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

GettingStarteddirectoryforanexampleofusingtheStartandStopchannels.

Openexample

Page 286: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 287: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

MethodsThisdevicedoesnotsupportanymethods.

Page 288: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionInputConfiguration

Setstheinputconfigurationofthecorrespondingchanneltooneofthreemodes:ACcoupled,DCcoupled,orIEPEACcoupled.

LSBWeight ReturnstheLSBweightinpV/LSBforthechannel.UsethisvaluetoconvertandcalibrateNI9234dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Offset ReturnsthecalibrationoffsetinnVforthechannel.UsethisvaluetoconvertandcalibrateNI9234dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Page 289: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionDataRate SetstherateatwhichtheNI9234acquiresdata.ModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 290: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopYoucanusetheOnboardClockchannelinthesingle-cycleTimedLoop.YoucannotusetheotherchannelsontheNI9234withthesingle-cycleTimedLoop.RefertotheUnderstandingLoopTimingfortheNI9225/9229/923xtopicforinformationaboutlooptimingforthismodule.

Page 291: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9234OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 292: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

AccessingTEDSInformationfromtheNI9234(FPGAInterface)YoucanaccessTransducerElectronicDataSheet(TEDS)informationfromTEDS-compatibletransducersconnectedtothechannelsofanNI9234.YoumustenableTEDSsupportforthemodulebeforeyoucanreadTEDSinformation.YoucanaccessTEDSinformationonlyfromthehostVI.

Page 293: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

EnablingTEDSSupportfortheNI9234CompletethefollowingstepstoenableTEDSsupportfortheNI9234.

1. ConfiguretheCompactRIOsystem,andaddanNI9234.2. Right-clicktheNI9234intheProjectExplorerwindowand

selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

3. PlaceacheckmarkintheEnableTEDSSupportcheckbox.4. ClicktheOKbutton.

TheFPGAVImusthaveanFPGAI/ONodethatcommunicateswiththeNI9234.Ifitdoesnot,theLabVIEWFPGACompileServeroptimizestheVIwhenyoucompileit,andthehostVIcannotcommunicatewiththeNI9234.

Page 294: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ReadingTEDSInformationintheHostVIAfteryoudeveloptheFPGAVIandopenareferencetoitinthehostVI,completethefollowingstepstoreadTEDSinformationfromtheNI9234.

NoteThehostVIcannotaccessTEDSinformationwhilethemoduleisinacquisitionmode.TheNI9234mustexitacquisitionmodebeforethehostVIcanaccessTEDSinformation.

1. PlaceanInvokeMethodfunctionontheblockdiagram.2. WiretheFPGAVIReferenceOutoutputoftheOpenFPGAVI

ReferencefunctiontotheFPGAVIReferenceIninputoftheInvokeMethodfunction.

3. Right-clickMethodontheInvokeMethodfunctionandselectReadTEDS.

4. IfyouareusingtheNI9234withanRSeriesdevice,right-clicktheConnectorinputoftheInvokeMethodfunctionandselectCreate»ConstantorCreate»Controlfromtheshortcutmenu.ConfiguretheconstantorcontrolfortheslotoftheNI9234.

5. Right-clicktheSlotinputoftheInvokeMethodfunctionandselectCreate»ConstantorCreate»Controlfromtheshortcutmenu.ConfiguretheconstantorcontrolfortheslotoftheNI9234.Validslotvaluesare1throughN,whereNisthenumberofslotsinthechassis.

6. Right-clicktheChannelinputoftheInvokeMethodfunctionandselectCreate»Constantfromtheshortcutmenu.ConfiguretheconstantforthechannelontheNI9234forwhichyouwanttoreadTEDSinformation.Validchannelvaluesare0through3.

7. PlaceaTEDS_ParseBinaryTEDSVI,availableontheTEDSpalette,ontheblockdiagram.

Place Find8. WiretheTEDSBinaryoutputoftheInvokeMethodfunctionto

thebinaryTEDSarrayinputoftheTEDS_ParseBinaryTEDSVI.

9. Wirethev0.9(TEDS)outputoftheInvokeMethodfunctiontothev0.9TEDS(F)inputoftheTEDS_DatatoTableVI.

10. WiretheTEDSdataoutoutputoftheTEDS_ParseBinaryVIto

Page 295: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

theTEDSdataininputoftheTEDS_DatatoTableVI.WhenyouruntheVI,LabVIEWreadstheTEDSfromthesensor,andtheLabVIEWTEDSToolkitparsestheTEDSinformationandoutputsitasatable.

NoteYoumustenableerrorhandlingintheFPGAVItoreceiveconsistenterrormessagesinthehostVI.

RefertotheNI9234GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9234\NI9234GettingStarteddirectoryforanexampleofaccessingTEDSinformation.Openexample

Page 296: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

AcquiringDatafromanNI9234(FPGAInterface)TheNI9234hasfouranaloginputchannelsthataresampledsimultaneouslyatthedatarateforwhichyouhaveconfiguredthemodule.UsetheStartandStopchannelsoftheNI9234toputthemoduleinandoutofacquisitionmode.Inacquisitionmode,theNI9234canonlyacquiredata.YoucanusetheFPGAI/ONodetoreadthedatafromthemodule.YoucannotperformotheroperationswiththeNI9234,suchasaccessingpropertiesorTEDSinformation,whilethemoduleisinacquisitionmode.

NoteYoumustcreateFPGAI/OitemsfortheNI9234beforeyoucanconfiguretheitemsusingtheFPGAI/ONode.

Page 297: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

PuttingtheModuleinAcquisitionModeConfigureanFPGAI/ONodewiththeStartchanneloftheNI9234.WireaBooleanconstantsettoTRUEtotheStartinputoftheFPGAI/ONodetosendasynchronizationpulsetothemodule.Themodulestartsacquiringdataatthedatarateyouconfigure.

Page 298: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ReadingDatafromtheModuleWhenthemodulestartsacquiringdata,youcanuseanFPGAI/ONodetoreaddatafromthemodule.YoucanconnecttheAIoutputoftheFPGAI/ONodetovarioustypesoffunctions,includinganFPGAMemoryfunctionoranFPGAFIFOfunction.Ifyoureadfrommultiplechannelsonthemodule,placethechannelsinthesameFPGAI/ONodetoensurethattheVIreadsthedatasynchronously.BecausetheNI9234internallyacquiresdataataspecifiedrate,theFPGAI/ONodedoesnotreturndatauntilnewdatahasbeenacquiredbythemodule.IftheNI9234didnotstartacquiringdataorstopsacquiringdatawhileanFPGAI/ONodeiswaitingfordatafromthemodule,theFPGAI/ONodereturnsatimeouterror.

Page 299: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ExitingAcquisitionModeConfigureanFPGAI/ONodewiththeStopchanneloftheNI9234.WriteaTRUEtotheStopinput.ThemoduleisnolongerinacquisitionmodeandnowyoucanaccessNI9234propertiesandTEDSinformation.

Page 300: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ExampleRefertotheNI9234GettingStarted(FPGA)VIinthelabview\examples\CompactRIO\ModuleSpecific\NI9234\NI9234GettingStarteddirectoryforanexampleofreadingfromtheNI9234.Openexample

Page 301: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CSeriesModulePropertiesDialogBoxfortheNI9234(FPGAInterface)Right-clickanNI9234CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:

Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.CalibrationMode—SetsthecalibrationmodefortheCSeriesmodule.SelectCalibratedifyouwanttheFPGAI/ONodetoreturncalibrated,fixed-pointdatafromthemoduleinunitsofvolts.Thefixed-pointdataissigned,withawordlengthof24bitsandanintegerwordlengthof4bits.SelectRawifyouwanttheFPGAI/ONodetoreturnuncalibrated,binarydatafromthemodule.IfyouselectRaw,youmustconvertandcalibratetheanaloginputvaluesinthehostVI.ThedefaultisCalibrated.MasterTimebaseSource—Specifiesthemastertimebasesourcethatthemoduleuses.ExportOnboardClock—Placeacheckmarkinthischeckboxifyouwanttomakethismoduleaccessibleasamastertimebasesourcetoothermodules.DataRate—Specifiestherateatwhichthemoduleacquiresdata.EnableTEDSSupport—PlaceacheckmarkinthischeckboxifyouwanttoenableTEDSsupportintheFPGAandhostVIsforthismodule.Channels—Specifiesthechannel(s)forwhichyouwanttoselecttheinputconfiguration.SelectedChannel(s)Settings—Specifiestheinputconfiguration

Page 302: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

foreachchannel.InputConfiguration—Setstheinputconfigurationfortheselectedchannel(s)tooneofthreemodes:ACcoupled,DCcoupled,orIEPEACcoupled.

Page 303: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheMasterTimebaseSourcefortheNI9234(FPGAInterface)Bydefault,theNI9234moduleusestheinternalOnboardClockasthemastertimebasesource.InasystemwithmultipleNI923xmodules,youcanconfigureoneoftheNI923xmodulesasthemastertimebasesource(master)andconfiguretheotherNI923xmodulestousethatmastertimebasesource(slaves).SharingthesamemastertimebasesourceenablesyoutosynchronizemultipleNI923xmodules.TheNI9234dividesthemastertimebasesourcetoacquiredataatthedatarateyouconfigure.

NoteThecRIO-9151RSeriesExpansionchassisdoesnotsupportsynchronizingmultipleNI9225/9229/923xmodules.

Page 304: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheOnboardClockastheMasterTimebaseSourceCompletethefollowingstepstoconfiguretheOnboardClockasthemastertimebasesource.

1. ConfiguretheCompactRIOsystem,andaddanNI9234.2. Right-clicktheNI9234intheProjectExplorerwindowand

selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

3. Select<OnboardClock>fromtheMasterTimebaseSourcepull-downmenu.

4. ClicktheOKbutton.5. SelectFile»SaveAllintheProjectExplorerwindow.

Page 305: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringaMasterModuletoSharetheMasterTimebaseSourcewithSlavesCompletethefollowingstepstoconfigurethemastertimebasesourceforamastermoduleandslaves.

1. ConfiguretheCompactRIOsystem,andaddanNI9234.2. Right-clicktheNI9234intheProjectExplorerwindowand

selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

3. Select<OnboardClock>fromtheMasterTimebaseSourcepull-downmenu.

4. PlaceacheckmarkintheExportOnboardClockcheckbox.5. Right-clicktheNI9234youwanttoconfigureasaslaveinthe

ProjectExplorerwindowandselectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

6. SelectthenameofthemastermodulefromtheMasterTimebaseSourcepull-downmenu.

7. Repeatsteps5and6foreachslavemoduleyouwanttoconfigure.

8. ClicktheOKbutton.9. SelectFile»SaveAllintheProjectExplorerwindow.

Page 306: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheNI9234ChannelInputModes(FPGAInterface)YoucanconfiguretheinputmodeforeachchanneloftheNI9234atedittimeusingtheCSeriesModulePropertiesdialogbox.YoucanprogrammaticallychangetheinputmodeforeachchannelatruntimeusingtheFPGAI/OPropertyNode.TheexecutionofanFPGAI/OPropertyNodethatisconfiguredwithanInputConfigurationpropertyoverwritesthevalueyouconfiguredintheCSeriesModulePropertiesdialogboxforthecorrespondingchannel.

Page 307: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheChannelInputModesUsingtheCSeriesModulePropertiesDialogBoxCompletethefollowingstepstoconfigurethechannelinputmodesusingtheCSeriesModulePropertiesdialogbox.

1. ConfiguretheCompactRIOsystem,andaddanNI9234.2. Right-clicktheNI9234intheProjectExplorerwindowand

selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

3. Selectthechannel(s)forwhichyouwanttoconfiguretheinputmodefromtheChannelstable.Youcanselectmorethanonechannelbyholdingthe<Ctrl>or<Shift>keywhenselectingchannels.

4. Selecttheinputmodefortheselectedchannel(s)fromtheInputConfigurationpull-downmenu.

5. ClicktheOKbutton.6. SelectFile»SaveAllintheProjectExplorerwindow.

Page 308: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheChannelInputModesUsingtheFPGAI/OPropertyNodeCompletethefollowingstepstoconfigurethechannelinputmodesusingtheFPGAI/OPropertyNode.

1. CreateFPGAI/OitemsforthechannelsoftheNI9234forwhichyouwanttoconfiguretheInputConfigurationproperty.

2. PlaceanFPGAI/OPropertyNodeontheblockdiagramandconfigureitfortheNI9234channelforwhichyouwanttoconfiguretheinputmode.

3. ClickthePropertysectionandselectInputConfigurationfromtheshortcutmenu.

4. Right-clicktheInputConfigurationinputandselectCreate»Controlfromtheshortcutmenu.

5. OnthefrontpaneloftheVI,selectaninputmodeforthechannelfromtheInputConfigurationpull-downmenu.

YoucanchangethechannelinputmodesatruntimebywritingtothecontrolfromthehostVI.RefertotheNI9234GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9234\NI9234GettingStarteddirectoryforanexampleofconfiguringtheinputmodesusingtheFPGAI/OPropertyNode.Openexample

NoteTheInputConfigurationpropertyreturnserror65538ifthemoduleisacquiringdata.YoumustusetheStopchanneltostopacquiringdatabeforeyoucanwritepropertiestothemodules.

Page 309: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheNI9234DataRate(FPGAInterface)YoucanconfigurethedatarateatwhichtheNI9234moduleacquiresandreturnsdataatedittimeusingtheCSeriesModulePropertiesdialogbox.YoucanprogrammaticallychangethedatarateatruntimeusingtheFPGAI/OPropertyNode.TheexecutionofanI/OPropertyNodethatisconfiguredwithaDataRatepropertyoverwritesthevalueyouconfiguredintheCSeriesModulePropertiesdialogbox.

Page 310: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheDataRateUsingtheCSeriesModulePropertiesDialogBoxCompletethefollowingstepstoconfigurethedataratefortheNI9234.

1. ConfiguretheCompactRIOsystem,andaddanNI9234.2. Right-clicktheNI9234intheProjectExplorerwindowand

selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

3. SelecttheratefromtheDataRatepull-downmenu.4. ClicktheOKbutton.5. SelectFile»SaveAllintheProjectExplorerwindow.

Page 311: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheDataRateUsingtheFPGAI/OPropertyNodeCompletethefollowingstepstoconfigurethedatarateusingtheFPGAI/OPropertyNode.

1. PlaceanFPGAI/OPropertyNodeontheblockdiagramandconfigureitfortheNI9234.

2. Right-clickthePropertysectionandselectDataRatefromtheshortcutmenu.

3. Right-clicktheDataRateinputandselectCreate»Controlfromtheshortcutmenu.

4. OnthefrontpaneloftheVI,selectaratefromtheDataRatepull-downmenu.

YoucanchangethedatarateatruntimebywritingtothecontrolfromthehostVI.RefertotheNI9234GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9234\NI9234GettingStarteddirectoryforanexampleofconfiguringthedatarateusingtheFPGAI/OPropertyNode.Openexample

NoteTheDataRatepropertyreturnserror65538ifthemoduleisacquiringdata.YoumustusetheStopchanneltostopacquiringdatabeforeyoucanwritepropertiestothemodules.

Page 312: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

SynchronizingtheNI9234ModulewithNI9225/9229/9233/9235/9236/9237/9239Modules(FPGAInterface)TheNI9225/9229/9233/9235/9236/9237/9239modulehasa12.8MHzonboardoscillator,whiletheNI9234hasa13.1072MHzonboardoscillator.Allofthesemoduleshavedelta-sigmaADCsthatderivetheirsamplingratesfromthefrequencyoftheseonboardoscillators.AnNI9234thatusesitsown13.1072MHztimebasecansampleatamaximumrateof51.2kS/s(13.1072MHz/256),whileanNI9225/9229/9233/9237/9239thatusesitsown12.8MHztimebasecansampleatamaximumrateof50kS/s(12.8MHz/256),andanNI9235/9236thatusesitsown12.8MHztimebasecansampleatamaximumrateof10kS/s(12.8MHz/(256×5)).SynchronizingtheNI9234withtheNI9225/9229/9233/9235/9236/9237/9239dependsonthefrequencyofthesharedmastertimebase.TheNI9234cansampleatamaximumrateof51.2kS/swhenanNI9234issourcingthemastertimebase.However,theNI9234cansampleonlyatamaximumrateof50kS/swhenanNI9225/9229/9233/9235/9236/9237/9239issourcingthemastertimebase.ItisimportanttonotethatwhenanNI9235/9236issourcingthemastertimebase,theNI9234canstillsampleatamaximumrateof50kS/s.Furthermore,theNI9225/9229/9233/9237/9239cansampleatamaximumrateof50kS/swhenanNI9225/9229/9233/9235/9236/9237/9239issourcingthemastertimebase.TheNI9235/9236cansampleatamaximumrateof10kS/swhenanNI9235/9236issourcingthemastertimebase.ThepossiblesampleratesoftheNI9225/9229/9233/9235/9236/9237/9239changeslightlywhenanNI9234issourcingthemastertimebase.TheNI9225/9229/9233/9237/9239cansampleatamaximumrateof51.2kS/swhenanNI9234issourcingthemastertimebase,andtheNI9235/9236cansampleatamaximumrateof10.24kS/swhenanNI9234issourcingthemastertimebase.ThedatarateintheCSeriesModulePropertiesdialogboxautomaticallyupdatestoreflecttheactualdatarateofthemodulewhenyouchangethemastertimebasesource.However,theDataRatepropertycontrolsorconstantsontheblockdiagramdonotautomaticallyupdatewhenyou

Page 313: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

changethemastertimebasesource.Therefore,youmightneedtodeleteandrecreatecontrolsorconstantsforanyDataRatepropertyontheblockdiagramafterchangingthemastertimebasesource.RefertotheNI9xxxOperatingInstructionsandSpecificationsforthemoduleformoreinformationaboutunderstandingdatarates.Thelatestversionsoftheoperatinginstructionsareonlineatni.com/manuals.

Page 314: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9235(FPGAInterface)CompactRIO8-Channel,24-BitQuarter-BridgeAnalogInputModule

Page 315: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

NoteYoucansynchronizeanNI9235modulewithotherNI9225/9229/923xmodules.

Page 316: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionAIx Analoginputchannelx,wherexisthenumberofthechannel.

TheNI9235hasAIchannels0to7.DonotaccessAIchannelsonmultiplemodulesinthesameFPGAI/ONodeifthemodulesarenotsynchronizedordonotusethesamedatarate.

OnboardClock

12.8MHzinternalclockoftheNI9235.UsetheFPGAI/ONodeinasingle-cycleTimedLooptoaccessthischannel.YoumustexporttheOnboardClockoftheNI9235toaccessthischannel.

Start ChannelthatcontrolswhentheNI9235startsacquiringdata.IfTRUEiswrittentotheStartchannel,theNI9235startsacquiringdata.WhentheNI9235isacquiringdata,youmustwriteTRUEtotheStopchannelbeforeyoucanaccesspropertiesforthemodule.IfFALSEiswrittentotheStartchannel,nooperationisperformed.

RefertotheNI9235GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9235\NI9235GettingStarteddirectoryforanexampleofusingtheStartandStopchannels.

OpenexampleStop ChannelthatcontrolswhentheNI9235stopsacquiringdata.

IfTRUEiswrittentotheStopchannel,theNI9235stopsacquiringdata.WhentheNI9235isacquiringdata,youmustwriteTRUEtotheStopchannelbeforeyoucanaccesspropertiesforthemodule.IfFALSEiswrittentotheStopchannel,nooperationisperformed.

RefertotheNI9235GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9235\NI9235GettingStarteddirectoryforanexampleofusingtheStartandStopchannels.

Page 317: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Openexample

Page 318: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 319: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

MethodsThisdevicedoesnotsupportanymethods.

Page 320: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionLSBWeight

ReturnstheLSBweightinunitsof100fV/VperLSBforthechannel.100fVisequalto10-13volts.UsethisvaluetoconvertandcalibrateNI9235dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Offset Returnsthecalibrationoffsetinunitsof100nV/Vforthechannel.UsethisvaluetoconvertandcalibrateNI9235dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

ShuntCalEnable

Controlstheshuntcalibrationswitchforeachchannel.

RefertotheNI9235GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9235\NI9235GettingStarteddirectoryforanexampleofusingtheShuntCalEnableproperty.

Openexample

Page 321: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionDataRate SetstherateatwhichtheNI9235acquiresdata.ModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 322: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopYoucanusetheOnboardClockchannelinthesingle-cycleTimedLoop.YoucannotusetheotherchannelsontheNI9235withthesingle-cycleTimedLoop.RefertotheUnderstandingLoopTimingfortheNI9225/9229/923xtopicforinformationaboutlooptimingforthismodule.

Page 323: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9235/9236OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.Theoperatinginstructionsshipwiththemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 324: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

AcquiringDatafromanNI9235/9236(FPGAInterface)TheNI9235orNI9236haseightanaloginputchannelsthataresampledsimultaneouslyatthedatarateforwhichyouhaveconfiguredthemodule.UsetheStartandStopchannelsoftheNI9235/9236toputthemoduleinandoutofacquisitionmode.Inacquisitionmode,theNI9235/9236canonlyacquiredata.YoucanusetheFPGAI/ONodetoreadthedatafromthemodule.YoucannotperformotheroperationswiththeNI9235/9236,suchasaccessingproperties,whilethemoduleisinacquisitionmode.

NoteYoumustcreateFPGAI/OitemsfortheNI9235/9236beforeyoucanconfiguretheitemsusingtheFPGAI/ONode.

Page 325: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

PuttingtheModuleinAcquisitionModeConfigureanFPGAI/ONodewiththeStartchanneloftheNI9235/9236.WireaBooleanconstantsettoTRUEtotheStartinputoftheFPGAI/ONodetosendasynchronizationpulsetothemodule.Themodulestartsacquiringdataatthedatarateyouconfigure.

Page 326: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ReadingDatafromtheModuleWhenthemodulestartsacquiringdata,youcanuseanFPGAI/ONodetoreaddatafromthemodule.YoucanconnecttheAIoutputoftheFPGAI/ONodetovarioustypesoffunctions,includinganFPGAMemoryfunctionoranFPGAFIFOfunction.Ifyoureadfrommultiplechannelsonthemodule,placethechannelsinthesameFPGAI/ONodetoensurethattheVIreadsthedatasynchronously.BecausetheNI9235/9236internallyacquiresdataataspecifiedrate,theFPGAI/ONodedoesnotreturndatauntilnewdatahasbeenacquiredbythemodule.IftheNI9235/9236didnotstartacquiringdataorstopsacquiringdatawhileanFPGAI/ONodeiswaitingfordatafromthemodule,theFPGAI/ONodereturnsatimeouterror.

Page 327: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ExitingAcquisitionModeConfigureanFPGAI/ONodewiththeStopchanneloftheNI9235/9236.WriteaTRUEtotheStopinput.ThemoduleisnolongerinacquisitionmodeandnowyoucanaccessNI9235/9236properties.

Page 328: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ExampleRefertotheNI9235GettingStarted(FPGA)VIinthelabview\examples\CompactRIO\ModuleSpecific\NI9235\NI9235GettingStarteddirectoryforanexampleofreadingfromtheNI9235.OpenNI9235exampleRefertotheNI9236GettingStarted(FPGA)VIinthelabview\examples\CompactRIO\ModuleSpecific\NI9236\NI9236GettingStarteddirectoryforanexampleofreadingfromtheNI9236.OpenNI9236example

Page 329: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CSeriesModulePropertiesDialogBoxfortheNI9235andNI9236(FPGAInterface)Right-clickanNI9235orNI9236CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:

Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.CalibrationMode—SetsthecalibrationmodefortheCSeriesmodule.SelectCalibratedifyouwanttheFPGAI/ONodetoreturncalibrated,fixed-pointdatafromthemoduleinunitsofvolts/volt.Thefixed-pointdataissigned,withawordlengthof24bitsandanintegerwordlengthof–4bits.SelectRawifyouwanttheFPGAI/ONodetoreturnuncalibrated,binarydatafromthemodule.IfyouselectRaw,youmustconvertandcalibratetheanaloginputvaluesinthehostVI.ThedefaultisCalibrated.MasterTimebaseSource—Specifiesthemastertimebasesourcethatthemoduleuses.ExportOnboardClock—Placeacheckmarkinthischeckboxifyouwanttomakethismoduleaccessibleasamastertimebasesourcetoothermodules.DataRate—Specifiestherateatwhichthemoduleacquiresdata.

Page 330: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheMasterTimebaseSourcefortheNI9235/9236(FPGAInterface)Bydefault,theNI9235orNI9236moduleusestheinternalOnboardClockasthemastertimebasesource.InasystemwithmultipleNI923xmodules,youcanconfigureoneoftheNI923xmodulesasthemastertimebasesource(master)andconfiguretheotherNI923xmodulestousethatmastertimebasesource(slaves).SharingthesamemastertimebasesourceenablesyoutosynchronizemultipleNI923xmodules.TheNI9235/9236dividesthemastertimebasesourcetoacquiredataatthedatarateyouconfigure.

NoteThecRIO-9151RSeriesExpansionchassisdoesnotsupportsynchronizingmultipleNI9225/9229/923xmodules.

Page 331: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheOnboardClockastheMasterTimebaseSourceCompletethefollowingstepstoconfiguretheOnboardClockasthemastertimebasesource.

1. ConfiguretheCompactRIOsystem,andaddanNI9235/9236.2. Right-clicktheNI9235/9236intheProjectExplorerwindowand

selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

3. Select<OnboardClock>fromtheMasterTimebaseSourcepull-downmenu.

4. ClicktheOKbutton.5. SelectFile»SaveAllintheProjectExplorerwindow.

Page 332: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringaMasterModuletoSharetheMasterTimebaseSourcewithSlavesCompletethefollowingstepstoconfigurethemastertimebasesourceforamastermoduleandslaves.

1. ConfiguretheCompactRIOsystem,andaddanNI9235/9236.2. Right-clicktheNI9235/9236intheProjectExplorerwindowand

selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

3. Select<OnboardClock>fromtheMasterTimebaseSourcepull-downmenu.

4. PlaceacheckmarkintheExportOnboardClockcheckbox.5. Right-clicktheNI9235/9236youwanttoconfigureasaslavein

theProjectExplorerwindowandselectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

6. SelectthenameofthemastermodulefromtheMasterTimebaseSourcepull-downmenu.

7. Repeatsteps5and6foreachslavemoduleyouwanttoconfigure.

8. ClicktheOKbutton.9. SelectFile»SaveAllintheProjectExplorerwindow.

Page 333: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheNI9235/9236DataRate(FPGAInterface)YoucanconfigurethedatarateatwhichtheNI9235orNI9236moduleacquiresandreturnsdataatedittimeusingtheCSeriesModulePropertiesdialogbox.YoucanprogrammaticallychangethedatarateatruntimeusingtheFPGAI/OPropertyNode.TheexecutionofanI/OPropertyNodethatisconfiguredwithaDataRatepropertyoverwritesthevalueyouconfiguredintheCSeriesModulePropertiesdialogbox.

Page 334: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheDataRateUsingtheCSeriesModulePropertiesDialogBoxCompletethefollowingstepstoconfigurethedataratefortheNI9235/9236usingtheCSeriesModulePropertiesdialogbox.

1. ConfiguretheCompactRIOsystem,andaddanNI9235/9236.2. Right-clicktheNI9235/9236intheProjectExplorerwindowand

selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

3. SelecttheratefromtheDataRatepull-downmenu.4. ClicktheOKbutton.5. SelectFile»SaveAllintheProjectExplorerwindow.

Page 335: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheDataRateUsingtheFPGAI/OPropertyNodeCompletethefollowingstepstoconfigurethedatarateusingtheFPGAI/OPropertyNode.

1. PlaceanFPGAI/OPropertyNodeontheblockdiagramandconfigureitfortheNI9235/9236.

2. ClickthePropertysectionandselectDataRatefromtheshortcutmenu.

3. Right-clicktheDataRateinputandselectCreate»Controlfromtheshortcutmenu.

4. OnthefrontpaneloftheVI,selectaratefromtheDataRatepull-downmenu.

YoucanchangethedatarateatruntimebywritingtothecontrolfromthehostVI.RefertotheNI9235GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9235\NI9235GettingStarteddirectoryforanexampleofconfiguringtheNI9235datarateusingtheFPGAI/OPropertyNode.OpenexampleRefertotheNI9236GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9236\NI9236GettingStarteddirectoryforanexampleofconfiguringtheNI9236datarateusingtheFPGAI/OPropertyNode.Openexample

NoteTheDataRatepropertyreturnserror65538ifthemoduleisacquiringdata.YoumustusetheStopchanneltostopacquiringdatabeforeyoucanwritepropertiestothemodules.

Page 336: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9236(FPGAInterface)CompactRIO8-Channel,24-BitQuarter-BridgeAnalogInputModule

Page 337: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

NoteYoucansynchronizeanNI9236modulewithotherNI9225/9229/923xmodules.

Page 338: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionAIx Analoginputchannelx,wherexisthenumberofthechannel.

TheNI9236hasAIchannels0to7.DonotaccessAIchannelsonmultiplemodulesinthesameFPGAI/ONodeifthemodulesarenotsynchronizedordonotusethesamedatarate.

OnboardClock

12.8MHzinternalclockoftheNI9236.UsetheFPGAI/ONodeinasingle-cycleTimedLooptoaccessthischannel.YoumustexporttheOnboardClockoftheNI9236toaccessthischannel.

Start ChannelthatcontrolswhentheNI9236startsacquiringdata.IfTRUEiswrittentotheStartchannel,theNI9236startsacquiringdata.WhentheNI9236isacquiringdata,youmustwriteTRUEtotheStopchannelbeforeyoucanaccesspropertiesforthemodule.IfFALSEiswrittentotheStartchannel,nooperationisperformed.

RefertotheNI9236GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9236\NI9236GettingStarteddirectoryforanexampleofusingtheStartandStopchannels.

OpenexampleStop ChannelthatcontrolswhentheNI9236stopsacquiringdata.

IfTRUEiswrittentotheStopchannel,theNI9236stopsacquiringdata.WhentheNI9236isacquiringdata,youmustwriteTRUEtotheStopchannelbeforeyoucanaccesspropertiesforthemodule.IfFALSEiswrittentotheStopchannel,nooperationisperformed.

RefertotheNI9236GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9236\NI9236GettingStarteddirectoryforanexampleofusingtheStartandStopchannels.

Page 339: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Openexample

Page 340: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 341: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

MethodsThisdevicedoesnotsupportanymethods.

Page 342: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionLSBWeight

ReturnstheLSBweightinunitsof100fV/VperLSBforthechannel.100fVisequalto10-13volts.UsethisvaluetoconvertandcalibrateNI9236dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Offset Returnsthecalibrationoffsetinunitsof100nV/Vforthechannel.UsethisvaluetoconvertandcalibrateNI9236dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

ShuntCalEnable

Controlstheshuntcalibrationswitchforeachchannel.

RefertotheNI9236GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9236\NI9236GettingStarteddirectoryforanexampleofusingtheShuntCalEnableproperty.

Openexample

Page 343: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionDataRate SetstherateatwhichtheNI9236acquiresdata.ModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 344: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopYoucanusetheOnboardClockchannelinthesingle-cycleTimedLoop.YoucannotusetheotherchannelsontheNI9236withthesingle-cycleTimedLoop.RefertotheUnderstandingLoopTimingfortheNI9225/9229/923xtopicforinformationaboutlooptimingforthismodule.

Page 345: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9235/9236OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.Theoperatinginstructionsshipwiththemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 346: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9237(FPGAInterface)CompactRIO4-Channel,24-BitHalf/Full-BridgeAnalogInputModule

Page 347: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

NoteYoucansynchronizeanNI9237modulewithotherNI9225/9229/923xmodules.

Page 348: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionAIx Analoginputchannelx,wherexisthenumberofthechannel.

TheNI9237hasAIchannels0to3.DonotaccessAIchannelsonmultiplemodulesinthesameFPGAI/ONodeifthemodulesarenotsynchronizedordonotusethesamedatarate.

OnboardClock

12.8MHzinternalclockoftheNI9237.UsetheFPGAI/ONodeinasingle-cycleTimedLooptoaccessthischannel.YoumustexporttheOnboardClockoftheNI9237toaccessthischannel.

Start ChannelthatcontrolswhentheNI9237startsacquiringdata.IfTRUEiswrittentotheStartchannel,theNI9237startsacquiringdata.WhentheNI9237isacquiringdata,youmustwriteTRUEtotheStopchannelbeforeyoucanaccesspropertiesorTEDSinformationforthemodule.IfFALSEiswrittentotheStartchannel,nooperationisperformed.

RefertotheNI9237GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9237\NI9237GettingStarteddirectoryforanexampleofusingtheStartandStopchannels.

OpenexampleStop ChannelthatcontrolswhentheNI9237stopsacquiringdata.

IfTRUEiswrittentotheStopchannel,theNI9237stopsacquiringdata.WhentheNI9237isacquiringdata,youmustwriteTRUEtotheStopchannelbeforeyoucanaccesspropertiesorTEDSinformationforthemodule.IfFALSEiswrittentotheStopchannel,nooperationisperformed.

RefertotheNI9237GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9237\NI9237GettingStarteddirectoryforanexampleofusingtheStartandStopchannels.

Page 349: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Openexample

Page 350: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 351: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

MethodsThisdevicedoesnotsupportanymethods.

Page 352: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionHalf-BridgeEnable

Controlsthehalf-bridgecompletionoptionforeachchannel.

LSBWeight

ReturnstheLSBweightinunitsof100fV/VperLSBforthechannel.100fVisequalto10-13volts.UsethisvaluetoconvertandcalibrateNI9237dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Offset Returnsthecalibrationoffsetinunitsof10nV/LSBforthechannel.UsethisvaluetoconvertandcalibrateNI9237dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

OffsetCalEnable

Enablesoffsetcalibration.Thisdisconnectsbothsignalinputpinsandforcesthechannelinputstozero.

ShuntCalEnable

Controlstheshuntcalibrationswitchforeachchannel.

Page 353: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionDataRate SetstherateatwhichtheNI9237acquiresdata.ExcitationVoltage

Setstheexcitationvoltagelevel.Allchannelssharethesameexcitationvoltage.

ModuleID ReturnsthemoduleID.SerialNumber

Returnstheuniqueserialnumberofthemodule.

VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 354: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopYoucanusetheOnboardClockchannelinthesingle-cycleTimedLoop.YoucannotusetheotherchannelsontheNI9237withthesingle-cycleTimedLoop.RefertotheUnderstandingLoopTimingfortheNI9225/9229/923xtopicforinformationaboutlooptimingforthismodule.

Page 355: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9237OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 356: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

AccessingTEDSInformationfromtheNI9237(FPGAInterface)YoucanaccessTransducerElectronicDataSheet(TEDS)informationfromTEDS-compatibletransducersconnectedtothechannelsofanNI9237.YoumustenableTEDSsupportforthemodulebeforeyoucanreadTEDSinformation.YoucanaccessTEDSinformationonlyfromthehostVI.

Page 357: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

EnablingTEDSSupportfortheNI9237CompletethefollowingstepstoenableTEDSsupportfortheNI9237.

1. ConfiguretheCompactRIOsystem,andaddanNI9237.2. Right-clicktheNI9237intheProjectExplorerwindowand

selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

3. PlaceacheckmarkintheEnableTEDSSupportcheckbox.4. ClicktheOKbutton.

TheFPGAVImusthaveanFPGAI/ONodeoranFPGAI/OPropertyNodethatcommunicateswiththeNI9237.Ifitdoesnot,theLabVIEWFPGACompileServeroptimizestheVIwhenyoucompileit,andthehostVIcannotcommunicatewiththeNI9237.

Page 358: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ReadingTEDSInformationintheHostVIAfteryoudeveloptheFPGAVIandopenareferencetoitinthehostVI,completethefollowingstepstoreadTEDSinformationfromtheNI9237.

NoteThehostVIcannotaccessTEDSinformationwhilethemoduleisinacquisitionmode.TheNI9237mustexitacquisitionmodebeforethehostVIcanaccessTEDSinformation.

1. PlaceanInvokeMethodfunctionontheblockdiagram.2. WiretheFPGAVIReferenceOutoutputoftheOpenFPGAVI

ReferencefunctiontotheFPGAVIReferenceIninputoftheInvokeMethodfunction.

3. Right-clickMethodontheInvokeMethodfunctionandselectReadTEDS.

4. IfyouareusingtheNI9237withanRSeriesdevice,right-clicktheConnectorinputoftheInvokeMethodfunctionandselectCreate»ConstantorCreate»Controlfromtheshortcutmenu.ConfiguretheconstantorcontrolfortheslotoftheNI9237.

5. Right-clicktheSlotinputoftheInvokeMethodfunctionandselectCreate»ConstantorCreate»Controlfromtheshortcutmenu.ConfiguretheconstantorcontrolfortheslotoftheNI9237.Validslotvaluesare1throughN,whereNisthenumberofslotsinthechassis.

6. Right-clicktheChannelinputoftheInvokeMethodfunctionandselectCreate»Constantfromtheshortcutmenu.ConfiguretheconstantforthechannelontheNI9237forwhichyouwanttoreadTEDSinformation.Validchannelvaluesare0through3.

7. PlaceaTEDS_ParseBinaryTEDSVI,availableontheTEDSpalette,ontheblockdiagram.

Place Find8. WiretheTEDSBinaryoutputoftheInvokeMethodfunctionto

thebinaryTEDSarrayinputoftheTEDS_ParseBinaryTEDSVI.

9. Wirethev0.9(TEDS)outputoftheInvokeMethodfunctiontothev0.9TEDS(F)inputoftheTEDS_DatatoTableVI.

10. WiretheTEDSdataoutoutputoftheTEDS_ParseBinaryVIto

Page 359: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

theTEDSdataininputoftheTEDS_DatatoTableVI.WhenyouruntheVI,LabVIEWreadstheTEDSfromthesensor,andtheLabVIEWTEDSToolkitparsestheTEDSinformationandoutputsitasatable.

NoteYoumustenableerrorhandlingintheFPGAVItoreceiveconsistenterrormessagesinthehostVI.

RefertotheNI9237GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9237\NI9237GettingStarteddirectoryforanexampleofaccessingTEDSinformation.Openexample

Page 360: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

AcquiringDatafromanNI9237(FPGAInterface)TheNI9237hasfouranaloginputchannelsthataresampledsimultaneouslyatthedatarateforwhichyouhaveconfiguredthemodule.UsetheStartandStopchannelsoftheNI9237toputthemoduleinandoutofacquisitionmode.Inacquisitionmode,theNI9237canonlyacquiredata.YoucanusetheFPGAI/ONodetoreadthedatafromthemodule.YoucannotperformotheroperationswiththeNI9237,suchasaccessingpropertiesorTEDSinformation,whilethemoduleisinacquisitionmode.

NoteYoumustcreateFPGAI/OitemsfortheNI9237beforeyoucanconfiguretheitemsusingtheFPGAI/ONode.

Page 361: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

PuttingtheModuleinAcquisitionModeConfigureanFPGAI/ONodewiththeStartchanneloftheNI9237.WireaBooleanconstantsettoTRUEtotheStartinputoftheFPGAI/ONodetosendasynchronizationpulsetothemodule.Themodulestartsacquiringdataatthedatarateyouconfigure.

Page 362: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ReadingDatafromtheModuleWhenthemodulestartsacquiringdata,youcanuseanFPGAI/ONodetoreaddatafromthemodule.YoucanconnecttheAIoutputoftheFPGAI/ONodetovarioustypesoffunctions,includinganFPGAMemoryfunctionoranFPGAFIFOfunction.Ifyoureadfrommultiplechannelsonthemodule,placethechannelsinthesameFPGAI/ONodetoensurethattheVIreadsthedatasynchronously.BecausetheNI9237internallyacquiresdataataspecifiedrate,theFPGAI/ONodedoesnotreturndatauntilnewdatahasbeenacquiredbythemodule.IftheNI9237didnotstartacquiringdataorstopsacquiringdatawhileanFPGAI/ONodeiswaitingfordatafromthemodule,theFPGAI/ONodereturnsatimeouterror.

Page 363: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ExitingAcquisitionModeConfigureanFPGAI/ONodewiththeStopchanneloftheNI9237.WriteaTRUEtotheStopinput.ThemoduleisnolongerinacquisitionmodeandnowyoucanaccessNI9237propertiesandTEDSinformation.

Page 364: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ExampleRefertotheNI9237GettingStarted(FPGA)VIinthelabview\examples\CompactRIO\ModuleSpecific\NI9237\NI9237GettingStarteddirectoryforanexampleofreadingfromtheNI9237.Openexample

Page 365: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CSeriesModulePropertiesDialogBoxfortheNI9237(FPGAInterface)Right-clickanNI9237CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:

Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.CalibrationMode—SetsthecalibrationmodefortheCSeriesmodule.SelectCalibratedifyouwanttheFPGAI/ONodetoreturncalibrated,fixed-pointdatafromthemoduleinunitsofvolts/volt.Thefixed-pointdataissigned,withawordlengthof24bitsandanintegerwordlengthof–4bits.SelectRawifyouwanttheFPGAI/ONodetoreturnuncalibrated,binarydatafromthemodule.IfyouselectRaw,youmustconvertandcalibratetheanaloginputvaluesinthehostVI.ThedefaultisCalibrated.MasterTimebaseSource—Specifiesthemastertimebasesourcethatthemoduleuses.ExportOnboardClock—Placeacheckmarkinthischeckboxifyouwanttomakethismoduleaccessibleasamastertimebasesourcetoothermodules.DataRate—Specifiestherateatwhichthemoduleacquiresdata.EnableTEDSSupport—PlaceacheckmarkinthischeckboxifyouwanttoenableTEDSsupportintheFPGAandhostVIsforthismodule.ExcitationVoltage—Specifiestheexcitationvoltageforthemoduletooutputtobridges,orspecifiesexternalexcitation.EnableHalf-BridgeCompletion—Enableshalf-bridge

Page 366: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

completionforindividualchannels.

Page 367: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheMasterTimebaseSourcefortheNI9237(FPGAInterface)Bydefault,theNI9237moduleusestheinternalOnboardClockasthemastertimebasesource.InasystemwithmultipleNI923xmodules,youcanconfigureoneoftheNI923xmodulesasthemastertimebasesource(master)andconfiguretheotherNI923xmodulestousethatmastertimebasesource(slaves).SharingthesamemastertimebasesourceenablesyoutosynchronizemultipleNI923xmodules.TheNI9237dividesthemastertimebasesourcetoacquiredataatthedatarateyouconfigure.

NoteThecRIO-9151RSeriesExpansionchassisdoesnotsupportsynchronizingmultipleNI9225/9229/923xmodules.

Page 368: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheOnboardClockastheMasterTimebaseSourceCompletethefollowingstepstoconfiguretheOnboardClockasthemastertimebasesource.

1. ConfiguretheCompactRIOsystem,andaddanNI9237.2. Right-clicktheNI9237intheProjectExplorerwindowand

selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

3. Select<OnboardClock>fromtheMasterTimebaseSourcepull-downmenu.

4. ClicktheOKbutton.5. SelectFile»SaveAllintheProjectExplorerwindow.

Page 369: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringaMasterModuletoSharetheMasterTimebaseSourcewithSlavesCompletethefollowingstepstoconfigurethemastertimebasesourceforamastermoduleandslaves.

1. ConfiguretheCompactRIOsystem,andaddanNI9237.2. Right-clicktheNI9237intheProjectExplorerwindowand

selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

3. Select<OnboardClock>fromtheMasterTimebaseSourcepull-downmenu.

4. PlaceacheckmarkintheExportOnboardClockcheckbox.5. Right-clicktheNI9237youwanttoconfigureasaslaveinthe

ProjectExplorerwindowandselectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

6. SelectthenameofthemastermodulefromtheMasterTimebaseSourcepull-downmenu.

7. Repeatsteps5and6foreachslavemoduleyouwanttoconfigure.

8. ClicktheOKbutton.9. SelectFile»SaveAllintheProjectExplorerwindow.

Page 370: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheNI9237DataRate(FPGAInterface)YoucanconfigurethedatarateatwhichtheNI9237moduleacquiresandreturnsdataatedittimeusingtheCSeriesModulePropertiesdialogbox.YoucanprogrammaticallychangethedatarateatruntimeusingtheFPGAI/OPropertyNode.TheexecutionofanI/OPropertyNodethatisconfiguredwithaDataRatepropertyoverwritesthevalueyouconfiguredintheCSeriesModulePropertiesdialogbox.

Page 371: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheDataRateUsingtheCSeriesModulePropertiesDialogBoxCompletethefollowingstepstoconfigurethedataratefortheNI9237usingtheCSeriesModulePropertiesdialogbox.

1. ConfiguretheCompactRIOsystem,andaddanNI9237.2. Right-clicktheNI9237intheProjectExplorerwindowand

selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.

3. SelecttheratefromtheDataRatepull-downmenu.4. ClicktheOKbutton.5. SelectFile»SaveAllintheProjectExplorerwindow.

Page 372: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheDataRateUsingtheFPGAI/OPropertyNodeCompletethefollowingstepstoconfigurethedatarateusingtheFPGAI/OPropertyNode.

1. PlaceanFPGAI/OPropertyNodeontheblockdiagramandconfigureitfortheNI9237.

2. ClickthePropertysectionandselectDataRatefromtheshortcutmenu.

3. Right-clicktheDataRateinputandselectCreate»Controlfromtheshortcutmenu.

4. OnthefrontpaneloftheVI,selectaratefromtheDataRatepull-downmenu.

YoucanchangethedatarateatruntimebywritingtothecontrolfromthehostVI.RefertotheNI9237GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9237\NI9237GettingStarteddirectoryforanexampleofconfiguringthedatarateusingtheFPGAI/OPropertyNode.Openexample

NoteTheDataRatepropertyreturnserror65538ifthemoduleisacquiringdata.YoumustusetheStopchanneltostopacquiringdatabeforeyoucanwritepropertiestothemodules.

Page 373: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9239(FPGAInterface)CompactRIO4-Channel,±10V,24-BitSimultaneousAnalogInputModule

Page 374: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

NoteYoucansimultaneouslyreadfromorwritetomultiplechannelsontheNI9239.YoualsocansynchronizeanNI9239modulewithotherNI9225/9229/923xmodules.

Page 375: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionAIx Analoginputchannelx,wherexisthenumberofthechannel.

TheNI9239hasAIchannels0to3.DonotaccessAIchannelsonmultiplemodulesinthesameFPGAI/ONodeifthemodulesarenotsynchronizedordonotusethesamedatarate.

OnboardClock

GivesaccesstotheonboardclockintheLabVIEWblockdiagram.TheOnboardClockfrequencyis12.8MHz.UsetheFPGAI/ONodeinasingle-cycleTimedLooptoaccessthischannel.YoumustexporttheOnboardClockoftheNI9239toaccessthischannel.

Start ChannelthatcontrolswhentheNI9239startsacquiringdata.IfTRUEiswrittentotheStartchannel,theNI9239startsacquiringdata.WhentheNI9239isacquiringdata,youmustwriteTRUEtotheStopchannelbeforeyoucanaccesspropertiesforthemodule.IfFALSEiswrittentotheStartchannel,nooperationisperformed.

RefertotheNI9239GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9239\NI9239GettingStarteddirectoryforanexampleofusingtheStartandStopchannels.

OpenexampleStop ChannelthatcontrolswhentheNI9239stopsacquiringdata.

IfTRUEiswrittentotheStopchannel,theNI9239stopsacquiringdata.WhentheNI9239isacquiringdata,youmustwriteTRUEtotheStopchannelbeforeyoucanaccesspropertiesforthemodule.IfFALSEiswrittentotheStopchannel,nooperationisperformed.

RefertotheNI9239GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9239\NI9239GettingStarteddirectoryforanexampleofusingtheStartand

Page 376: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Stopchannels.

Openexample

Page 377: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 378: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

MethodsThisdevicedoesnotsupportanymethods.

Page 379: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionLSBWeight

ReturnstheLSBweightinpV/LSBforthechannel.UsethisvaluetoconvertandcalibrateNI9239dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Offset ReturnsthecalibrationoffsetinnVforthechannel.UsethisvaluetoconvertandcalibrateNI9239dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Page 380: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionDataRate SetstherateatwhichtheNI9239acquiresdata.ModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 381: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopYoucanusetheOnboardClockchannelinthesingle-cycleTimedLoop.YoucannotusetheotherchannelsontheNI9239withthesingle-cycleTimedLoop.RefertotheUnderstandingLoopTimingfortheNI9225/9229/923xtopicforinformationaboutlooptimingforthismodule.

Page 382: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9229/9239OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 383: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9263(FPGAInterface)CompactRIO4-Channel,±10V,16-BitSimultaneousAnalogOutputModule

Page 384: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforwriting,withthisdevice.

NoteYoucansimultaneouslywritetomultiplechannelsontheNI9263.

Page 385: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionAOx Analogoutputchannelx,wherexisthenumberofthe

channel.TheNI9263hasAOchannels0to3.

Page 386: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 387: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.ThisdevicedoesnotsupportanyI/Omethods.Youshouldusethesethreemethodsinconjunctionwitheachother.TheWriteDatamethodstoresdatavaluesbeforewritingthedatatoachannel,theUpdatemethodwritesthestoreddatavaluestotheoutputchannel,andtheWaitforUpdatemethodwaitsuntiltheUpdatemethodupdatestheoutputchannels.RefertotheNI9264MethodsVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9264\NI9264Methodsdirectoryforanexampleofusingthesemethods.Openexample

Method Input/Output DescriptionUpdate Overrun ReturnsaBooleanvalue.Avalueof

TRUEindicatesanoverrunwarning.TheoverrunwarningmeansthattheUpdatemethodistryingtorunwhiletheWriteDatamethodisrunning,typicallyinadifferentloop.EithertheWriteDatamethodiswritingdatatothemoduletooquicklyortheUpdatemethodisrunningtooslowly.

Underflow ReturnsaBooleanvalue.AvalueofTRUEindicatesanunderflowwarning.TheunderflowwarningmeansthattheWriteDatamethodhasnotwrittennewdatatothemodulesincethelasttimetheUpdatemethodran.EithertheWriteDatamethodiswritingdatatothemoduletooslowlyortheUpdatemethodisrunningtooquickly.

WaitforUpdate Timeout(Ticks) SpecifiesinFPGAclocktickshow

Page 388: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

longtheWaitforUpdatemethodwaitsfortheUpdatemethodtoupdatetheoutputchannels.Avalueof0causestheWaitforUpdatemethodtotimeoutimmediately,anegativevaluecausestheWaitforUpdatemethodtowaitindefinitely,andapositivevaluecausestheWaitforUpdatemethodtowaitforthatnumberofclockticksbeforetimingout.

TimeoutOccurred? ReturnsaBooleanvalue.AvalueofTRUEindicatesthatatimeoutoccurred.

WriteData Channel Specifiesthechanneltowhichyouwanttowritedata.

Data Specifiesthedatayouwanttowritetothechannel.

Page 389: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionLSBWeight

ReturnstheLSBweightinnV/LSBforthechannel.UsethisvaluetoconvertNI9263dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Offset ReturnsthecalibrationoffsetinnVforthechannel.UsethisvaluetoconvertNI9263dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Page 390: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 391: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.

Page 392: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9263OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 393: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CSeriesModulePropertiesDialogBoxfortheNI9263(FPGAInterface)Right-clickanNI9263CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:

Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.CalibrationMode—SetsthecalibrationmodefortheCSeriesmodule.SelectCalibratedifyouwanttheFPGAI/ONodetoacceptfixed-pointdatainunitsofvoltswhenwritingtothemodule.Thefixed-pointdataissigned,withawordlengthof20bitsandanintegerwordlengthof5bits.SelectRawifyouwanttheFPGAI/ONodetoacceptcalibrated,binarydatawhenwritingtothemodule.IfyouselectRaw,youmustconverttheanalogoutputvaluesinthehostVIbeforeyouwritethemtothemodule.ThedefaultisCalibrated.

Page 394: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConvertingVoltageValuestoBinaryValuesfortheNI9263(FPGAInterface)SettheCalibrationModetoCalibratedintheCSeriesModulePropertiesdialogboxfortheNI9263ifyouwanttheFPGAI/ONodetoacceptfixed-pointdatainunitsofvoltswhenwritingtothemodule.IfyousettheCalibrationModetoRaw,theFPGAI/ONodeacceptsonlybinaryvalueswhenwritingtothemodule.Youmustconvertoutputvoltagevaluestobinaryvaluesbeforeyouwritethemtothemodule.YoumustconvertthesevaluesinthehostVI.

Page 395: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsingaVItoConvertVoltagetoBinaryRefertotheNominaltoBinaryVIinthelabview\examples\CompactRIO\BasicIO\AnalogRawHostCalibration\AORawHostCalibration\AORawHostCalibration-cRIO.lvprojforanexampleofconvertinganalogoutputvaluestobinaryvalues.YoucanusetheNominaltoBinaryVIasasubVIinthehostVI.Openexample

Page 396: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsinganEquationtoConvertVoltagetoBinaryYoucanusethefollowingequationinthehostVItoconverttheanalogoutputvaluestobinaryvalues:

BinaryValue=(VoltageValue×109–Offset)÷LSBWeight,where BinaryValueisthevalueyouwritetotheFPGAI/ONode

VoltageValueisthevoltageinVthatyouwantthechanneltooutputOffsetisthevaluereturnedbytheOffsetpropertyLSBWeightisthevaluereturnedbytheLSBWeightproperty.

NationalInstrumentsrecommendsusingcalibratedvaluesforanalogoutput.Toconvertcalibratedvoltagevalues,usetheFPGAI/OPropertyNodetoreadtheLSBWeightandOffsetproperties.IfyoudonotwanttoreadtheLSBWeightandOffsetvaluesfromthemodule,youcanconvertuncalibratedvoltagevaluesbyusingthefollowingvaluesforOffsetandLSBWeight:Offset=0

LSBWeight=21.4V÷2DACResolution×109

where DACResolutionistheDACresolutionvalueintheNI9263OperatingInstructionsandSpecifications.

Page 397: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9264(FPGAInterface)CompactRIO16-Channel,±10V,16-BitSimultaneousAnalogVoltageOutputModule

Page 398: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforwriting,withthisdevice.

NoteYoucansimultaneouslywritetomultiplechannelsontheNI9264.

Page 399: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionAOx Analogoutputchannelx,wherexisthenumberofthe

channel.TheNI9264hasAOchannels0to15.

Page 400: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 401: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.ThisdevicedoesnotsupportanyI/Omethods.Youshouldusethesethreemethodsinconjunctionwitheachother.TheWriteDatamethodstoresdatavaluesbeforewritingthedatatoachannel,theUpdatemethodwritesthestoreddatavaluestotheoutputchannel,andtheWaitforUpdatemethodwaitsuntiltheUpdatemethodupdatestheoutputchannels.RefertotheNI9264MethodsVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9264\NI9264Methodsdirectoryforanexampleofusingthesemethods.Openexample

Method Input/Output DescriptionUpdate Overrun ReturnsaBooleanvalue.Avalueof

TRUEindicatesanoverrunwarning.TheoverrunwarningmeansthattheUpdatemethodistryingtorunwhiletheWriteDatamethodisrunning,typicallyinadifferentloop.EithertheWriteDatamethodiswritingdatatothemoduletooquicklyortheUpdatemethodisrunningtooslowly.

Underflow ReturnsaBooleanvalue.AvalueofTRUEindicatesanunderflowwarning.TheunderflowwarningmeansthattheWriteDatamethodhasnotwrittennewdatatothemodulesincethelasttimetheUpdatemethodran.EithertheWriteDatamethodiswritingdatatothemoduletooslowlyortheUpdatemethodisrunningtooquickly.

WaitforUpdate Timeout(Ticks) SpecifiesinFPGAclocktickshow

Page 402: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

longtheWaitforUpdatemethodwaitsfortheUpdatemethodtoupdatetheoutputchannels.Avalueof0causestheWaitforUpdatemethodtotimeoutimmediately,anegativevaluecausestheWaitforUpdatemethodtowaitindefinitely,andapositivevaluecausestheWaitforUpdatemethodtowaitforthatnumberofclockticksbeforetimingout.

TimeoutOccurred? ReturnsaBooleanvalue.AvalueofTRUEindicatesthatatimeoutoccurred.

WriteData Channel Specifiesthechanneltowhichyouwanttowritedata.

Data Specifiesthedatayouwanttowritetothechannel.

Page 403: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionLSBWeight

ReturnstheLSBweightinnV/LSBforthechannel.UsethisvaluetoconvertNI9264dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Offset ReturnsthecalibrationoffsetinnVforthechannel.UsethisvaluetoconvertNI9264dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Page 404: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 405: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.

Page 406: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9264OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 407: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CSeriesModulePropertiesDialogBoxfortheNI9264(FPGAInterface)Right-clickanNI9264CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:

Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.CalibrationMode—SetsthecalibrationmodefortheCSeriesmodule.SelectCalibratedifyouwanttheFPGAI/ONodetoacceptfixed-pointdatainunitsofvoltswhenwritingtothemodule.Thefixed-pointdataissigned,withawordlengthof20bitsandanintegerwordlengthof5bits.SelectRawifyouwanttheFPGAI/ONodetoacceptcalibrated,binarydatawhenwritingtothemodule.IfyouselectRaw,youmustconverttheanalogoutputvaluesinthehostVIbeforeyouwritethemtothemodule.ThedefaultisCalibrated.

Page 408: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConvertingVoltageValuestoBinaryValuesfortheNI9264(FPGAInterface)SettheCalibrationModetoCalibratedintheCSeriesModulePropertiesdialogboxfortheNI9264ifyouwanttheFPGAI/ONodetoacceptfixed-pointdatainunitsofvoltswhenwritingtothemodule.IfyousettheCalibrationModetoRaw,theFPGAI/ONodeacceptsonlybinaryvalueswhenwritingtothemodule.Youmustconvertoutputvoltagevaluestobinaryvaluesbeforeyouwritethemtothemodule.YoumustconvertthesevaluesinthehostVI.

Page 409: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsingaVItoConvertVoltagetoBinaryRefertotheNominaltoBinaryVIinthelabview\examples\CompactRIO\BasicIO\AnalogRawHostCalibration\AORawHostCalibration\AORawHostCalibration-cRIO.lvprojforanexampleofconvertinganalogoutputvaluestobinaryvalues.YoucanusetheNominaltoBinaryVIasasubVIinthehostVI.Openexample

Page 410: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsinganEquationtoConvertVoltagetoBinaryYoucanusethefollowingequationinthehostVItoconverttheanalogoutputvaluestobinaryvalues:

BinaryValue=(VoltageValue×109–Offset)÷LSBWeight,where BinaryValueisthevalueyouwritetotheFPGAI/ONode

VoltageValueisthevoltageinVthatyouwantthechanneltooutputOffsetisthevaluereturnedbytheOffsetpropertyLSBWeightisthevaluereturnedbytheLSBWeightproperty.

NationalInstrumentsrecommendsusingcalibratedvaluesforanalogoutput.Toconvertcalibratedvoltagevalues,usetheFPGAI/OPropertyNodetoreadtheLSBWeightandOffsetproperties.IfyoudonotwanttoreadtheLSBWeightandOffsetvaluesfromthemodule,youcanconvertuncalibratedvoltagevaluesbyusingthefollowingvaluesforOffsetandLSBWeight:Offset=0

LSBWeight=21V÷2DACResolution×109

where DACResolutionistheDACresolutionvalueintheNI9264OperatingInstructionsandSpecifications.

Page 411: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9265(FPGAInterface)CompactRIO4-Channel,0–20mA,16-BitSimultaneousAnalogCurrentOutputModule

Page 412: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforwriting,withthisdevice.

NoteYoucansimultaneouslywritetomultiplechannelsontheNI9265.

Page 413: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionAOx Analogoutputchannelx,wherexisthenumberofthe

channel.TheNI9265hasAOchannels0to3.

Page 414: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 415: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.ThisdevicedoesnotsupportanyI/Omethods.YoushouldusetheUpdate,WaitforUpdate,andWriteDatamethodsinconjunctionwitheachother.TheWriteDatamethodstoresdatavaluesbeforewritingthedatatoachannel,theUpdatemethodwritesthestoreddatavaluestotheoutputchannel,andtheWaitforUpdatemethodwaitsuntiltheUpdatemethodupdatestheoutputchannels.RefertotheNI9264MethodsVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9264\NI9264Methodsdirectoryforanexampleofusingthesethreemethods.Openexample

Method Input/Output Description

CheckOutputStatus

ForceStatusRead WhenthevalueofthisinputisFALSE,themethodreturnsthecachedstatusinformationsincethelaststatusread.WhenthevalueisTRUE,themethodreturnsthecurrentstatusinformationfromthemodule.Forcingastatusreadcanintroducejitterintoananalogoutputloop.

AnyFault ReturnsaBooleanvalue.AvalueofTRUEindicatesapower-supplyfaultoropencurrentlooponatleastonechannel.

Power-SupplyFault

ReturnsaBooleanvalue.AvalueofTRUEindicatesthattheexternalpowersupplyisoutoftheexpectedrange.

OpenCurrentLoop

ReturnsanarrayofBooleanvalues.AvalueofTRUEinanyindexindicatesthatthechannelsharinganumberwiththatindexhasanopencurrentloopandis

Page 416: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

configuredtooutputanonzerocurrentvalue.

Update Overrun ReturnsaBooleanvalue.AvalueofTRUEindicatesanoverrunwarning.TheoverrunwarningmeansthattheUpdatemethodistryingtorunwhiletheCheckOutputStatusorWriteDatamethodisrunning,typicallyinadifferentloop.TheUpdatemethodcannotrunwhileeithertheCheckOutputStatusorWriteDatamethodisrunning.IftheUpdatemethodisrunningatthesametimeastheWriteDatamethod,theneithertheWriteDatamethodiswritingdatatothemoduletooquicklyortheUpdatemethodisrunningtooslowly.

Underflow ReturnsaBooleanvalue.AvalueofTRUEindicatesanunderflowwarning.TheunderflowwarningmeansthattheWriteDatamethodhasnotwrittennewdatatothemodulesincethelasttimetheUpdatemethodran.EithertheWriteDatamethodiswritingdatatothemoduletooslowlyortheUpdatemethodisrunningtooquickly.

WaitforUpdate Timeout(Ticks) SpecifiesinFPGAclocktickshowlongtheWaitforUpdatemethodwaitsfortheUpdatemethodtoupdatetheoutputchannels.Avalueof0causestheWaitforUpdatemethodtotimeoutimmediately,anegativevaluecausestheWaitforUpdatemethodtowaitindefinitely,

Page 417: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

andapositivevaluecausestheWaitforUpdatemethodtowaitforthatnumberofclockticksbeforetimingout.

TimeoutOccurred? ReturnsaBooleanvalue.AvalueofTRUEindicatesthatatimeoutoccurred.

WriteData Channel Specifiesthechanneltowhichyouwanttowritedata.

Data Specifiesthedatayouwanttowritetothechannel.

Page 418: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionLSBWeight

ReturnstheLSBweightinpA/LSBforthechannel.UsethisvaluetoconvertNI9265dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Offset ReturnsthecalibrationoffsetinpAforthechannel.UsethisvaluetoconvertNI9265dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.

Page 419: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 420: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.

Page 421: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9265OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 422: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CSeriesModulePropertiesDialogBoxfortheNI9265(FPGAInterface)Right-clickanNI9265CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:

Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.CalibrationMode—SetsthecalibrationmodefortheCSeriesmodule.SelectCalibratedifyouwanttheFPGAI/ONodetoacceptfixed-pointdatainunitsofampswhenwritingtothemodule.Thefixed-pointdataisunsigned,withawordlengthof20bitsandanintegerwordlengthof–5bits.SelectRawifyouwanttheFPGAI/ONodetoacceptcalibrated,binarydatawhenwritingtothemodule.IfyouselectRaw,youmustconverttheanalogoutputvaluesinthehostVIbeforeyouwritethemtothemodule.ThedefaultisCalibrated.

Page 423: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConvertingCurrentValuestoBinaryValuesfortheNI9265(FPGAInterface)SettheCalibrationModetoCalibratedintheCSeriesModulePropertiesdialogboxfortheNI9265ifyouwanttheFPGAI/ONodetoacceptfixed-pointdatainunitsofampswhenwritingtothemodule.IfyousettheCalibrationModetoRaw,theFPGAI/ONodeacceptsonlybinaryvalueswhenwritingtothemodule.Youmustconvertoutputcurrentvaluestobinaryvaluesbeforeyouwritethemtothemodule.YoumustconvertthesevaluesinthehostVI.

Page 424: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsingaVItoConvertCurrenttoBinaryRefertotheNominaltoBinaryVIinthelabview\examples\CompactRIO\BasicIO\AnalogRawHostCalibration\AORawHostCalibration\AORawHostCalibration-cRIO.lvprojforanexampleofconvertinganalogoutputvaluestobinaryvalues.YoucanusetheNominaltoBinaryVIasasubVIinthehostVI.Openexample

Page 425: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

UsinganEquationtoConvertCurrenttoBinaryYoucanusethefollowingequationinthehostVItoconverttheanalogoutputvaluestobinaryvalues:

BinaryValue=(CurrentValue×109–Offset)÷LSBWeightwhere BinaryValueisthevalueyouwritetotheFPGAI/ONode

CurrentValueisthecurrentinmAthatyouwantthechanneltooutputOffsetisthevaluereturnedbytheOffsetpropertyLSBWeightisthevaluereturnedbytheLSBWeightproperty.

NationalInstrumentsrecommendsusingcalibratedvaluesforanalogoutput.Toconvertcalibratedcurrentvalues,usetheFPGAI/OPropertyNodetoreadtheLSBWeightandOffsetproperties.IfyoudonotwanttoreadtheLSBWeightandOffsetvaluesfromthemodule,youcanconvertuncalibratedcurrentvaluesbyusingthefollowingvaluesforOffsetandLSBWeight:Offset=0

LSBWeight=20.6mA÷2DACResolution×109

where DACResolutionistheDACresolutionvalueintheNI9265OperatingInstructionsandSpecifications.

Page 426: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9401(FPGAInterface)CompactRIO8-Channel,TTLDigitalInput/OutputModule

Page 427: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreadingandwriting,withthisdevice.WhenyouwritetoanNI9401channel,theFPGAI/ONodedoesnotautomaticallyenablethechannelforoutput.

Page 428: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionDIOx Digitalinput/outputchannelx,wherexisthenumberofthe

channel.TheNI9401hasDIOchannels0to7.DIO3:0 Digitalportconsistingofchannels0through3.Channel3is

returnedintheMSB,andchannel0isreturnedintheLSB.DIO7:4 Digitalportconsistingofchannels4through7.Channel7is

returnedintheMSB,andchannel4isreturnedintheLSB.DIO7:0 Digitalportconsistingofchannels0through7.Channel7is

returnedintheMSB,andchannel0isreturnedintheLSB.

Page 429: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationYoucanconfigurethearbitrationsettingsfordigitaloutputchannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.DigitalinputchannelsofthisdevicesupportonlytheNeverArbitrateoptionforarbitration.Youcannotconfigurearbitrationsettingsforthedigitalinputchannelsofthisdevice.

Page 430: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.

Method DescriptionWaitonAnyEdge

PausestheexecutionoftheI/OMethodNodeuntilthenextfallingorrisingedgeofthedigitalsignal.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonAnyEdgemethodwaitsforthenextfallingorrisingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonFallingEdge

PausestheexecutionoftheI/OMethodNodeuntilthenextfallingedgeofthedigitalsignal.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonFallingEdgemethodwaitsforthenextfallingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonHighLevel

PausestheexecutionoftheI/OMethodNodeuntilthedigitalsignalishigh.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonHighLevelmethodwaitsforthenexthighlevel.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonLowLevel

PausestheexecutionoftheI/OMethodNodeuntilthedigitalsignalislow.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonLowLevelmethodwaitsforthenextlowlevel.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonRisingEdge

PausestheexecutionoftheI/OMethodNodeuntilthenextrisingedgeofthedigitalsignal.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonRisingEdgemethod

Page 431: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

waitsforthenextrisingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

Page 432: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.

Method DescriptionCheckStatus ReturnsaBooleanvaluethatindicateswhetherthe

moduleisready.NoteDuringthefirst2secondsafteryouresettheFPGAVI,theerrorterminalsonthismethodmaynotcorrectlyreportcertaintypesoferrors.

SetLineDirection

Setsthedirectionofoneporttoinputoroutput.

Page 433: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 434: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedConfigurationdialogbox.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.Whenthemoduleiswithinasingle-cycleTimedLoop,itmustbereadytoperformdigitalI/ObeforealoopcontainingdigitalI/Ostarts.PolltheReadyoutputoftheCheckStatusmethodtodeterminewhetherthemoduleisready.Digitalinputoperationsreturninvaliddataifthemoduleisnotready.Themodulealsomightignoreordelaydigitaloutputoperationsifitisnotready.WhilethemoduleisperformingdigitalI/Owithinasingle-cycleTimedLoop,donotperformpropertyreads,usetheSetLineDirectionmethod,orremovethemodulefromthechassis.DoinganyoftheseactionscausesthemoduletobeunabletoperformdigitalI/OandtheReadyoutputoftheCheckStatusmethodtoreturnFALSE.

Page 435: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGATargetClockSupportThisdevicesupportsonlytop-levelFPGAtargetclockratesandsingle-cycleTimedLoopclockratesthataremultiplesof40MHz,suchas40MHz,80Mhz,120MHz,andsoon.

Page 436: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9401OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 437: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CSeriesModulePropertiesDialogBoxfortheNI9401(FPGAInterface)Right-clickanNI9401CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:

Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.InitialLineDirection—Setstheinitiallinedirectionforeachdigitalporttodigitalinputordigitaloutput.Thedefaultisdigitalinput.Advanced—LaunchestheAdvancedConfigurationdialogbox.

Page 438: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheInitialLineDirectionfortheNI9401(FPGAInterface)EachdigitalportontheNI9401isinitiallyconfiguredasadigitalinput.YoucanconfiguretheinitiallinedirectionforeachportontheNI9401atedittimeusingtheCSeriesModulePropertiesdialogbox.YoucanprogrammaticallychangethelinedirectionforeachportatruntimeusingtheFPGAI/OMethodNode.TheexecutionofanI/OMethodNodethatisconfiguredwithaSetLineDirectionmethodoverwritesthevalueyouconfiguredintheCSeriesModulePropertiesdialogbox.

Page 439: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringLineDirectionUsingtheCSeriesModulePropertiesDialogBoxCompletethefollowingstepstoconfigurethelinedirectionofeachdigitalportusingtheCSeriesModulePropertiesdialogbox.

1. ConfiguretheCompactRIOsystem,andaddanNI9401.2. Right-clicktheNI9401intheProjectExplorerwindowand

selectPropertiesfromtheshortcutmenutodisplaytheCSeriesModulePropertiesdialogbox.

3. SelectthedirectionforeachportfromtheInitialLineDirectionpull-downmenus.

4. ClicktheOKbutton.5. SelectFile»SaveAllintheProjectExplorerwindow.

Page 440: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringLineDirectionUsingtheFPGAI/OMethodNodeCompletethefollowingstepstoconfigurethelinedirectionofeachdigitalportusingtheFPGAI/OMethodNode.

1. PlaceanFPGAI/OMethodNodeontheblockdiagramandconfigureitfortheNI9401.

2. ClicktheMethodsectionandselecttheSetLineDirectionmethodfromtheshortcutmenu.

3. Right-clickeachdigitalportinputandselectCreate»Controlfromtheshortcutmenu.

4. OnthefrontpaneloftheVI,selectthedirectionforeachportfromthedigitalportpull-downmenus.

Page 441: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9402(FPGAInterface)CompactRIO4-Channel,LVTTLDigitalInput/OutputModule

Page 442: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreadingandwriting,withthisdevice.

Page 443: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionDIOx Digitalinput/outputchannelx,wherexisthenumberofthe

channel.TheNI9402hasDIOchannels0to3.DIO3:0 Digitalportconsistingofchannels0through3.Channel3is

returnedintheMSB,andchannel0isreturnedintheLSB.

Page 444: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationYoucanconfigurethearbitrationsettingsfordigitaloutputchannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.DigitalinputchannelsofthisdevicesupportonlytheNeverArbitrateoptionforarbitration.Youcannotconfigurearbitrationsettingsforthedigitalinputchannelsofthisdevice.

Page 445: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.

Method DescriptionSetOutputData

RefertotheFPGAI/OMethodNode(FPGAModule)topicforadescriptionofthismethod.

SetOutputEnable

SetsthelinedirectionofthedigitalchannelortheDIO3:0digitalport.RefertotheFPGAI/OMethodNode(FPGAModule)topicformoreinformationonthismethod.

WaitonAnyEdge

PausestheexecutionoftheI/OMethodNodeuntilthenextfallingorrisingedgeofthedigitalsignal.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonAnyEdgemethodwaitsforthenextfallingorrisingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonFallingEdge

PausestheexecutionoftheI/OMethodNodeuntilthenextfallingedgeofthedigitalsignal.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonFallingEdgemethodwaitsforthenextfallingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonHighLevel

PausestheexecutionoftheI/OMethodNodeuntilthedigitalsignalishigh.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonHighLevelmethodwaitsforthenexthighlevel.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonLowLevel

PausestheexecutionoftheI/OMethodNodeuntilthedigitalsignalislow.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonLowLevelmethodwaitsforthenextlow

Page 446: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

level.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonRisingEdge

PausestheexecutionoftheI/OMethodNodeuntilthenextrisingedgeofthedigitalsignal.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonRisingEdgemethodwaitsforthenextrisingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

Page 447: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModuleMethodUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.

Method DescriptionCheckStatus ReturnsaBooleanvaluethatindicateswhetherthe

moduleisready.NoteDuringthefirst2secondsafteryouresettheFPGAVI,theerrorterminalsonthismethodmaynotcorrectlyreportcertaintypesoferrors.

Page 448: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 449: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.TheNI9402supportsthefollowingoutputsynchronizingregisteroptions:

NumberofSynchronizingRegistersforOutputDatawhenusedinSCTLNumberofSynchronizingRegistersforOutputEnablewhenusedinSCTL

ThesetwooptionssupportthesamefunctionalityastheNumberofSynchronizingRegistersforOutputDataandNumberofSynchronizingRegistersforOutputEnableoptionsdescribedintheAdvancedCodeGenerationFPGAI/OPropertiesPage(FPGAModule)topic,withtheexceptionthatyoucanusetheseoptionsonlyinasingle-cycleTimedLoop.Youcanimplementeither0or1synchronizingregistersinsidethesingle-cycleTimedLoop,however,ifyouconfigure0synchronizingregistersoutsideofthesingle-cycleTimedLoop,theFPGAVIimplements1synchronizingregisterbydefault.Whenthemoduleiswithinasingle-cycleTimedLoop,itmustbereadytoperformdigitalI/ObeforealoopcontainingdigitalI/Ostarts.PolltheReadyoutputoftheCheckStatusmethodtodeterminewhetherthemoduleisready.Digitalinputoperationsreturninvaliddataifthemoduleisnotready.Themodulealsomightignoreordelaydigitaloutputoperationsifitisnotready.WhilethemoduleisperformingdigitalI/Owithinasingle-cycleTimedLoop,donotperformpropertyreadsorremovethemodulefromthechassis.DoinganyoftheseactionscausesthemoduletobeunabletoperformdigitalI/OandtheReadyoutputoftheCheckStatusmethodtoreturnFALSE.

Page 450: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGATargetClockSupportThisdevicesupportsonlytop-levelFPGAtargetclockratesandsingle-cycleTimedLoopclockratesthataremultiplesof40MHz,suchas40MHz,80Mhz,120MHz,andsoon.

Page 451: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9402OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.Theoperatinginstructionsshipwiththemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 452: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CSeriesModulePropertiesDialogBoxfortheNI9402(FPGAInterface)Right-clickanNI9402CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:

Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.Channels—Specifiesthechannel(s)forwhichyouwanttoselectthelinedirection.SelectedChannel(s)Settings—Specifiesthelinedirectionforeachchannel.

Direction—Setsthelinedirectionfortheselectedchannel(s)todigitalinputordigitaloutput.Thedefaultisdigitalinput.

Page 453: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheLineDirectionfortheNI9402(FPGAInterface)EachdigitalchannelontheNI9402isinitiallyconfiguredasadigitalinput.YoucanconfiguretheinitiallinedirectionforeachchannelontheNI9402atedittimeusingtheCSeriesModulePropertiesdialogbox.YoucanprogrammaticallychangethelinedirectionforeachchannelatruntimeusingtheFPGAI/OMethodNode.TheexecutionofanI/OMethodNodethatisconfiguredwithaSetOutputEnablemethodoverwritesthevaluesyouconfiguredintheCSeriesModulePropertiesdialogbox.Inaddition,theexecutionofanFPGAI/ONodeconfiguredforoutputautomaticallyconfiguresthelineforoutputandoverwritesthevaluesyouconfiguredintheCSeriesModulePropertiesdialogboxorusingtheSetOutputEnablemethod.

Page 454: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringLineDirectionUsingtheCSeriesModulePropertiesDialogBoxCompletethefollowingstepstosetthelinedirectionofchannelsusingtheCSeriesModulePropertiesdialogbox.

1. ConfiguretheCompactRIOsystem,andaddanNI9402.2. Right-clicktheNI9402intheProjectExplorerwindowand

selectPropertiesfromtheshortcutmenutodisplaytheCSeriesModulePropertiesdialogbox.

3. Selectthechannel(s)forwhichyouwanttoconfigurethelinedirectionfromtheChannelstable.Youcanselectmorethanonechannelbyholdingthe<Ctrl>or<Shift>keywhenselectingchannels.

4. Selectthedirectionforthechannel(s)fromtheDirectionpull-downmenu.

5. ClicktheOKbutton.6. SelectFile»SaveAllintheProjectExplorerwindow.

Page 455: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringLineDirectionofOneChannelUsingtheFPGAI/OMethodNodeCompletethefollowingstepstosetthelinedirectionofachannelusingtheFPGAI/OMethodNode.

1. CreateFPGAI/OitemsforthechanneloftheNI9402forwhichyouwanttoconfigurethelinedirection.

2. PlaceanFPGAI/OMethodNodeontheblockdiagramandconfigureitforthischannel.

3. ClicktheMethodsectionandselecttheSetOutputEnablemethodfromtheshortcutmenu.

4. Right-clicktheEnableinputandselectCreate»Controlfromtheshortcutmenu.

5. OnthefrontpaneloftheVI,clicktheEnableBooleancontroltosetittoTRUEifyouwanttosetthelinedirectionofthechanneltodigitaloutput.

Page 456: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringLineDirectionofMultipleChannelsUsingtheFPGAI/OMethodNodeCompletethefollowingstepstosetthelinedirectionofmultiplechannelsusingtheFPGAI/OMethodNode.

1. CreateFPGAI/OitemsfortheDIO3:0digitalportoftheNI9402.2. PlaceanFPGAI/OMethodNodeontheblockdiagramand

configureitfortheDIO3:0digitalport.3. ClicktheMethodsectionandselecttheSetOutputEnable

methodfromtheshortcutmenu.4. Right-clicktheEnableinputandselectCreate»Controlfromthe

shortcutmenu.TheEnablecontrolappearsasanunsigned8-bitinteger.EachbitintheintegerrepresentsthelinedirectionofonechanneloftheNI9402.

5. OnthefrontpaneloftheVI,usetheEnablecontroltoenterthelinedirectionforeachchannelintheport.Changeabitto1tosetthelinedirectionofthecorrespondingchanneltodigitaloutput.Leaveabitas0tosetthelinedirectionofthecorrespondingchanneltodigitalinput.RefertothetablebelowforexamplesofwhattoenterintheEnablecontrol.

ChannelLineDirectionConfiguration

EnableControl(FloatingPoint)

EnableControl(Binary)

EnableControl(Hex)

Changeallchannelstoinput

0 0000 0x00

Changeallchannelstooutput

15 1111 0x0F

Changechannel0tooutput 1 0001 0x01

Page 457: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9403(FPGAInterface)CompactRIO32-Channel,TTLDigitalInput/OutputModule

Page 458: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreadingandwriting,withthisdevice.

Page 459: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionDIOx Digitalinput/outputchannelx,wherexisthenumberofthe

channel.TheNI9403hasDIOchannels0to31.DIO7:0 Digitalportconsistingofchannels0through7.Channel7is

returnedintheMSB,andchannel0isreturnedintheLSB.DIO15:8 Digitalportconsistingofchannels8through15.Channel15is

returnedintheMSB,andchannel8isreturnedintheLSB.DIO23:16 Digitalportconsistingofchannels16through23.Channel23

isreturnedintheMSB,andchannel16isreturnedintheLSB.DIO31:24 Digitalportconsistingofchannels24through31.Channel31

isreturnedintheMSB,andchannel24isreturnedintheLSB.DIO31:0 Digitalportconsistingofchannels0through31.Channel31is

returnedintheMSB,andchannel0isreturnedintheLSB.

Page 460: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyandNeverArbitrateoptionsforarbitration.ThedefaultarbitrationsettingisArbitrateifMultipleRequestorsOnly.IfyouaresurethatthedesignoftheFPGAVIwillneverallowmorethanonedigitalfunctiontoexecuteatthesametime,evenondifferentchannels,youcanplaceacheckmarkintheDisableArbitrationcheckboxontheCSeriesModulePropertiesdialogboxtodisablearbitrationandreducetheamountofFPGAlogicusedbyVIs.IfmorethanonedigitalfunctioncouldexecutesimultaneouslyintheFPGAVI,leavetheboxunchecked.

Page 461: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.Thisdevicedoesnotsupportanymodulemethods.

Method DescriptionSetOutputEnable Setsthelinedirectionofthedigitalchannelorport.If

theI/Oitemisadigitalline,EnablerequiresaBooleandatatype.IftheI/Oitemisadigitalport,Enablerequiresanumericdatatype.

Page 462: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 463: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.

Page 464: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9403OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 465: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CSeriesModulePropertiesDialogBoxfortheNI9403(FPGAInterface)Right-clickanNI9403CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:

Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.Channels—Specifiesthechannel(s)forwhichyouwanttoselectthelinedirection.SelectedChannel(s)Settings—Specifiesthelinedirectionforeachchannel.

Direction—Setsthelinedirectionfortheselectedchannel(s)todigitalinputordigitaloutput.Thedefaultisdigitalinput.

DisableArbitration—PlaceacheckmarkinthischeckboxifyouwanttochangethearbitrationsettingtoNeverArbitrateandreducetheamountofFPGAlogicusedbyVIs.CheckthisboxonlyifyouaresurethatthedesignoftheFPGAVIwillneverallowmorethanonedigitalfunctiontoexecuteatthesametime,evenondifferentchannels.IfmorethanonedigitalfunctioncouldexecutesimultaneouslyintheFPGAVI,leavetheboxuncheckedtokeepthedefaultArbitrateifMultipleRequestorsOnlyarbitrationsetting.

Page 466: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringtheLineDirectionfortheNI9403(FPGAInterface)EachdigitalchannelontheNI9403isinitiallyconfiguredasadigitalinput.YoucanconfiguretheinitiallinedirectionforeachchannelontheNI9403atedittimeusingtheCSeriesModulePropertiesdialogbox.YoucanprogrammaticallychangethelinedirectionforeachchannelatruntimeusingtheFPGAI/OMethodNode.TheexecutionofanI/OMethodNodethatisconfiguredwithaSetOutputEnablemethodoverwritesthevaluesyouconfiguredintheCSeriesModulePropertiesdialogbox.Inaddition,theexecutionofanFPGAI/ONodeconfiguredforoutputautomaticallyconfiguresthelineforoutputandoverwritesthevaluesyouconfiguredintheCSeriesModulePropertiesdialogboxorusingtheSetOutputEnablemethod.

Page 467: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringLineDirectionUsingtheCSeriesModulePropertiesDialogBoxCompletethefollowingstepstosetthelinedirectionofchannelsusingtheCSeriesModulePropertiesdialogbox.

1. ConfiguretheCompactRIOsystem,andaddanNI9403.2. Right-clicktheNI9403intheProjectExplorerwindowand

selectPropertiesfromtheshortcutmenutodisplaytheCSeriesModulePropertiesdialogbox.

3. Selectthechannel(s)forwhichyouwanttoconfigurethelinedirectionfromtheChannelstable.Youcanselectmorethanonechannelbyholdingthe<Ctrl>or<Shift>keywhenselectingchannels.

4. Selectthedirectionforthechannel(s)fromtheDirectionpull-downmenu.

5. ClicktheOKbutton.6. SelectFile»SaveAllintheProjectExplorerwindow.

Page 468: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringLineDirectionofOneChannelUsingtheFPGAI/OMethodNodeCompletethefollowingstepstosetthelinedirectionofachannelusingtheFPGAI/OMethodNode.

1. CreateFPGAI/OitemsforthechanneloftheNI9403forwhichyouwanttoconfigurethelinedirection.

2. PlaceanFPGAI/OMethodNodeontheblockdiagramandconfigureitforthischannel.

3. ClicktheMethodsectionandselecttheSetOutputEnablemethodfromtheshortcutmenu.

4. Right-clicktheEnableinputandselectCreate»Controlfromtheshortcutmenu.

5. OnthefrontpaneloftheVI,clicktheEnableBooleancontroltosetittoTRUEifyouwanttosetthelinedirectionofthechanneltodigitaloutput.

Page 469: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringLineDirectionofMultipleChannelsUsingtheFPGAI/OMethodNodeCompletethefollowingstepstosetthelinedirectionofmultiplechannelsusingtheFPGAI/OMethodNode.

1. CreateFPGAI/OitemsforthedigitalportoftheNI9403thatcontainsthechannelsyouwanttoconfigure.

2. PlaceanFPGAI/OMethodNodeontheblockdiagramandconfigureitforthisdigitalport.

3. ClicktheMethodsectionandselecttheSetOutputEnablemethodfromtheshortcutmenu.

4. Right-clicktheEnableinputandselectCreate»Controlfromtheshortcutmenu.IfyouconfiguredtheFPGAI/OMethodNodefortheDIO7:0,DIO15:8,DIO23:16,orDIO31:24digitalport,theEnablecontrolappearsasanunsigned8-bitinteger.IfyouconfiguredtheFPGAI/OMethodNodefortheDIO31:0digitalport,theEnablecontrolappearsasanunsigned32-bitinteger.EachbitintheintegerrepresentsthelinedirectionofonechanneloftheNI9403.

5. OnthefrontpaneloftheVI,usetheEnablecontroltoenterthelinedirectionforeachchannelintheport.Changeabitto1tosetthelinedirectionofthecorrespondingchanneltodigitaloutput.Leaveabitas0tosetthelinedirectionofthecorrespondingchanneltodigitalinput.RefertothetablebelowforexamplesofwhattoenterintheEnablecontrolifyouconfiguredtheFPGAI/OMethodNodefortheDIO7:0digitalport.

ChannelLineDirectionConfiguration

EnableControl(Hex)

EnableControl(Binary)

Changeallchannelstoinput 0x00 0b00000000Changeallchannelstooutput

0xFF 0b11111111

Changechannel0tooutput 0x01 0b00000001Changechannels0through5tooutput

0x3F 0b00111111

Changechannels3and7to 0x88 0b10001000

Page 470: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

output

RefertothetablebelowforexamplesofwhattoenterintheEnablecontrolifyouconfiguredtheFPGAI/OMethodNodefortheDIO31:0digitalport.

ChannelLineDirection

Configuration

EnableControl(Hex)

EnableControl(Binary)

Changeallchannelstoinput

0x00000000 0b00000000000000000000000000000000

Changeallchannelstooutput

0xFFFFFFFF 0b11111111111111111111111111111111

Changechannel0tooutput

0x00000001 0b00000000000000000000000000000001

Changechannels0through5tooutput

0x0000003F 0b00000000000000000000000000111111

Changechannels3and7tooutput

0x00000088 0b00000000000000000000000010001000

Page 471: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9411(FPGAInterface)CompactRIO6-Channel,DifferentialorTTLDigitalInputModule

Page 472: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

Page 473: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionDIx Digitalinputchannelx,wherexisthenumberofthechannel.

TheNI9411hasDIchannels0to5.DI5:0 Digitalportconsistingofchannels0through5.Channel5is

returnedinbit5,andchannel0isreturnedinbit0.Bits6and7returnazero.

Page 474: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheNeverArbitrateoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 475: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.

Method DescriptionWaitonAnyEdge

PausestheexecutionoftheI/OMethodNodeuntilthenextfallingorrisingedgeofthedigitalsignal.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonAnyEdgemethodwaitsforthenextfallingorrisingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonFallingEdge

PausestheexecutionoftheI/OMethodNodeuntilthenextfallingedgeofthedigitalsignal.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonFallingEdgemethodwaitsforthenextfallingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonHighLevel

PausestheexecutionoftheI/OMethodNodeuntilthedigitalsignalishigh.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonHighLevelmethodwaitsforthenexthighlevel.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonLowLevel

PausestheexecutionoftheI/OMethodNodeuntilthedigitalsignalislow.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonLowLevelmethodwaitsforthenextlowlevel.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonRisingEdge

PausestheexecutionoftheI/OMethodNodeuntilthenextrisingedgeofthedigitalsignal.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonRisingEdgemethod

Page 476: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

waitsforthenextrisingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

Page 477: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.

Method DescriptionCheckStatus ReturnsaBooleanvaluethatindicateswhetherthe

moduleisready.NoteDuringthefirst2secondsafteryouresettheFPGAVI,theerrorterminalsonthismethodmaynotcorrectlyreportcertaintypesoferrors.

Page 478: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 479: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.Whenthemoduleiswithinasingle-cycleTimedLoop,itmustbereadytoperformdigitalinputbeforealoopcontainingdigitalinputstarts.PolltheReadyoutputoftheCheckStatusmethodtodeterminewhetherthemoduleisready.Digitalinputoperationsreturninvaliddataifthemoduleisnotready.Whilethemoduleisperformingdigitalinputwithinasingle-cycleTimedLoop,donotperformpropertyreadsorremovethemodulefromthechassis.DoingeitheroftheseactionscausesthemoduletobeunabletoperformdigitalinputandtheReadyoutputoftheCheckStatusmethodtoreturnFALSE.

Page 480: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGATargetClockSupportThisdevicesupportsonlytop-levelFPGAtargetclockratesandsingle-cycleTimedLoopclockratesthataremultiplesof40MHz,suchas40MHz,80Mhz,120MHz,andsoon.

Page 481: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9411OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 482: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CSeriesModulePropertiesDialogBoxfortheNI9411,NI9421,NI9422,NI9423,NI9425,NI9426,NI9435,NI9505,andNI9802(FPGAInterface)Right-clickanNI9411,NI9421,NI9422,NI9423,NI9425,NI9426,NI9435,NI9505,orNI9802CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:

Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.

Page 483: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9421(FPGAInterface)CompactRIO8-Channel,24V,SinkingDigitalInputModule

Page 484: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

Page 485: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionDIx Digitalinputchannelx,wherexisthenumberofthechannel.

TheNI9421hasDIchannels0to7.DI7:0 Digitalportconsistingofchannels0through7.Channel7is

returnedintheMSB,andchannel0isreturnedintheLSB.

Page 486: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheNeverArbitrateoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 487: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.

Method DescriptionWaitonAnyEdge

PausestheexecutionoftheI/OMethodNodeuntilthenextfallingorrisingedgeofthedigitalsignal.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonAnyEdgemethodwaitsforthenextfallingorrisingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonFallingEdge

PausestheexecutionoftheI/OMethodNodeuntilthenextfallingedgeofthedigitalsignal.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonFallingEdgemethodwaitsforthenextfallingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonHighLevel

PausestheexecutionoftheI/OMethodNodeuntilthedigitalsignalishigh.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonHighLevelmethodwaitsforthenexthighlevel.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonLowLevel

PausestheexecutionoftheI/OMethodNodeuntilthedigitalsignalislow.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonLowLevelmethodwaitsforthenextlowlevel.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonRisingEdge

PausestheexecutionoftheI/OMethodNodeuntilthenextrisingedgeofthedigitalsignal.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonRisingEdgemethod

Page 488: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

waitsforthenextrisingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

Page 489: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.

Method DescriptionCheckStatus ReturnsaBooleanvaluethatindicateswhetherthe

moduleisready.NoteDuringthefirst2secondsafteryouresettheFPGAVI,theerrorterminalsonthismethodmaynotcorrectlyreportcertaintypesoferrors.

Page 490: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 491: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.Whenthemoduleiswithinasingle-cycleTimedLoop,itmustbereadytoperformdigitalinputbeforealoopcontainingdigitalinputstarts.PolltheReadyoutputoftheCheckStatusmethodtodeterminewhetherthemoduleisready.Digitalinputoperationsreturninvaliddataifthemoduleisnotready.Whilethemoduleisperformingdigitalinputwithinasingle-cycleTimedLoop,donotperformpropertyreadsorremovethemodulefromthechassis.DoingeitheroftheseactionscausesthemoduletobeunabletoperformdigitalinputandtheReadyoutputoftheCheckStatusmethodtoreturnFALSE.

Page 492: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGATargetClockSupportThisdevicesupportsonlytop-levelFPGAtargetclockratesandsingle-cycleTimedLoopclockratesthataremultiplesof40MHz,suchas40MHz,80Mhz,120MHz,andsoon.

Page 493: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9421/9423OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 494: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9422(FPGAInterface)CompactRIO8-Channel,24V,Sinking/SourcingDigitalInputModule

Page 495: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

Page 496: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionDIx Digitalinputchannelx,wherexisthenumberofthechannel.

TheNI9422hasDIchannels0to7.DI7:0 Digitalportconsistingofchannels0through7.Channel7is

returnedintheMSB,andchannel0isreturnedintheLSB.

Page 497: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheNeverArbitrateoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 498: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.

Method DescriptionWaitonAnyEdge

PausestheexecutionoftheI/OMethodNodeuntilthenextfallingorrisingedgeofthedigitalsignal.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonAnyEdgemethodwaitsforthenextfallingorrisingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonFallingEdge

PausestheexecutionoftheI/OMethodNodeuntilthenextfallingedgeofthedigitalsignal.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonFallingEdgemethodwaitsforthenextfallingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonHighLevel

PausestheexecutionoftheI/OMethodNodeuntilthedigitalsignalishigh.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonHighLevelmethodwaitsforthenexthighlevel.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonLowLevel

PausestheexecutionoftheI/OMethodNodeuntilthedigitalsignalislow.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonLowLevelmethodwaitsforthenextlowlevel.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonRisingEdge

PausestheexecutionoftheI/OMethodNodeuntilthenextrisingedgeofthedigitalsignal.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonRisingEdgemethod

Page 499: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

waitsforthenextrisingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

Page 500: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.

Method DescriptionCheckStatus ReturnsaBooleanvaluethatindicateswhetherthe

moduleisready.NoteDuringthefirst2secondsafteryouresettheFPGAVI,theerrorterminalsonthismethodmaynotcorrectlyreportcertaintypesoferrors.

Page 501: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 502: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.Whenthemoduleiswithinasingle-cycleTimedLoop,itmustbereadytoperformdigitalinputbeforealoopcontainingdigitalinputstarts.PolltheReadyoutputoftheCheckStatusmethodtodeterminewhetherthemoduleisready.Digitalinputoperationsreturninvaliddataifthemoduleisnotready.Whilethemoduleisperformingdigitalinputwithinasingle-cycleTimedLoop,donotperformpropertyreadsorremovethemodulefromthechassis.DoingeitheroftheseactionscausesthemoduletobeunabletoperformdigitalinputandtheReadyoutputoftheCheckStatusmethodtoreturnFALSE.

Page 503: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGATargetClockSupportThisdevicesupportsonlytop-levelFPGAtargetclockratesandsingle-cycleTimedLoopclockratesthataremultiplesof40MHz,suchas40MHz,80Mhz,120MHz,andsoon.

Page 504: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9422OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 505: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9423(FPGAInterface)CompactRIO8-Channel,24V,High-SpeedDigitalInputModule

Page 506: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

Page 507: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionDIx Digitalinputchannelx,wherexisthenumberofthechannel.

TheNI9423hasDIchannels0to7.DI7:0 Digitalportconsistingofchannels0through7.Channel7is

returnedintheMSB,andchannel0isreturnedintheLSB.

Page 508: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheNeverArbitrateoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 509: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.

Method DescriptionWaitonAnyEdge

PausestheexecutionoftheI/OMethodNodeuntilthenextfallingorrisingedgeofthedigitalsignal.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonAnyEdgemethodwaitsforthenextfallingorrisingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonFallingEdge

PausestheexecutionoftheI/OMethodNodeuntilthenextfallingedgeofthedigitalsignal.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonFallingEdgemethodwaitsforthenextfallingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonHighLevel

PausestheexecutionoftheI/OMethodNodeuntilthedigitalsignalishigh.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonHighLevelmethodwaitsforthenexthighlevel.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonLowLevel

PausestheexecutionoftheI/OMethodNodeuntilthedigitalsignalislow.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonLowLevelmethodwaitsforthenextlowlevel.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonRisingEdge

PausestheexecutionoftheI/OMethodNodeuntilthenextrisingedgeofthedigitalsignal.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonRisingEdgemethod

Page 510: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

waitsforthenextrisingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

Page 511: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.

Method DescriptionCheckStatus ReturnsaBooleanvaluethatindicateswhetherthe

moduleisready.NoteDuringthefirst2secondsafteryouresettheFPGAVI,theerrorterminalsonthismethodmaynotcorrectlyreportcertaintypesoferrors.

Page 512: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 513: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.Whenthemoduleiswithinasingle-cycleTimedLoop,itmustbereadytoperformdigitalinputbeforealoopcontainingdigitalinputstarts.PolltheReadyoutputoftheCheckStatusmethodtodeterminewhetherthemoduleisready.Digitalinputoperationsreturninvaliddataifthemoduleisnotready.Whilethemoduleisperformingdigitalinputwithinasingle-cycleTimedLoop,donotperformpropertyreadsorremovethemodulefromthechassis.DoingeitheroftheseactionscausesthemoduletobeunabletoperformdigitalinputandtheReadyoutputoftheCheckStatusmethodtoreturnFALSE.

Page 514: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGATargetClockSupportThisdevicesupportsonlytop-levelFPGAtargetclockratesandsingle-cycleTimedLoopclockratesthataremultiplesof40MHz,suchas40MHz,80Mhz,120MHz,andsoon.

Page 515: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9421/9423OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 516: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9425(FPGAInterface)CompactRIO32-Channel,24V,SinkingDigitalInputModule

Page 517: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

Page 518: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionDIx Digitalinputchannelx,wherexisthenumberofthechannel.

TheNI9425hasDIchannels0to31.DI7:0 Digitalportconsistingofchannels0through7.Channel7is

returnedintheMSB,andchannel0isreturnedintheLSB.DI15:8 Digitalportconsistingofchannels8through15.Channel15is

returnedintheMSB,andchannel8isreturnedintheLSB.DI23:16 Digitalportconsistingofchannels16through23.Channel23

isreturnedintheMSB,andchannel16isreturnedintheLSB.DI31:24 Digitalportconsistingofchannels24through31.Channel31

isreturnedintheMSB,andchannel24isreturnedintheLSB.DI31:0 Digitalportconsistingofchannels0through31.Channel31is

returnedintheMSB,andchannel0isreturnedintheLSB.

Page 519: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 520: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

MethodsThisdevicedoesnotsupportanymethods.

Page 521: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 522: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.

Page 523: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9425OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 524: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9426(FPGAInterface)CompactRIO32-Channel,24V,SourcingDigitalInputModule

Page 525: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

Page 526: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionDIx Digitalinputchannelx,wherexisthenumberofthechannel.

TheNI9426hasDIchannels0to31.DI7:0 Digitalportconsistingofchannels0through7.Channel7is

returnedintheMSB,andchannel0isreturnedintheLSB.DI15:8 Digitalportconsistingofchannels8through15.Channel15is

returnedintheMSB,andchannel8isreturnedintheLSB.DI23:16 Digitalportconsistingofchannels16through23.Channel23

isreturnedintheMSB,andchannel16isreturnedintheLSB.DI31:24 Digitalportconsistingofchannels24through31.Channel31

isreturnedintheMSB,andchannel24isreturnedintheLSB.DI31:0 Digitalportconsistingofchannels0through31.Channel31is

returnedintheMSB,andchannel0isreturnedintheLSB.

Page 527: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 528: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

MethodsThisdevicedoesnotsupportanymethods.

Page 529: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 530: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.

Page 531: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9426OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 532: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9435(FPGAInterface)CompactRIO4-Channel,AC/DCUniversalDigitalInputModule

Page 533: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.

Page 534: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionDIx Digitalinputchannelx,wherexisthenumberofthechannel.

TheNI9435hasDIchannels0to3.DI3:0 Digitalportconsistingofchannels0through3.Channel3is

returnedinbit3,andchannel0isreturnedinbit0.Bits4through7returnazero.

Page 535: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheNeverArbitrateoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 536: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.

Method DescriptionWaitonAnyEdge

PausestheexecutionoftheI/OMethodNodeuntilthenextfallingorrisingedgeofthedigitalsignal.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonAnyEdgemethodwaitsforthenextfallingorrisingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonFallingEdge

PausestheexecutionoftheI/OMethodNodeuntilthenextfallingedgeofthedigitalsignal.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonFallingEdgemethodwaitsforthenextfallingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonHighLevel

PausestheexecutionoftheI/OMethodNodeuntilthedigitalsignalishigh.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonHighLevelmethodwaitsforthenexthighlevel.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonLowLevel

PausestheexecutionoftheI/OMethodNodeuntilthedigitalsignalislow.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonLowLevelmethodwaitsforthenextlowlevel.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

WaitonRisingEdge

PausestheexecutionoftheI/OMethodNodeuntilthenextrisingedgeofthedigitalsignal.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonRisingEdgemethod

Page 537: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

waitsforthenextrisingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.

Page 538: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.

Method DescriptionCheckStatus ReturnsaBooleanvaluethatindicateswhetherthe

moduleisready.NoteDuringthefirst2secondsafteryouresettheFPGAVI,theerrorterminalsonthismethodmaynotcorrectlyreportcertaintypesoferrors.

Page 539: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 540: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.Whenthemoduleiswithinasingle-cycleTimedLoop,itmustbereadytoperformdigitalinputbeforealoopcontainingdigitalinputstarts.PolltheReadyoutputoftheCheckStatusmethodtodeterminewhetherthemoduleisready.Digitalinputoperationsreturninvaliddataifthemoduleisnotready.Whilethemoduleisperformingdigitalinputwithinasingle-cycleTimedLoop,donotperformpropertyreadsorremovethemodulefromthechassis.DoingeitheroftheseactionscausesthemoduletobeunabletoperformdigitalinputandtheReadyoutputoftheCheckStatusmethodtoreturnFALSE.

Page 541: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGATargetClockSupportThisdevicesupportsonlytop-levelFPGAtargetclockratesandsingle-cycleTimedLoopclockratesthataremultiplesof40MHz,suchas40MHz,80Mhz,120MHz,andsoon.

Page 542: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9435OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 543: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

AdvancedConfigurationDialogBox(FPGAInterface)ClicktheAdvancedbuttonontheCSeriesModulePropertiesdialogboxfortheNI9401,NI9472,NI9474,NI9475,NI9481,orNI9485todisplaythisdialogbox.UsethisdialogboxtoconfigurethenumberofoutputsynchronizingregistersforeachDOchannelinasingle-cycleTimedLoop.Thisdialogboxincludesthefollowingcomponents:

Channels—Selectthechannelforwhichyouwanttoconfigurethenumberofoutputsynchronizingregisters.ChannelConfiguration—SpecifiesthenumberofsynchronizingregistersbetweentheDOchannelexecutingontheFPGAtargetandtheFPGAtargethardwareinterface.TheFPGAtargethardwareinterfacemightbeaphysicalI/OconnectoronthedeviceoraconnectiontoasectionoftheFPGAthatcontainscircuitrydesignedbyNationalInstruments.Eachsynchronizingregisterexecutesinoneclockcycle.

CautionSelect0onlyifyoualsousetheHDLInterfaceNodeandtheHDLcodecontainsitsownsynchronizationregisters.0—SpecifiesthattheFPGAVIusesnosynchronizingregisters.DonotselectthisoptionformostFPGAModuleapplications.

NoteIfyouselect0fordigitaloutputresourcesinasingle-cycleTimedLoop,youcreateacombinatorialcircuitbetweenthetworesources.Thecombinatorialcircuitmightcauseglitchesontheoutputsignal.

1—SpecifiesthattheFPGAVIusesonesynchronizingregisterbetweentheDOchannelandtheFPGAtargethardwareinterface.

Page 544: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9472(FPGAInterface)CompactRIO8-Channel,24V,SourcingDigitalOutputModule

Page 545: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforwriting,withthisdevice.

Page 546: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionDOx Digitaloutputchannelx,wherexisthenumberofthechannel.

TheNI9472hasDOchannels0to7.DO7:0 Digitalportconsistingofchannels0through7.Channel7is

returnedintheMSB,andchannel0isreturnedintheLSB.

Page 547: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationYoucanconfigurethearbitrationsettingsforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.

Page 548: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.ThisdevicedoesnotsupportanyI/Omethods.

Method DescriptionCheckStatus ReturnsaBooleanvaluethatindicateswhetherthe

moduleisready.NoteDuringthefirst2secondsafteryouresettheFPGAVI,theerrorterminalsonthismethodmaynotcorrectlyreportcertaintypesoferrors.

Page 549: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 550: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedConfigurationdialogbox.Whenthemoduleiswithinasingle-cycleTimedLoop,itmustbereadytoperformdigitaloutputbeforealoopcontainingdigitaloutputstarts.PolltheReadyoutputoftheCheckStatusmethodtodeterminewhetherthemoduleisready.Themodulemightignoreordelaydigitaloutputoperationsifitisnotready.Whilethemoduleisperformingdigitaloutputwithinasingle-cycleTimedLoop,donotperformpropertyreadsorremovethemodulefromthechassis.DoingeitheroftheseactionscausesthemoduletobeunabletoperformdigitaloutputandtheReadyoutputoftheCheckStatusmethodtoreturnFALSE.

Page 551: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGATargetClockSupportThisdevicesupportsonlytop-levelFPGAtargetclockratesandsingle-cycleTimedLoopclockratesthataremultiplesof40MHz,suchas40MHz,80Mhz,120MHz,andsoon.

Page 552: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9472/9474OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 553: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CSeriesModulePropertiesDialogBoxfortheNI9472,NI9474,NI9475,NI9481,andNI9485(FPGAInterface)Right-clickanNI9472,NI9474,NI9475,NI9481,orNI9485CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:

Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.Advanced—LaunchestheAdvancedConfigurationdialogbox.

Page 554: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9474(FPGAInterface)CompactRIO8-Channel,24V,High-Speed,SourcingDigitalOutputModule

Page 555: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforwriting,withthisdevice.

Page 556: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionDOx Digitaloutputchannelx,wherexisthenumberofthechannel.

TheNI9474hasDOchannels0to7.DO7:0 Digitalportconsistingofchannels0through7.Channel7is

returnedintheMSB,andchannel0isreturnedintheLSB.

Page 557: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationYoucanconfigurethearbitrationsettingsforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.

Page 558: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.ThisdevicedoesnotsupportanyI/Omethods.

Method DescriptionCheckStatus ReturnsaBooleanvaluethatindicateswhetherthe

moduleisready.NoteDuringthefirst2secondsafteryouresettheFPGAVI,theerrorterminalsonthismethodmaynotcorrectlyreportcertaintypesoferrors.

Page 559: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 560: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedConfigurationdialogbox.Whenthemoduleiswithinasingle-cycleTimedLoop,itmustbereadytoperformdigitaloutputbeforealoopcontainingdigitaloutputstarts.PolltheReadyoutputoftheCheckStatusmethodtodeterminewhetherthemoduleisready.Themodulemightignoreordelaydigitaloutputoperationsifitisnotready.Whilethemoduleisperformingdigitaloutputwithinasingle-cycleTimedLoop,donotperformpropertyreadsorremovethemodulefromthechassis.DoingeitheroftheseactionscausesthemoduletobeunabletoperformdigitaloutputandtheReadyoutputoftheCheckStatusmethodtoreturnFALSE.

Page 561: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGATargetClockSupportThisdevicesupportsonlytop-levelFPGAtargetclockratesandsingle-cycleTimedLoopclockratesthataremultiplesof40MHz,suchas40MHz,80Mhz,120MHz,andsoon.

Page 562: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9472/9474OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 563: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9475(FPGAInterface)CompactRIO8-Channel,60V,High-Speed,SourcingDigitalOutputModule

Page 564: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforwriting,withthisdevice.

Page 565: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionDOx Digitaloutputchannelx,wherexisthenumberofthechannel.

TheNI9475hasDOchannels0to7.DO7:0 Digitalportconsistingofchannels0through7.Channel7is

returnedintheMSB,andchannel0isreturnedintheLSB.

Page 566: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationYoucanconfigurethearbitrationsettingsforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.

Page 567: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.ThisdevicedoesnotsupportanyI/Omethods.

Method DescriptionCheckStatus ReturnsaBooleanvaluethatindicateswhetherthe

moduleisready.NoteDuringthefirst2secondsafteryouresettheFPGAVI,theerrorterminalsonthismethodmaynotcorrectlyreportcertaintypesoferrors.

Page 568: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 569: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedConfigurationdialogbox.Whenthemoduleiswithinasingle-cycleTimedLoop,itmustbereadytoperformdigitaloutputbeforealoopcontainingdigitaloutputstarts.PolltheReadyoutputoftheCheckStatusmethodtodeterminewhetherthemoduleisready.Themodulemightignoreordelaydigitaloutputoperationsifitisnotready.Whilethemoduleisperformingdigitaloutputwithinasingle-cycleTimedLoop,donotperformpropertyreadsorremovethemodulefromthechassis.DoingeitheroftheseactionscausesthemoduletobeunabletoperformdigitaloutputandtheReadyoutputoftheCheckStatusmethodtoreturnFALSE.

Page 570: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGATargetClockSupportThisdevicesupportsonlytop-levelFPGAtargetclockratesandsingle-cycleTimedLoopclockratesthataremultiplesof40MHz,suchas40MHz,80Mhz,120MHz,andsoon.

Page 571: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9475OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 572: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9476(FPGAInterface)CompactRIO32-Channel,24V,High-Speed,SourcingDigitalOutputModule

Page 573: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforwriting,withthisdevice.

Page 574: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionDOx Digitaloutputchannelx,wherexisthenumberofthechannel.

TheNI9476hasDOchannels0to31.DO7:0 Digitalportconsistingofchannels0through7.Channel7is

returnedintheMSB,andchannel0isreturnedintheLSB.DO15:8 Digitalportconsistingofchannels8through15.Channel15is

returnedintheMSB,andchannel8isreturnedintheLSB.DO23:16 Digitalportconsistingofchannels16through23.Channel23

isreturnedintheMSB,andchannel16isreturnedintheLSB.DO31:24 Digitalportconsistingofchannels24through31.Channel31

isreturnedintheMSB,andchannel24isreturnedintheLSB.DO31:0 Digitalportconsistingofchannels0through31.Channel31is

returnedintheMSB,andchannel0isreturnedintheLSB.

Page 575: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyandNeverArbitrateoptionsforarbitration.ThedefaultarbitrationsettingisArbitrateifMultipleRequestorsOnly.IfyouaresurethatthedesignoftheFPGAVIwillneverallowmorethanonedigitalfunctiontoexecuteatthesametime,evenondifferentchannels,youcanplaceacheckmarkintheDisableArbitrationcheckboxontheCSeriesModulePropertiesdialogboxtodisablearbitrationandreducetheamountofFPGAlogicusedbyVIs.IfmorethanonedigitalfunctioncouldexecutesimultaneouslyintheFPGAVI,leavetheboxunchecked.

Page 576: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.ThisdevicedoesnotsupportanyI/Omethods.

Method Input/Output Description

CheckOutputStatus

ForceStatusRead

WhenthevalueofthisinputisFALSE,themethodreturnsthecachedstatusinformationfromthelaststatusread.WhenthevalueisTRUE,themethodgetsthecurrentstatusinformationfromthemodule.Forcingastatusreadcanintroducejitterintoadigitaloutputloop.

AnyOvercurrent ReturnsaBooleanvalue.AvalueofTRUEindicatesanovercurrentconditiononatleastonechannel.

ChannelOvercurrent

ReturnsanarrayofBooleanvalues.AvalueofTRUEinanyindexindicatesthatthechannelsharinganumberwiththatindexisinanovercurrentcondition.

Page 577: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 578: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.

Page 579: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9476OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 580: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CSeriesModulePropertiesDialogBoxfortheNI9476andNI9477(FPGAInterface)Right-clickanNI9476orNI9477CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:

Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.DisableArbitration—PlaceacheckmarkinthischeckboxifyouwanttochangethearbitrationsettingtoNeverArbitrateandreducetheamountofFPGAlogicusedbyVIs.CheckthisboxonlyifyouaresurethatthedesignoftheFPGAVIwillneverallowmorethanonedigitaloutputfunctiontoexecuteatthesametime,evenondifferentchannels.IfmorethanonedigitaloutputfunctioncouldexecutesimultaneouslyintheFPGAVI,leavetheboxuncheckedtokeepthedefaultArbitrateifMultipleRequestorsOnlyarbitrationsetting.

Page 581: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9477(FPGAInterface)CompactRIO32-Channel,5–60V,SinkingDigitalOutputModule

Page 582: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforwriting,withthisdevice.

Page 583: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionDOx Digitaloutputchannelx,wherexisthenumberofthechannel.

TheNI9477hasDOchannels0to31.DO7:0 Digitalportconsistingofchannels0through7.Channel7is

returnedintheMSB,andchannel0isreturnedintheLSB.DO15:8 Digitalportconsistingofchannels8through15.Channel15is

returnedintheMSB,andchannel8isreturnedintheLSB.DO23:16 Digitalportconsistingofchannels16through23.Channel23

isreturnedintheMSB,andchannel16isreturnedintheLSB.DO31:24 Digitalportconsistingofchannels24through31.Channel31

isreturnedintheMSB,andchannel24isreturnedintheLSB.DO31:0 Digitalportconsistingofchannels0through31.Channel31is

returnedintheMSB,andchannel0isreturnedintheLSB.

Page 584: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyandNeverArbitrateoptionsforarbitration.ThedefaultarbitrationsettingisArbitrateifMultipleRequestorsOnly.IfyouaresurethatthedesignoftheFPGAVIwillneverallowmorethanonedigitalfunctiontoexecuteatthesametime,evenondifferentchannels,youcanplaceacheckmarkintheDisableArbitrationcheckboxontheCSeriesModulePropertiesdialogboxtodisablearbitrationandreducetheamountofFPGAlogicusedbyVIs.IfmorethanonedigitalfunctioncouldexecutesimultaneouslyintheFPGAVI,leavetheboxunchecked.

Page 585: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

MethodsThisdevicedoesnotsupportanymethods.

Page 586: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 587: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.

Page 588: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9477OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 589: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9478(FPGAInterface)CompactRIO16-Channel,0–50VSinkingDigitalOutputModulewithProgrammableCurrentLimits

Page 590: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforwriting,withthisdevice.

Page 591: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionDOx Digitaloutputchannelx,wherexisthenumberofthechannel.

TheNI9478hasDOchannels0to15.DO7:0 Digitalportconsistingofchannels0through7.Channel7is

returnedintheMSB,andchannel0isreturnedintheLSB.DO15:8 Digitalportconsistingofchannels8through15.Channel15is

returnedintheMSB,andchannel8isreturnedintheLSB.DO15:0 Digitalportconsistingofchannels0through15.Channel15is

returnedintheMSB,andchannel0isreturnedintheLSB.

Page 592: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 593: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.ThisdevicedoesnotsupportanyI/Omethods.

Method Input/Output Description

CheckOutputStatus

LimitSelection Specifieswhichcurrentlimitstatusinformationthemodulereads.SelectActiveLimitifyouwanttheChannelOvercurrentoutputtoreturnTRUEforanychannelsthatexceedthecurrentlimitthresholdspecifiedfortheactivecurrentlimitforthatchannel.SelectLimitAtoreturnTRUEforanychannelsthatexceedthecurrentlimitthresholdspecifiedforCurrentLimitA.SelectLimitBtoreturnTRUEforanychannelsthatexceedthecurrentlimitthresholdspecifiedforCurrentLimitB.

ModuleOvertemp ReturnsaBooleanvalue.AvalueofTRUEindicatesthatthemoduleexceededitstemperaturerating.

ChannelOvercurrent

ReturnsanarrayofBooleanvalues.AvalueofTRUEinanyindexindicatesthatthechannelsharinganumberwiththatindexexceededthecurrentlimit,asspecifiedbytheLimitSelectioninput,afterthelaststatusread.AvalueofFALSEindicatesthatthechanneldidnotexceedthecurrentlimitafterthelaststatusread.

Page 594: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.

Property DescriptionActiveCurrentLimit

Setstheactivecurrentlimitforeachchannel.Thevalueinanindexoftheinputarraycontrolstheactivecurrentlimitforthechannelsharinganumberwiththatindex.SelectNoChangeifyoudonotwanttomodifytheactivecurrentlimitforthechannelatruntime.SelectLimitAifyouwanttosettheactivecurrentlimitforthechanneltoCurrentLimitA.SelectLimitBifyouwanttosettheactivecurrentlimitforthechanneltoCurrentLimitB.SelectNoLimitifyouwantthechanneltohavenocurrentlimit.

CurrentLimitA

SetsthecurrentlimitthresholdforCurrentLimitAinbinaryvalues.Youcanusethefollowingequationtocalculatethebinaryvaluefromamperes:BinaryValue=(CurrentValue/5.12A)×256Therangeofvalidcurrentlimitvaluesis0–5.1A,whichcorrespondstobinaryvalues0–255.

CurrentLimitB

SetsthecurrentlimitthresholdforCurrentLimitBinbinaryvalues.Youcanusethefollowingequationtocalculatethebinaryvaluefromamperes:BinaryValue=(CurrentValue/5.12A)×256Therangeofvalidcurrentlimitvaluesis0–5.1A,whichcorrespondstobinaryvalues0–255.

ModuleID ReturnsthemoduleID.OvercurrentRefreshPeriod

Setsthetimeinµsittakesachanneltoautomaticallyrecoverifthechannelexceedsitsactivecurrentlimitthreshold.Values2–255enableovercurrentrefreshandspecifythetimeintensofµs.Forexample,avalueof3setsanovercurrentrefreshperiodof30µs.Avalueof0disablesovercurrentrefreshsothechannelremainsdisabledafterexceedingitsactivecurrentlimituntilyouwritetothechannelusinganFPGAI/ONode.Avalueof1isnotsupportedandsetsanovercurrentrefreshperiodof20µs.

Page 595: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

SerialNumber

Returnstheuniqueserialnumberofthemodule.

VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 596: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.

Page 597: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9478OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 598: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

CSeriesModulePropertiesDialogBoxfortheNI9478(FPGAInterface)Right-clickanNI9478CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:

Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.Channels—Specifiesthechannel(s)forwhichyouwanttoselecttheactivecurrentlimit.SelectedChannel(s)Settings—Specifiestheactivecurrentlimitforeachchannel.

ActiveLimit—Setstheactivecurrentlimitfortheselectedchannel(s).SelectLimitAifyouwanttosettheactivecurrentlimitforthechannel(s)toCurrentLimitA.SelectLimitBifyouwanttosettheactivecurrentlimitforthechannel(s)toCurrentLimitB.SelectNoLimitifyouwantthechannel(s)tohavenocurrentlimit.

ModuleSettings—Specifiesthecurrentlimitthresholdsettingsforthemodule.

CurrentLimitA—SetsthecurrentlimitthresholdforCurrentLimitAinamperes.Validvaluesare0–5.1A.CurrentLimitB—SetsthecurrentlimitthresholdforCurrentLimitBinamperes.Validvaluesare0–5.1A.EnableOvercurrentRefresh—Placeacheckmarkinthischeckboxifyouwanttoenableachanneltoautomaticallyrecoverifthechannelexceedsitsactivecurrentlimitthreshold.Ifovercurrentrefreshisdisabled,thechannelremainsoffafteranovercurrentcondition

Page 599: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

untilyouwritetothechannelusinganFPGAI/ONode.OvercurrentRefreshPeriod—Setsthetimeinµsittakesachanneltoautomaticallyrecoverifthechannelexceedsitsactivecurrentlimitthreshold.Validvaluesare20–2550µs.ThisoptionisavailableonlyifyouselectEnableOvercurrentRefresh.

Page 600: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringCurrentLimitsfortheNI9478(FPGAInterface)YoucanconfiguretheactivecurrentlimitforeachchannelandthecurrentlimitthresholdsatedittimeusingtheCSeriesModulePropertiesdialogbox.YoucanprogrammaticallychangethesesettingsatruntimeusingtheFPGAI/OPropertyNode.TheexecutionofanI/OPropertyNodethatisconfiguredwithaCurrentLimitpropertyoverwritesthevalueyouconfiguredintheCSeriesModulePropertiesdialogbox.

Page 601: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringCurrentLimitsUsingtheCSeriesModulePropertiesDialogBoxCompletethefollowingstepstoconfiguretheactivecurrentlimitforeachchannelandthecurrentlimitthresholdsfortheNI9478usingtheCSeriesModulePropertiesdialogbox.

1. ConfiguretheCompactRIOsystem,andaddanNI9478.2. Right-clicktheNI9478intheProjectExplorerwindowand

selectPropertiesfromtheshortcutmenutodisplaytheCSeriesModulePropertiesdialogbox.

3. Selectthechannel(s)forwhichyouwanttoconfiguretheactivecurrentlimitfromtheChannelstable.Youcanselectmorethanonechannelbyholdingthe<Ctrl>or<Shift>keywhenselectingchannels.

4. Selecttheactivecurrentlimitforthechannel(s)fromtheActiveLimitpull-downmenu.

5. Enteravaluebetween0and5.1intheCurrentLimittextboxthatcorrespondstotheactivecurrentlimitfortheselectedchannel(s).

6. PlaceacheckmarkintheEnableOvercurrentRefreshcheckboxandsetthetimeintheOvercurrentRefreshPeriodtextboxifyouwanttoenableachanneltoautomaticallyrecoverifthechannelexceedsitsactivecurrentlimitthreshold.

7. ClicktheOKbutton.8. SelectFile»SaveAllintheProjectExplorerwindow.

Page 602: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringCurrentLimitsUsingtheFPGAI/OPropertyNodeCompletethefollowingstepstoconfiguretheactivecurrentlimitforeachchannelandthecurrentlimitthresholdsusingtheFPGAI/OPropertyNode.

1. PlacethreeFPGAI/OPropertyNodesontheblockdiagramandconfigurethemfortheNI9478.

2. ClickthePropertysectiononthefirstPropertyNodeandselecttheActiveCurrentLimitpropertyfromtheshortcutmenu.

3. Right-clicktheActiveCurrentLimitinputandselectCreate»Controlfromtheshortcutmenu.

4. OnthefrontpaneloftheVI,selecttheactivecurrentlimitforeachchannelfromtheActiveCurrentLimitarray.

5. ClickthePropertysectiononthesecondPropertyNodeandselecttheCurrentLimitApropertyfromtheshortcutmenu.

6. Right-clicktheCurrentLimitAinputandselectCreate»Controlfromtheshortcutmenu.

7. ClickthePropertysectiononthethirdPropertyNodeandselecttheCurrentLimitBpropertyfromtheshortcutmenu.

8. Right-clicktheCurrentLimitBinputandselectCreate»Controlfromtheshortcutmenu.

9. OnthefrontpaneloftheVI,enterbinaryvaluesintheCurrentLimitcontrolstosetthecurrentlimitthresholds.YoucanusethefollowingequationinthehostVItocalculatethebinaryvaluefromamperes:BinaryValue=(CurrentValue/5.12A)×256

Page 603: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9481(FPGAInterface)CompactRIO4-Channel,FormAElectromechanicalRelayModule

Page 604: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforwriting,withthisdevice.

Page 605: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionCHx Channelx,wherexisthenumberofthechannel.TheNI9481

haschannels0to3.CH3:0 Digitalportconsistingofchannels0through3.Channel3is

returnedinbit3,andchannel0isreturnedinbit0.

Page 606: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationYoucanconfigurethearbitrationsettingsforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.

Page 607: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.ThisdevicedoesnotsupportanyI/Omethods.

Method DescriptionCheckStatus ReturnsaBooleanvaluethatindicateswhetherthe

moduleisready.NoteDuringthefirst2secondsafteryouresettheFPGAVI,theerrorterminalsonthismethodmaynotcorrectlyreportcertaintypesoferrors.

Page 608: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 609: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedConfigurationdialogbox.Whenthemoduleiswithinasingle-cycleTimedLoop,itmustbereadytoperformdigitaloutputbeforealoopcontainingdigitaloutputstarts.PolltheReadyoutputoftheCheckStatusmethodtodeterminewhetherthemoduleisready.Themodulemightignoreordelaydigitaloutputoperationsifitisnotready.Whilethemoduleisperformingdigitaloutputwithinasingle-cycleTimedLoop,donotperformpropertyreadsorremovethemodulefromthechassis.DoingeitheroftheseactionscausesthemoduletobeunabletoperformdigitaloutputandtheReadyoutputoftheCheckStatusmethodtoreturnFALSE.

Page 610: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGATargetClockSupportThisdevicesupportsonlytop-levelFPGAtargetclockratesandsingle-cycleTimedLoopclockratesthataremultiplesof40MHz,suchas40MHz,80Mhz,120MHz,andsoon.

Page 611: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9481OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 612: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9485(FPGAInterface)CompactRIO8-Channel,Solid-StateRelay(SSR)Module

Page 613: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforwriting,withthisdevice.

Page 614: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionCHx Channelx,wherexisthenumberofthechannel.TheNI9485

haschannels0to7.CH7:0 Digitalportconsistingofchannels0through7.Channel7is

returnedintheMSB,andchannel0isreturnedintheLSB.

Page 615: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationYoucanconfigurethearbitrationsettingsforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.

Page 616: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.ThisdevicedoesnotsupportanyI/Omethods.

Method DescriptionCheckStatus ReturnsaBooleanvaluethatindicateswhetherthe

moduleisready.NoteDuringthefirst2secondsafteryouresettheFPGAVI,theerrorterminalsonthismethodmaynotcorrectlyreportcertaintypesoferrors.

Page 617: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 618: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedConfigurationdialogbox.Whenthemoduleiswithinasingle-cycleTimedLoop,itmustbereadytoperformdigitaloutputbeforealoopcontainingdigitaloutputstarts.PolltheReadyoutputoftheCheckStatusmethodtodeterminewhetherthemoduleisready.Themodulemightignoreordelaydigitaloutputoperationsifitisnotready.Whilethemoduleisperformingdigitaloutputwithinasingle-cycleTimedLoop,donotperformpropertyreadsorremovethemodulefromthechassis.DoingeitheroftheseactionscausesthemoduletobeunabletoperformdigitaloutputandtheReadyoutputoftheCheckStatusmethodtoreturnFALSE.

Page 619: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGATargetClockSupportThisdevicesupportsonlytop-levelFPGAtargetclockratesandsingle-cycleTimedLoopclockratesthataremultiplesof40MHz,suchas40MHz,80Mhz,120MHz,andsoon.

Page 620: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9485OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 621: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

MemoryModules(FPGAInterface)UsethisbookasareferenceforinformationaboutwhichmethodsandpropertieseachCSeriesmemorymodulesupports.

Toviewrelatedtopics,clicktheLocatebutton,shownatleft,inthetoolbaratthetopofthiswindow.TheLabVIEWHelphighlightsthistopicintheContentstabsoyoucannavigatetherelatedtopics.

Page 622: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NI9802(FPGAInterface)CompactRIO2SDCardMemoryModule

Page 623: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeThisdevicedoesnotsupporttheFPGAI/ONode.YoucanusetheFPGAI/OMethodNodeandFPGAI/OPropertyNodetoaccessmethodsandpropertiesforthedevice.

NoteIfyouaddtheNI9802totheproject,theReal-TimesupportfortheMountSDCardInterfacemethodcompilesontotheFPGAwhenyoucompiletheFPGAVI,whichcantakeupspaceontheFPGA.IfyouarenotactivelyusingtheNI9802,youmightwanttoremovethemoduleitemfromtheproject.

Page 624: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.

Page 625: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

SDCardMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.YoualsocanusetheMountSDCardInterfacemethodtomountthefilesystemofanSDCardintoadrive.Thisdevicedoesnotsupportanymodulemethods.

Method DescriptionCloseFile ClosestheopenfilespecifiedbyFileRefIn.Thismethod

executesregardlessofwhetheranerroroccurredinaprecedingoperation,whichensuresthatfilesareclosedcorrectly.Ifthefilereferenceiszero,themethodreturnsanerroranddoesnotexecute.

DeleteFile DeletesthefilespecifiedbyFileID.ThefileIDcanbeanyunsignedintegervaluefrom0to255andappearsasan8-bithexadecimalvalueinthefilename.Ifthespecifiedfileisopen,themethodreturnsanerroranddoesnotexecute.

GetFileSize ReturnsthefilesizeinbytesofthefilespecifiedbyFileID.ThefileIDcanbeanyunsignedintegervaluefrom0to255andappearsasan8-bithexadecimalvalueinthefilename.Ifthespecifiedfileisopen,themethodreturnsanerroranddoesnotexecute.

RefertotheNI9802MethodsVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9802\NI9802Methodsdirectoryforanexampleofusingthismethod.

OpenexampleGetSpace Returnstheamountofunallocatedstorageinbytesonthe

SDCardfilesystem.Ifafileisopenonthespecifiedcard,thevaluereturnedmaybelessthantheactualfreespace.

RefertotheNI9802MethodsVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9802\NI9802Methodsdirectoryforanexampleofusingthismethod.

Page 626: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

OpenexampleOpenFile OpensorcreatesafilespecifiedbyFileID.

NoteOnlyonefilecanbeopenonagivenSDCardatonetime.

ThefileIDcanbeanyunsignedintegervaluefrom0to255andappearsasan8-bithexadecimalvalueinthefilename.ThenameofthefileisintheformatCRIO-X##.BIN,where##isthehexadecimalrepresentationofthevalueyouentered.ThefilenamemustbeuppercaseandmustcomplywiththeDOS8.3namingconvention.TheModeinputdeterminestheaccessmodeofthefile:Readopensanexistingfileforreadingonlyandreturnsanerrorifthefiledoesnotexist;WriteNewcreatesanewfileforwritingandreturnsanerrorifthefilealreadyexists;WriteOvereithercreatesanewfileforwritingoropenstheexistingfileandoverwritesexistingdatawithnewdata;andWriteAppendeithercreatesanewfileforwritingoropenstheexistingfileandappendsnewdatatotheendofthefile.FileRefOutreturnsareferencetotheopenfile.

NoteYoumustusetheCloseFilemethodtoclosethefileyouopen.Notclosingafilemayresultinincompletedataorerrorsthenexttimeyouusethefile.

ReadU32 Readsbinarydatainbig-endianformatfromtheopenfilespecifiedbyFileRefIn.Ifthefilereferenceiszero,themethodreturnsanerroranddoesnotexecute.FileRefOutreturnsareferencetotheopenfile.EOFreturnsTRUEwhenthereisnomoredatatoread.Ifthefiledoesnotcontainthenumberofbytesrequested,themethodreturnsanerror.

ReadU16 Readsbinarydatainbig-endianformatfromtheopenfilespecifiedbyFileRefIn.Ifthefilereferenceiszero,themethodreturnsanerroranddoesnotexecute.FileRefOutreturnsareferencetotheopenfile.EOFreturnsTRUEwhenthereisnomoredatatoread.Ifthefiledoesnotcontainthenumberofbytesrequested,themethodreturnsanerror.

Page 627: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ReadU8 Readsbinarydatainbig-endianformatfromtheopenfilespecifiedbyFileRefIn.Ifthefilereferenceiszero,themethodreturnsanerroranddoesnotexecute.FileRefOutreturnsareferencetotheopenfile.EOFreturnsTRUEwhenthereisnomoredatatoread.Ifthefiledoesnotcontainthenumberofbytesrequested,themethodreturnsanerror.

RefertotheNI9802ReadU8VariableVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9802\NI9802ReadU8Filedirectoryforanexampleofusingthismethod.

OpenexampleWrite Writesbinarydatainbig-endianformattotheopenfile

specifiedbyFileRefIn.ThedatatypeyouwiretotheFileRefIninputdetermineswhetherthepolymorphicmethodwritesU32,U16,orU8values.Ifthefilereferenceiszero,themethodreturnsanerroranddoesnotexecute.FileRefOutreturnsareferencetotheopenfile.

RefertotheNI9802WriteVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9802\NI9802WriteFiledirectoryforanexampleofusingthismethod.

Openexample

Page 628: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

SDCardPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.RefertotheNI9802MethodsVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9802\NI9802Methodsdirectoryforanexampleofusingtheseproperties.Openexample

Property DescriptionCardPresent ReturnsaBooleanvalue.AvalueofTRUEindicatesthat

anSDCardisinsertedintheslot.DoorOpen ReturnsaBooleanvalue.AvalueofTRUEindicatesthat

theSDCardslotdoorisopenanditisnotsafetoreadfromorwritetotheSDCardintheslot.

Page 629: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.

Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.

Page 630: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

RemovingSDCardsDonotopenanSDCardslotdoororremoveanSDCardwhiletheyellowLEDforthatcardislitorflashing.

CautionOpeninganSDCardslotdoororremovinganSDCardwhiletheyellowLEDforthatcardislitorflashingmightresultinincompletedata.

IfyouopenanSDCardslotdoorwhiletheyellowLEDforthatcardislitorflashing,thesoftwareattemptstoprotecttheSDCardfilesystembyclosingallopenfiles,whichcanresultinlostdata.RefertotheNI9802OperatingInstructionsandSpecificationsfordescriptionsofeachoftheLEDsontheNI9802andwhenitissafetoremoveSDCardsfromtheNI9802.

Page 631: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.

Page 632: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGATargetClockSupportThisdevicesupportsonlythe40MHzFPGAtargetclocksetting.

Page 633: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

HardwareDocumentationRefertotheNI9802OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.

Page 634: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-BoardRIODevices(FPGAInterface)AnNISingle-BoardRIO(sbRIO)deviceconsistsofareal-timeprocessorconnectedtoareconfigurableFPGA,with110digitalI/O(DIO)linesandthreeexpansionslotsforCSeriesmodules.TheNIsbRIO-961x,NIsbRIO-963x,andNIsbRIO-964xdeviceshaveadditionalI/OlinesprovidedbyonboardCSeriesmodules.Theuser-reconfigurableFPGAcontrolsthedigitalandanalogI/OlinesonthesbRIOdevice.YoucanconfigurethesbRIOdeviceandusetheLabVIEWFPGAModuleandNI-RIOtocreateanddownloadacustomVItotheFPGAtodefinethetimingandfunctionalityofthesbRIOdevice.IfyouhaveonlyLabVIEWandNI-RIObutnottheFPGAModule,youcannotcreatenewFPGAVIs,butyoucancreateVIsthatrunonWindowsoraLabVIEWReal-Time(RT)targettocontrolexistingFPGAVIs.UsethisbookasareferenceforinformationaboutwhichFPGAI/Ofunctions,I/Oresources,arbitrationoptions,methods,andpropertieseachsbRIOdevicesupports.

Toviewrelatedtopics,clicktheLocatebutton,shownatleft,inthetoolbaratthetopofthiswindow.TheLabVIEWHelphighlightsthistopicintheContentstabsoyoucannavigatetherelatedtopics.

Page 635: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NIsbRIO-9601(FPGAInterface)Single-BoardReconfigurableI/O(DIO)1103.3VDIOchannels,1milliongateFPGA

Page 636: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreadingandwriting,withthisdevice.

Page 637: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionPortx/DIOy Digitalinput/outputchannelyonportx,whereyisthe

channelnumberandxistheportnumber.TheNIsbRIO-9601hasports0to9.UsetheFPGAI/ONodeortheSetDataOutputorSetDataEnablemethodtoaccessthischannel.

Portx/DIOCTL Digitalcontrolchannelonportx.DonotuseDIOCTLforhigh-speeddigitalcommunication.

Portx/DIO9:0 Digitalinput/outputchannels0to9onportx.UsetheFPGAI/ONodeortheSetDataOutputorSetDataEnablemethodtoaccessallchannelsontheport.

Page 638: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationYoucanconfigurethearbitrationsettingsfortheDIOchannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.

Page 639: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.Thisdevicedoesnotsupportanymodulemethods.

Method DescriptionSetOutputData

RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.

SetOutputEnable

RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.

Page 640: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

PropertiesThisdevicedoesnotsupportanyproperties.

Page 641: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.

Page 642: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NIsbRIO-9602(FPGAInterface)Single-BoardReconfigurableI/O(DIO)1103.3VDIOchannels,2milliongateFPGA

Page 643: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreadingandwriting,withthisdevice.

Page 644: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionPortx/DIOy Digitalinput/outputchannelyonportx,whereyisthe

channelnumberandxistheportnumber.TheNIsbRIO-9602hasports0to9.UsetheFPGAI/ONodeortheSetDataOutputorSetDataEnablemethodtoaccessthischannel.

Portx/DIOCTL Digitalcontrolchannelonportx.DonotuseDIOCTLforhigh-speeddigitalcommunication.

Portx/DIO9:0 Digitalinput/outputchannels0to9onportx.UsetheFPGAI/ONodeortheSetDataOutputorSetDataEnablemethodtoaccessallchannelsontheport.

Page 645: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationYoucanconfigurethearbitrationsettingsfortheDIOchannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.

Page 646: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.Thisdevicedoesnotsupportanymodulemethods.

Method DescriptionSetOutputData

RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.

SetOutputEnable

RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.

Page 647: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

PropertiesThisdevicedoesnotsupportanyproperties.

Page 648: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.

Page 649: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NIsbRIO-9611(FPGAInterface)Single-BoardReconfigurableI/O(AI,DIO)32AIchannels,1103.3VDIOchannels,1milliongateFPGA

Page 650: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreadingandwriting,withthisdevice.

Page 651: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionPortx/DIOy Digitalinput/outputchannelyonportx,whereyisthe

channelnumberandxistheportnumber.TheNIsbRIO-9611hasports0to9.UsetheFPGAI/ONodeortheSetDataOutputorSetDataEnablemethodtoaccessthischannel.

Portx/DIOCTL Digitalcontrolchannelonportx.DonotuseDIOCTLforhigh-speeddigitalcommunication.

Portx/DIO9:0 Digitalinput/outputchannels0to9onportx.UsetheFPGAI/ONodeortheSetDataOutputorSetDataEnablemethodtoaccessallchannelsontheport.

Page 652: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationYoucanconfigurethearbitrationsettingsfortheDIOchannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.ForinformationaboutarbitrationonchannelsofanonboardorinstalledCSeriesmodule,refertothehelptopicforthemodule.YoucanfindthehelptopicforthemoduleyouareusingbynavigatingontheContentstabtoFPGAModule»CompactRIOReferenceandProcedures»ModuleType»NI9xxx.

Page 653: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

OnboardCSeriesModuleI/OThisdevicecontainsanonboardNI9205module.

Page 654: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.Thisdevicedoesnotsupportanymodulemethods.

Method DescriptionSetOutputData

RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.

SetOutputEnable

RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.

Page 655: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

PropertiesThisdevicedoesnotsupportanyproperties.

Page 656: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoopfordigitalI/Oonly.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.

Page 657: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NIsbRIO-9612(FPGAInterface)Single-BoardReconfigurableI/O(AI,DIO)32AIchannels,1103.3VDIOchannels,2milliongateFPGA

Page 658: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreadingandwriting,withthisdevice.

Page 659: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionPortx/DIOy Digitalinput/outputchannelyonportx,whereyisthe

channelnumberandxistheportnumber.TheNIsbRIO-9612hasports0to9.UsetheFPGAI/ONodeortheSetDataOutputorSetDataEnablemethodtoaccessthischannel.

Portx/DIOCTL Digitalcontrolchannelonportx.DonotuseDIOCTLforhigh-speeddigitalcommunication.

Portx/DIO9:0 Digitalinput/outputchannels0to9onportx.UsetheFPGAI/ONodeortheSetDataOutputorSetDataEnablemethodtoaccessallchannelsontheport.

Page 660: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationYoucanconfigurethearbitrationsettingsfortheDIOchannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.ForinformationaboutarbitrationonchannelsofanonboardorinstalledCSeriesmodule,refertothehelptopicforthemodule.YoucanfindthehelptopicforthemoduleyouareusingbynavigatingontheContentstabtoFPGAModule»CompactRIOReferenceandProcedures»ModuleType»NI9xxx.

Page 661: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

OnboardCSeriesModuleI/OThisdevicecontainsanonboardNI9205module.

Page 662: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.Thisdevicedoesnotsupportanymodulemethods.

Method DescriptionSetOutputData

RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.

SetOutputEnable

RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.

Page 663: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

PropertiesThisdevicedoesnotsupportanyproperties.

Page 664: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoopfordigitalI/Oonly.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.

Page 665: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NIsbRIO-9631(FPGAInterface)Single-BoardReconfigurableI/O(AI,AO,DIO)32AIchannels,4AOchannels,1103.3VDIOchannels,1milliongateFPGA

Page 666: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreadingandwriting,withthisdevice.

Page 667: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionPortx/DIOy Digitalinput/outputchannelyonportx,whereyisthe

channelnumberandxistheportnumber.TheNIsbRIO-9631hasports0to9.UsetheFPGAI/ONodeortheSetDataOutputorSetDataEnablemethodtoaccessthischannel.

Portx/DIOCTL Digitalcontrolchannelonportx.DonotuseDIOCTLforhigh-speeddigitalcommunication.

Portx/DIO9:0 Digitalinput/outputchannels0to9onportx.UsetheFPGAI/ONodeortheSetDataOutputorSetDataEnablemethodtoaccessallchannelsontheport.

Page 668: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationYoucanconfigurethearbitrationsettingsfortheDIOchannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.ForinformationaboutarbitrationonchannelsofanonboardorinstalledCSeriesmodule,refertothehelptopicforthemodule.YoucanfindthehelptopicforthemoduleyouareusingbynavigatingontheContentstabtoFPGAModule»CompactRIOReferenceandProcedures»ModuleType»NI9xxx.

Page 669: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

OnboardCSeriesModuleI/OThisdevicecontainsanonboardNI9205moduleandanonboardNI9263module.

Page 670: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.Thisdevicedoesnotsupportanymodulemethods.

Method DescriptionSetOutputData

RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.

SetOutputEnable

RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.

Page 671: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

PropertiesThisdevicedoesnotsupportanyproperties.

Page 672: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoopfordigitalI/Oonly.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.

Page 673: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NIsbRIO-9632(FPGAInterface)Single-BoardReconfigurableI/O(AI,AO,DIO)32AIchannels,4AOchannels,1103.3VDIOchannels,2milliongateFPGA

Page 674: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreadingandwriting,withthisdevice.

Page 675: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionPortx/DIOy Digitalinput/outputchannelyonportx,whereyisthe

channelnumberandxistheportnumber.TheNIsbRIO-9632hasports0to9.UsetheFPGAI/ONodeortheSetDataOutputorSetDataEnablemethodtoaccessthischannel.

Portx/DIOCTL Digitalcontrolchannelonportx.DonotuseDIOCTLforhigh-speeddigitalcommunication.

Portx/DIO9:0 Digitalinput/outputchannels0to9onportx.UsetheFPGAI/ONodeortheSetDataOutputorSetDataEnablemethodtoaccessallchannelsontheport.

Page 676: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationYoucanconfigurethearbitrationsettingsfortheDIOchannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.ForinformationaboutarbitrationonchannelsofanonboardorinstalledCSeriesmodule,refertothehelptopicforthemodule.YoucanfindthehelptopicforthemoduleyouareusingbynavigatingontheContentstabtoFPGAModule»CompactRIOReferenceandProcedures»ModuleType»NI9xxx.

Page 677: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

OnboardCSeriesModuleI/OThisdevicecontainsanonboardNI9205moduleandanonboardNI9263module.

Page 678: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.Thisdevicedoesnotsupportanymodulemethods.

Method DescriptionSetOutputData

RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.

SetOutputEnable

RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.

Page 679: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

PropertiesThisdevicedoesnotsupportanyproperties.

Page 680: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoopfordigitalI/Oonly.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.

Page 681: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NIsbRIO-9641(FPGAInterface)Single-BoardReconfigurableI/O(AI,AO,DI,DO,DIO)32AIchannels,4AOchannels,1103.3VDIOchannels,3224VDIchannels,3224VDOchannels,1milliongateFPGA

Page 682: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreadingandwriting,withthisdevice.

Page 683: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionPortx/DIOy Digitalinput/outputchannelyonportx,whereyisthe

channelnumberandxistheportnumber.TheNIsbRIO-9641hasports0to9.UsetheFPGAI/ONodeortheSetDataOutputorSetDataEnablemethodtoaccessthischannel.

Portx/DIOCTL Digitalcontrolchannelonportx.DonotuseDIOCTLforhigh-speeddigitalcommunication.

Portx/DIO9:0 Digitalinput/outputchannels0to9onportx.UsetheFPGAI/ONodeortheSetDataOutputorSetDataEnablemethodtoaccessallchannelsontheport.

Page 684: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationYoucanconfigurethearbitrationsettingsfortheDIOchannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.ForinformationaboutarbitrationonchannelsofanonboardorinstalledCSeriesmodule,refertothehelptopicforthemodule.YoucanfindthehelptopicforthemoduleyouareusingbynavigatingontheContentstabtoFPGAModule»CompactRIOReferenceandProcedures»ModuleType»NI9xxx.

Page 685: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

OnboardCSeriesModuleI/OThisdevicecontainsonboardNI9205,NI9263,NI9425,andNI9476modules.

Page 686: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.Thisdevicedoesnotsupportanymodulemethods.

Method DescriptionSetOutputData

RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.

SetOutputEnable

RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.

Page 687: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

PropertiesThisdevicedoesnotsupportanyproperties.

Page 688: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoopfordigitalI/Oonly.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.

Page 689: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

NIsbRIO-9642(FPGAInterface)Single-BoardReconfigurableI/O(AI,AO,DI,DO,DIO)32AIchannels,4AOchannels,1103.3VDIOchannels,3224VDIchannels,3224VDOchannels,2milliongateFPGA

Page 690: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreadingandwriting,withthisdevice.

Page 691: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.

Terminal DescriptionPortx/DIOy Digitalinput/outputchannelyonportx,whereyisthe

channelnumberandxistheportnumber.TheNIsbRIO-9642hasports0to9.UsetheFPGAI/ONodeortheSetDataOutputorSetDataEnablemethodtoaccessthischannel.

Portx/DIOCTL Digitalcontrolchannelonportx.DonotuseDIOCTLforhigh-speeddigitalcommunication.

Portx/DIO9:0 Digitalinput/outputchannels0to9onportx.UsetheFPGAI/ONodeortheSetDataOutputorSetDataEnablemethodtoaccessallchannelsontheport.

Page 692: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ArbitrationYoucanconfigurethearbitrationsettingsfortheDIOchannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.ForinformationaboutarbitrationonchannelsofanonboardorinstalledCSeriesmodule,refertothehelptopicforthemodule.YoucanfindthehelptopicforthemoduleyouareusingbynavigatingontheContentstabtoFPGAModule»CompactRIOReferenceandProcedures»ModuleType»NI9xxx.

Page 693: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

OnboardCSeriesModuleI/OThisdevicecontainsonboardNI9205,NI9263,NI9425,andNI9476modules.

Page 694: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.Thisdevicedoesnotsupportanymodulemethods.

Method DescriptionSetOutputData

RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.

SetOutputEnable

RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.

Page 695: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

PropertiesThisdevicedoesnotsupportanyproperties.

Page 696: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoopfordigitalI/Oonly.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.

Page 697: CompactRIO (FPGA Interface)Access the NI-RIO Readme on the NI-RIO installation CD. Software Support for CompactRIO, CompactDAQ, and R Series Devices—Use this NI Developer Zone document

ConfiguringaProjectforaCompactRIOorSingle-BoardRIOSystem(FPGAInterface)YoucanconfigureaprojectforaCompactRIOReconfigurableorIntegratedsystem,CompactRIORSeriesExpansionsystem,orSingle-BoardRIOReconfigurableEmbeddedsystem.