CompactRIO™ReferenceandProcedures(FPGAInterface)June2008,370984N-01UsethisbookasareferenceforinformationaboutwhichFPGAI/Ofunctions,I/Oresources,arbitrationoptions,methods,andpropertieseachCSeriesmodulesupports.ThisbookalsoincludesinstructionsforusingLabVIEWwithCompactRIOdevices.
Toviewrelatedtopics,clicktheLocatebutton,shownatleft,inthetoolbaratthetopofthiswindow.TheLabVIEWHelphighlightsthistopicintheContentstabsoyoucannavigatetherelatedtopics.
TocommentonNationalInstrumentsdocumentation,refertotheNationalInstrumentsWebsite.©2004–2008NationalInstrumentsCorporation.Allrightsreserved.
CompactRIORelatedDocumentation(FPGAInterface)CompactRIOincludesthefollowingdocumentation.
HelpResourcesLabVIEWHelp—UsethishelpfiletoaccessreferenceinformationaboutCSeriesmodulesandinstructionsforusingLabVIEWwithCompactRIOdevices.UsingtheContentstab,navigatetoFPGAModule»CompactRIOReferenceandProcedures.YoucanfindhelptopicsforthemoduleyouareusingbynavigatingontheContentstabtoFPGAModule»CompactRIOReferenceandProcedures»ModuleType»NI9xxx.Measurement&AutomationExplorer(MAX)HelpforCompactRIO—UsethishelpfiletoaccessinstructionsforconfiguringtheCompactRIOcontrollerandenablingthecRIO-910xReconfigurableEmbeddedchassisforusewithLabVIEW.AfteryoulaunchMAX,selectHelp»MAXHelpandnavigatetoMeasurement&AutomationExplorerHelp»InstalledProducts»MAXHelpforCompactRIOontheContentstab.
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
modulespecificationsandhowtousethemodule.Forexample,usetheNI9403OperatingInstructionsandSpecificationstolearnabouttheNI9403.
ReadmeDocumentsNI-RIOReadme—Usethisfiletolearnimportantlast-minuteinformationaboutNI-RIO,includinginstallationinstructionsanddescriptionsofknownissuesforinstallingandusingNI-RIO.AccesstheNI-RIOReadmeontheNI-RIOinstallationCD.SoftwareSupportforCompactRIO,CompactDAQ,andRSeriesDevices—UsethisNIDeveloperZonedocumenttodeterminewhatversionsoftheNI-RIOsoftware,theLabVIEWReal-TimeModule,andtheLabVIEWFPGAModuleyouneedfortheCSeriesmodules,CompactRIOchassis,CompactRIOcontrollers,Single-BoardRIOdevices,andRSeriesdevicesyouareusing.
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.
UsingCompactRIOandSingle-BoardRIO(FPGAInterface)UsethisbookasareferenceforinformationaboutusingLabVIEWwithCompactRIOandSingle-BoardRIO(sbRIO)devices.
NoteCSeriesmodulescantakeupto2secondstoinitializeafteryouresettheFPGAVI.
Toviewrelatedtopics,clicktheLocatebutton,shownatleft,inthetoolbaratthetopofthiswindow.TheLabVIEWHelphighlightsthistopicintheContentstabsoyoucannavigatetherelatedtopics.
CSeriesModuleIDs(FPGAInterface)YoucanusetheModuleIDpropertywiththeFPGAI/OPropertyNodetoreadtheIDsassociatedwiththeCSeriesmodules.
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
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
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
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
CompactRIODiscoveryStatusDialogBox(FPGAInterface)WhenyouaddaCompactRIOcontrollerorchassisoraSingle-BoardRIOdevicetoaLabVIEWproject,LabVIEWfindsallCSeriesmodulesinthenewsystem.ThisdialogboxappearswhenLabVIEWreturnserrorswhilelookingforCSeriesmodulesinstalledinthesystem.Thedialogboxlistsanyerrorsthatoccurduringthediscoveryprocess.TheDescriptionfieldofthedialogboxcontainsadetaileddescriptionofeachtypeoferrorcondition.
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.
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.
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.
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.
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.
65561 Attemptedtoexceedthelimitof512rootdirectoryentries.65562 AReadmethodtriedtoreadbeyondtheendofafile.Thismay
haveoccurredwhenthemethodreadtheendofafileusingaU16orU32datatypewhentheactualnumberofbytesinthefile(asreportedbythedirectory)wasnotanintegermultipleofthenumberofbytesinthereaddatatype.
65563 AproblemwasfoundwiththeformatoftheSDcard.VerifythattheSDcardisformattedwithavalidFAT16filesystem.
65577 Anopenthermocouplewasdetectedonatleastonechannel.Checkthemoduleconnections.
65578 Thecommon-modevoltageisoutsideofacceptablelimitsonatleastonechannel.Checktheterminalsforanyfaultconditionthatcouldbecausinganout-of-rangevoltageonthechannels.
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.
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.
CompactRIOReconfigurableEmbeddedChassis(FPGAInterface)Auser-reconfigurableFPGAcontrolsthedigitalandanalogI/OlinesonthecRIO-910xReconfigurableEmbeddedchassisoftheCompactRIOEmbeddedsystem.TheFPGAchipisembeddedwithintheCompactRIOchassisandisconnectedtotheCSeriesI/Omodulesinastartopology,providingdirectaccesstoeachmoduleforprecisecontrolandflexibilityintiming,triggering,andsynchronization.YoucanconfiguretheCompactRIOsystemandchangethefunctionalityoftheFPGAontheCompactRIOchassisinLabVIEWusingtheLabVIEWFPGAModuleandNI-RIOtocreateanddownloadacustomVItotheFPGA.
ConfiguringaProjectforaCompactRIORSeriesExpansionSystem(FPGAInterface)CompletethefollowingstepstoaddacRIO-9151RSeriesExpansionchassissystemtoaneworexistingproject.
NoteIfyouhavenotyetcreatedaLabVIEWproject,youalsocanusetheFPGAProjectWizardtocreateaprojectfortheCompactRIOsystem.
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.
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.
ConfiguringaProjectforaCompactRIOReconfigurableorIntegratedSystem(FPGAInterface)CompletethefollowingstepstoaddacRIO-910xReconfigurableEmbeddedsystemorcRIO-9072/9074Integratedcontrollerandchassissystemtoaneworexistingproject.
NoteIfyouhavenotyetcreatedaLabVIEWproject,youalsocanusetheFPGAProjectWizardtocreateaprojectfortheCompactRIOsystem.
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.
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
moduleitemandFPGAI/OitemsforthemoduleI/Ototheproject.
10. Repeatsteps7through9toaddadditionalCSeriesmodulestotheproject.
11. Right-clickamoduleitemintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutoconfiguremodule-specificsettingsintheCSeriesModulePropertiesdialogbox.Somemodulesdonothaveanysettingstoconfigureotherthanthemodulenameandchassisslotlocation.ClicktheHelpbuttonontheCSeriesModulePropertiesdialogboxforinformationaboutthemodulesettings.
ConfiguringaProjectforaSingle-BoardRIOReconfigurableSystem(FPGAInterface)CompletethefollowingstepstoaddaSingle-BoardRIO(sbRIO)ReconfigurableEmbeddedsystemtoaneworexistingproject.
NoteIfyouhavenotyetcreatedaLabVIEWproject,youalsocanusetheFPGAProjectWizardtocreateaprojectforthesbRIOsystem.
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.
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
selectPropertiesfromtheshortcutmenutoconfiguremodule-specificsettingsintheCSeriesModulePropertiesdialogbox.Somemodulesdonothaveanysettingstoconfigureotherthanthemodulenameandchassisslotlocation.ClicktheHelpbuttonontheCSeriesModulePropertiesdialogboxforinformationaboutthemodulesettings.
ConvertingtheTemperatureofaCompactRIOChassisoraSingle-BoardRIODevice(FPGAInterface)TheFPGAI/ONodereturnsbinaryvaluesforthechassistemperature.Youcanconvertthesevaluesintomeaningfulengineeringunits.ToensurethattheFPGAVIisasefficientaspossible,convertthevaluesinthehostVI.
UsingaVItoConvertValuesRefertothe910xTemperatureMonitor(FPGA)VIinthelabview\examples\CompactRIO\ChassisSpecific\910xTemperatureMonitor\910xTemperatureMonitor.lvprojforanexampleofconvertingbinaryvalues.Youcanusethe910xTemperatureMonitor(FPGA)VIasasubVIinthehostVItoconvertthevalues.Openexample
UsinganEquationtoConvertValuesYoucanusethefollowingequationinthehostVItoconvertbinaryvaluestotemperature:Temperature=BinaryValue×0.25°Cwhere BinaryValueisthevaluereturnedbytheFPGAI/ONode.
DownloadingtoFlashMemory(FPGAInterface)YoucandownloadaVIorbitfiletotheflashmemoryontheFPGAtargetusingoneofthefollowingmethods:
Right-clicktheVIyouwanttodownloadtoflashmemoryontheFPGAtarget,selectDownloadVItoFlashMemoryfromtheshortcutmenu,andclicktheYesbuttonontheConfirmDownloadingVItoFlashdialogboxthatappears.Right-clicktheFPGAtargettowhichyouwanttodownloadabitfileintheProjectExplorerwindowinLabVIEWandselectRIODeviceSetupfromtheshortcutmenutodisplaytheRIODeviceSetupdialogbox.RefertotheRIODeviceSetupHelp,availablebyclickingtheHelpbuttonontheRIODeviceSetupdialogbox,formoreinformationabouttheRIODeviceSetuputility.SelectStart»AllPrograms»NationalInstruments»NI-RIO»RIODeviceSetuptodisplaytheRIODeviceSetupdialogbox.Whenyoudisplaythedialogboxinthismanner,youmustselecttheFPGAtargettowhichyouwanttodownloadabitfilefromtheDevicepull-downmenu.RefertotheRIODeviceSetupHelp,availablebyclickingtheHelpbuttonontheRIODeviceSetupdialogbox,formoreinformationabouttheRIODeviceSetuputility.
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.
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.
NewCSeriesModuleDialogBox(FPGAInterface)Right-clickthechassisintheProjectExplorerwindowandselectNew»CSeriesModulesfromtheshortcutmenutodisplaytheAddTargetsandDevicesdialogbox.SelectNewtargetordevice,selectCSeriesModule,andclicktheOKbuttontodisplaytheNewCSeriesModuledialogbox.Usethisdialogboxtoselectamodulename,thetypeofmodule,andthechassisslotinwhichthemoduleisinstalled.Thisdialogboxincludesthefollowingcomponents:
Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmoduleyouwanttoaddtothechassisintheProjectExplorerwindow.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.
NewRSeriesExpansionChassisDialogBox(FPGAInterface)Thisdialogboxappearswhenyouright-clickanRSeriesdeviceintheProjectExplorerwindowandselectNew»RSeriesExpansionChassisfromtheshortcutmenu.UsethisdialogboxtoenteranameforthecRIO-9151RSeriesExpansionchassisandselecttheconnectortowhichitisinstalled.
Name—Youcanusethistextboxtoenteranameforthechassis.Location—Youcanusethispull-downmenutoselecttheconnectortowhichthechassisisconnected.DiscoverCSeriesmodules—PlaceacheckmarkinthischeckboxifyouwantLabVIEWtofindallCSeriesmodulesinstalledinthechassis.DonotcheckthischeckboxifyoudonothaveanexpansionchassisinstalledtotheconnectorselectedintheLocationpull-downmenu.
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
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.
−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.
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.
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.
RSeriesExpansionChassisPropertiesDialogBox(FPGAInterface)Thisdialogboxappearswhenyouright-clickancRIO-9151RSeriesExpansionchassisintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenu.UsethisdialogboxtoenteranamefortheRSeriesExpansionchassisandselecttheconnectortowhichitisinstalled.
Name—Youcanusethistextboxtoenteranewnameforthechassis.Location—Youcanusethispull-downmenutoselecttheconnectortowhichthechassisisconnected.
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.
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.
SimultaneouslyReadingFromorWritingtoMultipleCompactRIOChannels(FPGAInterface)YoucansimultaneouslyreadfromorwritetomultiplechannelsonasinglesimultaneousmodulesuchastheNI9215,NI9225,NI9229,NI9239,NI9263,NI9264,andNI9265.ConfigureasingleFPGAI/ONodewiththechannelsyouwanttosimultaneouslysampleorupdate.IfyouconfigureasingleFPGAI/ONodewithchannelsfromdifferentmodules,FPGAI/Oexecutionbeginsatthesametimeforallthemodules,buttheactualsamplingorupdatetimesmaydifferbetweenmodulesdependingonthetypesofmodules,thenumberofchannelsusedoneachmodule,thearbitrationsettings,andwhetherornotthemodulesareidlewhentheI/ONodebeginsexecution.IfyouconfigureanFPGAI/ONodewithmultiplechannelsonanon-simultaneousmodule,thefunctionaccessesthechannelssequentially.
UnderstandingPower-OnandStartupOutputStatesforCompactRIOOutputModules(FPGAInterface)Thepower-onoutputstateisthestatethataCSeriesoutputmoduleisinwhenpowerisappliedtothemodule.RefertotheNI9xxxOperatingInstructionsandSpecificationsforthemoduleforthepower-onoutputstate.Youcannotconfigurethepower-onoutputstate.ThestartupoutputstateisthestatethataCompactRIOchannelisinafteryouloadandrunanFPGAVIthatcommunicateswiththeoutputmodule.Youcanconfigurestartupoutputstates.
ConfiguringStartupOutputStatesUsetheFPGAI/ONodeanalogordigitaloutputoptionstochangestartupoutputstates.YoucandeveloptheFPGAVIsothattheoutputfunctionexecuteswhentheFPGAVIstartsrunning.
NoteIfyouinsertanNI9263orNI9265modulewhiletheCompactRIOchassisispoweredonandanFPGAVIisrunning,theanalogoutputchannelsresettothepower-onoutputstate,andtheFPGAVIcontinuesrunningandcommunicatingwiththeanalogoutputchannels.
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
orNI9485.NationalInstrumentsrecommendsthatyoudonotreplaceamodulethatisadifferenttypewithoneofthesemodulesaftertheFPGAVIisloaded.ReplacingamodulethatisadifferenttypethanthemodulewithwhichyouarereplacingitaftertheFPGAVIisloadedcanplacetheoutputchannelsinanundefinedorunexpectedstate.
written
UsingtheRIODeviceI/OControl(FPGAInterface)PlacetheRIODeviceI/OcontrolonthefrontpanelofaVI.UsetheI/Ocontrolpull-downmenutoselectaRIOdevice.
SelectingaRIODeviceinaProjectVITargetedtoMyComputerIftheVIispartofaprojectandistargetedtoMyComputer,theI/Ocontrolpull-downmenushowsthefollowingsectionsfromtoptobottom.
RIOdevicesintheprojectLocalRIOdevicesandlocalRIOaliasesBrowse,whichopenstheBrowseRIODevicesdialogboxRecentlyusedRIOdevices
SelectingaRIODeviceinaProjectVITargetedtoanRTControllerIftheVIispartofaprojectandistargetedtoanRTcontroller,theI/Ocontrolpull-downmenushowsthefollowingsection.
RIOdeviceslocaltothecontroller
SelectingaRIODeviceinaNon-ProjectVIIftheVIisnotpartofaproject,theI/Ocontrolpull-downmenushowsthefollowingsectionsfromtoptobottom.
LocalRIOdevicesandlocalRIOaliasesBrowse,whichopenstheBrowseRIODevicesdialogboxRecentlyusedRIOdevices
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.
ConfirmingtheStateofDigitalOutputChannelsFordigitalchannels,youalsocanreadthedigitaloutputchannel.Completethefollowingstepstoreadfromthedigitaloutputchannels.
1. PlaceanotherFPGAI/ONodefunctionontheblockdiagram.ThisFPGAI/ONodemustexecuteaftertheFPGAI/ONodeyouaddedabove.
2. ClicktheelementsectionoftheFPGAI/ONodeandselectModule»Module/Channelfromtheshortcutmenu,whereModulerepresentsaCSeriesmoduleandModule/Channelisthechannelyouwanttoread.
3. Right-clickthenewFPGAI/ONodeandselectChangetoReadfromtheshortcutmenu.
ConvertingandCalibratingCompactRIOAnalogInputValues(FPGAInterface)SettheCalibrationModetoCalibratedintheCSeriesModulePropertiesdialogboxforananaloginputmoduleifyouwanttheFPGAI/ONodetoreturncalibrated,fixed-pointdataforthemodule.IfyousettheCalibrationModetoRaw,theFPGAI/ONodereturnsuncalibrated,binaryvaluesforthefollowinganaloginputmodules:
NI9201NI9203NI9205NI9206NI9215NI9217NI9221NI9225
NI9229NI9233NI9234NI9235NI9236NI9237NI9239
IfyousettheCalibrationModetoRaw,youmustconvertthebinaryvaluesintomeaningfulengineeringunitsandapplycalibrationconstantstoachievemoreaccurateresults.YoumustconvertandcalibratethesevaluesinthehostVI.
NoteAfteryouconvertthebinaryvaluestoengineeringunitsfortheNI9217,youcanalsoconvertthenominalresistancevaluesintotemperaturevalues.
NoteThebinarydatareturnedbytheNI9211,NI9213,orNI9219isalreadycalibrated.YoumustusedifferentequationstoconvertvaluesfortheNI9211,convertvaluesfortheNI9213,orconvertvaluesfortheNI9219intoengineeringunits.
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
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
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.
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)
NI9239 –8,388,608(0xFF800000)or8,388,607(0x7FFFFF)*FortheNI9205andNI9206,achannelmightbeoutofrangebeforetheFPGAI/ONodereachestheminimumormaximumfull-scalebinaryvalue.
NI9201(FPGAInterface)CompactRIO8-Channel,±10V,12-BitAnalogInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.
Terminal DescriptionAIx Analoginputchannelx,wherexisthenumberofthechannel.
TheNI9201hasAIchannels0to7.
Youcanconfiguretheminimumtimebetweenconversionsandunderstandscanningforthesechannels.
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
MethodsThisdevicedoesnotsupportanymethods.
I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionLSBWeight
ReturnstheLSBweightinnV/LSBforthechannel.UsethisvaluetoconvertandcalibrateNI9201dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
Offset ReturnsthecalibrationoffsetinnVforthechannel.UsethisvaluetoconvertandcalibrateNI9201dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.
HardwareDocumentationRefertotheNI9201/9221OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
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.
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
<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
<1.25µs No
*ThevalueyousetintheCSeriesModulePropertiesdialogbox.**TheactualtimebetweenconversionsdependsonhowyoudeveloptheFPGAVI.YesindicatesthatitispossibletowriteanFPGAVIthatcansustaintheminimumtimebetweenconversionsspecifiedintheCSeriesModulePropertiesdialogbox.NoindicatesthattheminimumtimebetweenconversionsspecifiedintheCSeriesModulePropertiesdialogboxistoolowandyoumaynotbeabletowriteanFPGAVIthatcansustainthespecifiedtime.
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
NI9203(FPGAInterface)CompactRIO8-Channel,±20mA,16-BitAnalogInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.
Terminal DescriptionAIx Analoginputchannelx,wherexisthenumberofthechannel.
TheNI9203hasAIchannels0to7.
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.ThisdevicedoesnotsupportanyI/Omethods.
Method DescriptionSetInputRange
Setstheinputrangeforachannelaseither0–20mAor±20mA.ThismethodoverwritesthevalueyouconfigureintheCSeriesModulePropertiesdialogbox.
I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionLSBWeight(±20mArange)
ReturnstheLSBweightinpA/LSBforthechannel.UsethisvaluetoconvertandcalibrateNI9203dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox,andyousettheinputrangeto±20mA.
LSBWeight(4–20mArange)
ReturnstheLSBweightinpA/LSBforthechannel.UsethisvaluetoconvertandcalibrateNI9203dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox,andyousettheinputrangeto0–20mA.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionModuleID
ReturnsthemoduleID.
Offset(±20mArange)
ReturnsthecalibrationoffsetinpAforthechannel.UsethisvaluetoconvertandcalibrateNI9203dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox,andyousettheinputrangeto±20mA.
Offset(4–20mArange)
ReturnsthecalibrationoffsetinpAforthechannel.UsethisvaluetoconvertandcalibrateNI9203dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox,andyousettheinputrangeto0–20mA.
SerialNumber
Returnstheuniqueserialnumberofthemodule.
VendorID
ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.
HardwareDocumentationRefertotheNI9203OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
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.
NI9205(FPGAInterface)CompactRIO32-ChannelSingle-Ended/16-ChannelDifferential,±200mVto±10V,16-BitAnalogInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.
Terminal DescriptionAIx Analoginputchannelx,wherexisthenumberofthechannel.
TheNI9205hasAIchannels0to31.Thechannelissampledusingthecurrentlyconfiguredterminalmodeandvoltagerange.YoucanconfigurethesesettingsatedittimeusingtheCSeriesModulePropertiesdialogboxoratruntimeusingtheSetTerminalModeorSetVoltageRangemethods.
DI0 Digitalinputchannelusedtoaccessthemoduledigitalline,whichislabeledPFI0.ThisterminalisnotavailableforanonboardNI9205onaSingle-BoardRIO(sbRIO)device.
Trig Returnstheoutputofthemoduletriggercircuitry.UsetheSetTriggersmethodtoconfigurethetriggercircuit.
DO0 Digitaloutputchannel0.ThisterminalisnotavailableforanonboardNI9205onansbRIOdevice.
RefertotheConversionTimingtopicforinformationabouttheorderandtimingofconversionsfortheseI/Ochannels.
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
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
AIBelowLowAIAboveHighAIInsideRegionAIBelowLowwithHysteresisAIAboveHighwithHysteresisDITrigger
NoteTheonboardNI9205onsbRIOdevicesdoesnotsupportDItriggering.
Refertothe9205BasicTriggeringVIandthe9205AdvancedTriggeringVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9205\NI9205BasicTriggeringandlabview\examples\CompactRIO\ModuleSpecific\NI9205\NI9205AdvancedTriggeringdirectoriesforexamplesrelatedtothismethod.
BasicTriggering
OpenexampleAdvancedTriggering
Openexample
SetVoltageRange
Setstheinputrangeforachannelas±10V,±5V,±1V,or±200mV.ThismethodoverwritesthevalueyouconfigureintheCSeriesModulePropertiesdialogbox.
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
Propertiesdialogbox.Offset(±1Vrange)
ReturnsthecalibrationoffsetinnVforthe±1Vrange.UsethisvaluetoconvertandcalibrateNI9205dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
Offset(±200mVrange)
ReturnsthecalibrationoffsetinnVforthe±200mVrange.UsethisvaluetoconvertandcalibrateNI9205dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
Offset(±5Vrange)
ReturnsthecalibrationoffsetinnVforthe±5Vrange.UsethisvaluetoconvertandcalibrateNI9205dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
SerialNumber
Returnstheuniqueserialnumberofthemodule.
VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.
HardwareDocumentationRefertotheNI9205OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
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).
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.
IfstatusisFALSE,codeis0orawarningcode.sourcealwayscontainsanemptystringbecausestringsarenotsupportedinLabVIEWFPGA.
erroroutcontainserrorinformation.IferrorinindicatesthatanerroroccurredbeforethisVIorfunctionran,erroroutcontainsthesameerrorinformation.Otherwise,itdescribestheerrorstatusthatthisVIorfunctionproduces.Right-clicktheerroroutindicatoronthefrontpanelandselectExplainErrorfromtheshortcutmenuformoreinformationabouttheerror.
statusisTRUE(X)ifanerroroccurredorFALSE(checkmark)toindicateawarningorthatnoerroroccurred.codeistheerrorcodenumberidentifyinganerror.Thedefaultis0.IfstatusisTRUE,codeisanonzeroerrorcode.IfstatusisFALSE,codeis0orawarningcode.sourcealwayscontainsanemptystringbecausestringsarenotsupportedinLabVIEWFPGA.
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
UsingThisMethodTheIOSamplemethodprovidesanefficientandflexibleinterfacetothemodule.Youcanusethismethodtoacquireasinglesamplefromanyofthechannelsonthemodule,atanyrange,andwithanyavailableinputmode.Whenthismethodisexecuted,themoduleperformsasingleconversiononthenextchannelpresentintheconversionpipelineonthemodule.ThedatafromthisconversionisreturnedviatheData[i]methodoutput.Atthesametimethattheconversiondataisreadfromthemodule,thenewconfigurationinformationspecifiedbytheConfiguration[i+2]inputisloadedintotheconfigurationpipelineonthemodule.Thepipelineistwosamplesdeep.So,theconfigurationinformationspecifiedononeexecutionoftheIOSamplemethoddetermineswhichchannelwillbesampledbytheIOSamplemethodtwoiterationsintothefuture.RefertotheConversionTimingtopicformoredetails.
ExamplesRefertothe9205BasicIOVIandtheNI9205AdvancedIOVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9205\NI9205BasicIOandlabview\examples\CompactRIO\ModuleSpecific\NI9205\NI9205AdvancedIOdirectoriesforexamplesoftheIOconceptsdiscussedabove.
BasicIO
OpenexampleAdvancedIO
Openexample
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.
erroroutcontainserrorinformation.IferrorinindicatesthatanerroroccurredbeforethisVIorfunctionran,erroroutcontainsthesameerrorinformation.Otherwise,itdescribestheerrorstatusthatthisVIorfunctionproduces.Right-clicktheerroroutindicatoronthefrontpanelandselectExplainErrorfromtheshortcutmenuformoreinformationabouttheerror.
statusisTRUE(X)ifanerroroccurredorFALSE(checkmark)toindicateawarningorthatnoerroroccurred.codeistheerrororwarningcode.IfstatusisTRUE,codeisanonzeroerrorcode.IfstatusisFALSE,codeis0orawarningcode.sourcealwayscontainsanemptystringbecausestringsarenotsupportedinLabVIEWFPGA.
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
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.
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
triggermodes.3. MonitortheTrigchannelinaloopuntilyouseetheappropriate
triggerconditionoccur.4. ExecuteanFPGAI/ONodeorIOSamplemethodfunctionto
acquiredatainresponsetothetriggerevent.
ExamplesRefertothe9205BasicTriggeringVIandthe9205AdvancedTriggeringVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9205\NI9205BasicTriggeringandlabview\examples\CompactRIO\ModuleSpecific\NI9205\NI9205AdvancedTriggeringdirectoriesforexamplesofthetriggeringconceptsdiscussedabove.
BasicTriggering
OpenexampleAdvancedTriggering
Openexample
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
VIdoesnotperformanyoperations.codeistheerrorcodenumberidentifyinganerror.Thedefaultis0.IfstatusisTRUE,codeisanonzeroerrorcode.IfstatusisFALSE,codeis0orawarningcode.sourcealwayscontainsanemptystringbecausestringsarenotsupportedinLabVIEWFPGA.
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,
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
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.
ExampleRefertotheAdvancedIOexampleinthelabview\examples\CompactRIO\ModuleSpecific\NI9205\NI9205AdvancedIOdirectoryforanexampleofconversiontimingontheNI9205andNI9206CSeriesModules.Openexample
NI9206(FPGAInterface)CompactRIO32-ChannelSingle-Ended/16-ChannelDifferential,±200mVto±10V,16-BitAnalogInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.
Terminal DescriptionAIx Analoginputchannelx,wherexisthenumberofthechannel.
TheNI9206hasAIchannels0to31.Thechannelissampledusingthecurrentlyconfiguredterminalmodeandvoltagerange.YoucanconfigurethesesettingsatedittimeusingtheCSeriesModulePropertiesdialogboxoratruntimeusingtheSetTerminalModeorSetVoltageRangemethods.
DI0 Digitalinputchannelusedtoaccessthemoduledigitalline,whichislabeledPFI0.
Trig Returnstheoutputofthemoduletriggercircuitry.UsetheSetTriggersmethodtoconfigurethetriggercircuit.
DO0 Digitaloutputchannel0.
RefertotheConversionTimingtopicforinformationabouttheorderandtimingofconversionsfortheseI/Ochannels.
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
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:
NoneAIBelowLowAIAboveHighAIInsideRegionAIBelowLowwithHysteresisAIAboveHighwithHysteresisDITrigger
Refertothe9206BasicTriggeringVIandthe9206AdvancedTriggeringVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9206\NI9206BasicTriggeringandlabview\examples\CompactRIO\ModuleSpecific\NI9206\NI9206AdvancedTriggeringdirectoriesforexamplesrelatedtothismethod.
BasicTriggering
OpenexampleAdvancedTriggering
Openexample
SetVoltageRange
Setstheinputrangeforachannelas±10V,±5V,±1V,or±200mV.ThismethodoverwritesthevalueyouconfigureintheCSeriesModulePropertiesdialogbox.
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
Propertiesdialogbox.Offset(±1Vrange)
ReturnsthecalibrationoffsetinnVforthe±1Vrange.UsethisvaluetoconvertandcalibrateNI9206dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
Offset(±200mVrange)
ReturnsthecalibrationoffsetinnVforthe±200mVrange.UsethisvaluetoconvertandcalibrateNI9206dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
Offset(±5Vrange)
ReturnsthecalibrationoffsetinnVforthe±5Vrange.UsethisvaluetoconvertandcalibrateNI9206dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
SerialNumber
Returnstheuniqueserialnumberofthemodule.
VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.
HardwareDocumentationRefertotheNI9206OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
NI9211(FPGAInterface)CompactRIO4-Channel,±80mV,24-BitThermocoupleInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.
Terminal DescriptionTCx Thermocoupleinputchannelx,wherexisthenumberofthe
channel.TheNI9211hasTCchannels0to3.CJC Cold-junctioncompensationchannel.Forthebestaccuracy,
readtheCJCchannelinthesameFPGAI/ONodeasthethermocoupleinputchannels.YoumustconverttheCJCdatatotemperature.
Autozero Autozerochannel.Forthebestaccuracy,readtheAutozerochannelinthesameFPGAI/ONodeasthethermocoupleinputchannels.
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
MethodsThisdevicedoesnotsupportanymethods.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.
HardwareDocumentationRefertotheNI9211OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
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.
ConvertingNI9211Data(FPGAInterface)SettheCalibrationModetoCalibratedintheCSeriesModulePropertiesdialogboxfortheNI9211ifyouwanttheFPGAI/ONodetoreturncalibrated,fixed-pointdatafromthemoduleinunitsofvolts.IfyousettheCalibrationModetoCalibrated,youmustconvertthefixed-pointCJCdatatobinaryCJCdataandthenconvertthebinaryCJCdatatotemperature.SettheCalibrationModetoRawifyouwanttheFPGAI/ONodetoreturncalibrated,binarydatafromthemodule.IfyousettheCalibrationModetoRaw,youmustconvertthebinarythermocouplevaluestovoltageandconvertthebinaryCJCdatatotemperature.YoumustconvertthesevaluesinthehostVI.
UsingaVItoConvertDatatoTemperatureRefertotheConverttoTemperature(NI9211)polymorphicVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9211\NI9211SupportFiles.llbforanexampleofconvertingcalibratedorrawdatatotemperature.YoucanusetheConverttoTemperature(NI9211)VIasasubVIinthehostVI.Openexample
UsinganEquationtoConvertBinaryThermocoupleValuestoVoltageYoucanusethefollowingequationinthehostVItoconvertbinarythermocouplevaluestovoltage:Voltage=BinaryValue×80mV÷8,388,607where BinaryValueisthevaluereturnedbytheFPGAI/ONode.
UsinganEquationtoConvertFixed-PointCJCDatatoBinaryCJCDataYoucanusethefollowingequationinthehostVItoconvertfixed-pointCJCdatatobinaryCJCdata:
BinaryCJCData=(Fixed-PointCJCData)÷(0.160÷(224–1))where Fixed-PointCJCDataisthevaluereturnedbytheFPGAI/O
Node.
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.
NI9213(FPGAInterface)CompactRIO16-Channel,±78mV,24-BitThermocoupleInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.
Terminal DescriptionTCx Thermocoupleinputchannelx,wherexisthenumberofthe
channel.TheNI9213hasTCchannels0to15.Autozero Autozerochannel.Forthebestaccuracy,readtheAutozero
channelinthesameFPGAI/ONodeasthethermocoupleinputchannels.
CJC Cold-junctioncompensationchannel.Forthebestaccuracy,readtheCJCchannelinthesameFPGAI/ONodeasthethermocoupleinputchannels.YoumustconverttheCJCdatatotemperature.
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.ThisdevicedoesnotsupportanyI/Omethods.
Method DescriptionCheckStatus
ReturnsBooleansforeachchannelthatindicatewhetherthechannelisoutofrangeorhasanopenthermocouple.ThismethoddeterminestheBooleanvaluesfortheOutofRangeandOpenThermocoupleoutputswhentheFPGAI/ONodereadsthechannels.AvalueofTRUEforanychanneliscacheduntiltheCheckStatusmethodexecutes.
ForceStatusRead—WhenthevalueofthisinputisFALSE,themethodreturnsthecachedstatusinformationsincethelasttimethattheCheckStatusmethodexecuted.WhenthevalueisTRUE,themethodforcestheFPGAI/ONodetoreadallchannelsandthenthemethodupdatesthestatusinformation.Forcingastatusreadcanintroducejitterintoananaloginputloop.OutofRange—ReturnsanarrayofBooleanvalues.AvalueofTRUEinanyindexindicatesthatthechannelsharinganumberwiththatindexexceededthecommon-modevoltagerangeatsomepointafterthelasttimethattheCheckStatusmethodexecuted.OpenThermocouple—ReturnsanarrayofBooleanvalues.AvalueofTRUEinanyindexindicatesthatthechannelsharinganumberwiththatindexdetectedanopenthermocoupleonthechannelatsomepointafterthelasttimethattheCheckStatusmethodexecuted.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.
Property DescriptionConversionTime
SetsthetimeittakestoacquireonepointofdatafromoneormorechannelsinasingleFPGAI/ONode.YoucanselectHighSpeedorHighResolution.RefertotheNI9213OperatingInstructionsandSpecificationsformoreinformationabouttheHighSpeedandHighResolutionconversiontimes.ThispropertyoverwritesthevalueyouconfigureintheCSeriesModulePropertiesdialogbox.
ModuleID ReturnsthemoduleID.SerialNumber
Returnstheuniqueserialnumberofthemodule.
VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.
HardwareDocumentationRefertotheNI9213OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.Theoperatinginstructionsshipwiththemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
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.
ConvertingNI9213Data(FPGAInterface)SettheCalibrationModetoCalibratedintheCSeriesModulePropertiesdialogboxfortheNI9213ifyouwanttheFPGAI/ONodetoreturncalibrated,fixed-pointdatafromthemoduleinunitsofvolts.IfyousettheCalibrationModetoCalibrated,youmustconverttheCJCdatafromvoltagetotemperature.SettheCalibrationModetoRawifyouwanttheFPGAI/ONodetoreturncalibrated,binarydatafromthemodule.IfyousettheCalibrationModetoRaw,youmustconvertthebinarythermocoupleandCJCvaluestovoltageandthenconverttheCJCdatafromvoltagetotemperature.YoumustconvertthesevaluesinthehostVI.
UsingaVItoConvertDatatoTemperatureRefertotheNI9213ConverttoTemperaturepolymorphicVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9213\NI9213GettingStarted\NI9213GettingStarted.lvprojforanexampleofconvertingcalibratedorrawdatatotemperature.YoucanusetheNI9213ConverttoTemperatureVIasasubVIinthehostVI.Openexample
UsinganEquationtoConvertBinaryValuestoVoltageYoucanusethefollowingequationinthehostVItoconvertthebinarythermocoupleandCJCvaluestovoltage:Voltage=BinaryValue×78.125mV÷8,388,607where BinaryValueisthevaluereturnedbytheFPGAI/ONode.
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.
NI9215(FPGAInterface)CompactRIO4-Channel,±10V,16-BitSimultaneousAnalogInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
NoteYoucansimultaneouslyreadfrommultiplechannelsontheNI9215.
TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.
Terminal DescriptionAIx Analoginputchannelx,wherexisthenumberofthechannel.
TheNI9215hasAIchannels0to3.
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
MethodsThisdevicedoesnotsupportanymethods.
I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionLSBWeight
ReturnstheLSBweightinnV/LSBforthechannel.UsethisvaluetoconvertandcalibrateNI9215dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
Offset ReturnsthecalibrationoffsetinnVforthechannel.UsethisvaluetoconvertandcalibrateNI9215dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.
HardwareDocumentationRefertotheNI9215OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
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.
NI9217(FPGAInterface)CompactRIO4-Channel,24-Bit,100ΩRTDAnalogInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.
Terminal DescriptionRTDx RTDinputchannelx,wherexisthenumberofthechannel.
TheNI9217hasRTDchannels0to3.
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
MethodsThisdevicedoesnotsupportanymethods.
I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionLSBWeight
ReturnstheLSBweightinpΩ/LSBforthechannel.UsethisvaluetoconvertandcalibrateNI9217dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
Offset ReturnsthecalibrationoffsetinµΩforthechannel.UsethisvaluetoconvertandcalibrateNI9217dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionConversionTime
Setsthetimeinmillisecondsittakestoacquireconversiondata.ThispropertyoverwritesthevalueyouconfigureintheCSeriesModulePropertiesdialogbox.
ModuleID ReturnsthemoduleID.SerialNumber
Returnstheuniqueserialnumberofthemodule.
VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.
HardwareDocumentationRefertotheNI9217OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
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.
ConvertingNominalValuestoTemperatureValuesfortheNI9217(FPGAInterface)SettheCalibrationModetoCalibratedintheCSeriesModulePropertiesdialogboxfortheNI9217ifyouwanttheFPGAI/ONodetoreturncalibrated,fixed-pointdataforthemoduleinunitsofohms.IfyousettheCalibrationModetoRaw,theFPGAI/ONodereturnsuncalibrated,binaryvaluesforthemodule.Afteryouconvertthesebinaryvaluestonominalvalues,youcanconvertthenominalresistancevaluesintotemperaturevalues.YoumustconvertthesevaluesinthehostVI.
UsingaVItoConvertValuesRefertotheRTDtoTempVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9217\NI9217GettingStarted\NI9217GettingStarted.lvprojforanexampleofconvertingnominalresistancevaluestotemperature.YoucanusetheRTDtoTempVIasasubVIinthehostVItoconvertnominalresistancevaluestotemperature.Openexample
UsinganEquationtoMeasureTemperatureYoucanusealinearizationcurveknownastheCallendar-VanDusenequationinthehostVItomeasurethetemperatureofRTDs.
NI9219(FPGAInterface)CompactRIO4-Channel,24-BitUniversalAnalogInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.
Terminal DescriptionChx Channelx,wherexisthenumberofthechannel.TheNI9219
haschannels0to3.CJCx Cold-junctioncompensationchannelx,wherexisthenumber
ofthechannel.TheNI9219hasCJCchannels0to3.IfachannelisinThermocouplemode,youcanreadCJCdataforthechannel.YoumustconverttheCJCdatatotemperature.
YoucanreadTEDSinformationfromtheNI9219.
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
MethodsThisdevicedoesnotsupportanymethods.
I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionVoltageRange SetstherangeofachannelinVoltagemode.ResistanceRange SetstherangeofachannelinResistancemode.RTDRange SetstherangeofachannelinRTDmode.QuarterBridgeRange
SetstherangeofachannelinQuarterBridgemode.
FullBridgeRange SetstherangeofachannelinFullBridgemode.DigitalThreshold SetsthethresholdofachannelinDigitalInmode.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionConversionTime
Setsthetimeittakestoacquireonepointofdatafromallchannels.YoucanselectHighSpeed,Best60HzRejection,Best50HzRejection,orHighResolution.RefertotheNI9219OperatingInstructionsandSpecificationsformoreinformationabouttheseconversiontimes.ThispropertyoverwritesthevalueyouconfigureintheCSeriesModulePropertiesdialogbox.
ModuleID ReturnsthemoduleID.SerialNumber
Returnstheuniqueserialnumberofthemodule.
VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
ExcitationProtectionTheNI9219excitationcircuitisprotectedfromovercurrentandovervoltagefaultconditions.Thecircuitisautomaticallydisabledintheeventofafaultcondition.Wheneverpossible,achannelautomaticallyrecoversafterthefaultisremoved.YoumustwireerrorterminalsontheFPGAI/OPropertyNodestoreceivenotificationofovercurrentandovervoltagefaults.LabVIEWreturnserror65544or65548ifthereisanovercurrentorovervoltagefaultonatleastonechannel.Ifawarningoccurs,onlythechannel(s)withthefaultareaffectedandallotherchannelsonthemodulecontinuetofunctionproperlywithoutinterruption.Ifanerroroccurs,themoduleisunabletorecoverfromthefaultconditionandyoumustrestartthemoduleafterthefaultisremoved.
Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.
HardwareDocumentationRefertotheNI9219OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
AccessingTEDSInformationfromtheNI9219(FPGAInterface)YoucanaccessTransducerElectronicDataSheet(TEDS)informationfromTEDS-compatibletransducersconnectedtothechannelsofanNI9219.YoumustenableTEDSsupportforthemodulebeforeyoucanreadTEDSinformation.YoucanaccessTEDSinformationonlyfromthehostVI.
EnablingTEDSSupportfortheNI9219CompletethefollowingstepstoenableTEDSsupportfortheNI9219.
1. ConfiguretheCompactRIOsystem,andaddanNI9219.2. Right-clicktheNI9219intheProjectExplorerwindowand
selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.
3. PlaceacheckmarkintheEnableTEDSSupportcheckbox.4. ClicktheOKbutton.
TheFPGAVImusthaveanFPGAI/ONodeoranFPGAI/OPropertyNodethatcommunicateswiththeNI9219.Ifitdoesnot,theLabVIEWFPGACompileServeroptimizestheVIwhenyoucompileit,andthehostVIcannotcommunicatewiththeNI9219.
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
table.
NoteYoumustenableerrorhandlingintheFPGAVItoreceiveconsistenterrormessagesinthehostVI.
RefertotheNI9219TEDSVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9219\NI9219TEDSdirectoryforanexampleofaccessingTEDSinformation.Openexample
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
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.
ConvertingNI9219Data(FPGAInterface)SettheCalibrationModetoCalibratedintheCSeriesModulePropertiesdialogboxfortheNI9219ifyouwanttheFPGAI/ONodetoreturncalibrated,fixed-pointdatafromthemodule.IfyousettheCalibrationModetoCalibratedandanNI9219channelisinThermocouplemode,youmustconvertthefixed-pointCJCdatatobinaryCJCdataandthenconvertthebinaryCJCdatatotemperature.SettheCalibrationModetoRawifyouwanttheFPGAI/ONodetoreturnbinaryvaluesfromthemodulethatarecalibratedbasedontherangeoftheselectedmode.IfyousettheCalibrationModetoRaw,youmustconvertthebinaryvaluestomeaningfulengineeringunits.IfyousettheCalibrationModetoRawandanNI9219channelisinThermocouplemode,youalsomustconvertthebinaryCJCdatatotemperature.YoumustconvertthesevaluesinthehostVI.
UsingaVItoConvertandAdjustBinaryValuesRefertotheNI9219BinarytoNominalVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9219\NI9219ScalingUtilitydirectoryforanexampleofconvertingandadjustingbinaryinputvalues.YoucanusethepolymorphicNI9219BinarytoNominalVIasasubVIinthehostVItoconvertandadjustbinaryinputvalues.
UsinganEquationtoConvertBinaryValuesYoucanusethefollowingequationinthehostVItoconvertthebinaryinputvaluestoengineeringunitsforeachchannel:
EngineeringUnits*=BinaryValue×(RangeHigh–RangeLow)÷224
where BinaryValueisthevaluereturnedbytheFPGAI/ONode
RangeHighistheuppervalueoftheinputrange†
RangeLowisthelowervalueoftheinputrange.*EngineeringunitsareequivalenttotheunitsofthemodeinputrangeintheNI9219OperatingInstructionsandSpecifications.†RefertotheNI9219OperatingInstructionsandSpecificationsfortheinputrangesforeachmode.Formodesthathaveonlyoneinputrangevalue,use0asthelowervalueoftheinputrange.DigitalInDigitalInmodereturnsaBooleanvalue,whereFALSEisequivalenttoanyvoltagebelowthespecifiedthresholdandTRUEisequivalenttoanyvoltageabovethespecifiedthreshold.OpenContactOpenContactmodereturnsaBooleanvalue,whereFALSEindicatesaclosedcircuitandTRUEindicatesaopencircuit.
UsinganEquationtoConvertFixed-PointCJCDataYoucanusethefollowingequationinthehostVItoconvertfixed-pointCJCdatatobinaryCJCdata:
BinaryCJCData=(Fixed-PointCJCData)÷(0.250÷(224–1))
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.
ConfiguringModesandRangesfortheNI9219(FPGAInterface)YoucanconfigurethemodeandrangeforeachchannelontheNI9219atedittimeusingtheCSeriesModulePropertiesdialogbox.YoucanprogrammaticallychangetherangeforeachchannelatruntimeusingtheFPGAI/OPropertyNode.TheexecutionofanI/OPropertyNodethatisconfiguredwithaRangepropertyoverwritesthevalueyouconfiguredintheCSeriesModulePropertiesdialogbox.
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.
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
ConfiguringtheDigitalInThresholdfortheNI9219(FPGAInterface)ChannelsinDigitalInmodeontheNI9219havea0–60Vunipolarthreshold.ThedefaultvalueoftheDigitalInmodethresholdis1.5V.YoucanconfigurethethresholdatedittimeusingtheCSeriesModulePropertiesdialogbox.YoucanprogrammaticallychangethethresholdatruntimeusingtheFPGAI/OPropertyNode.TheexecutionofanI/OPropertyNodethatisconfiguredwithaDigitalThresholdpropertyoverwritesthevalueyouconfiguredintheCSeriesModulePropertiesdialogbox.
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.
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
NI9221(FPGAInterface)CompactRIO8-Channel,±60V,12-BitAnalogInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.
Terminal DescriptionAIx Analoginputchannelx,wherexisthenumberofthechannel.
TheNI9221hasAIchannels0to7.
Youcanconfiguretheminimumtimebetweenconversionsandunderstandscanningforthesechannels.
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
MethodsThisdevicedoesnotsupportanymethods.
I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionLSBWeight
ReturnstheLSBweightinnV/LSBforthechannel.UsethisvaluetoconvertandcalibrateNI9221dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
Offset ReturnsthecalibrationoffsetinnVforthechannel.UsethisvaluetoconvertandcalibrateNI9221dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.
HardwareDocumentationRefertotheNI9201/9221OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
NI9225(FPGAInterface)CompactRIO3-Channel,300Vrms,24-BitSimultaneousAnalogInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
NoteYoucansimultaneouslyreadfromorwritetomultiplechannelsontheNI9225.YoucanalsosynchronizeanNI9225modulewithotherNI9225/9229/923xmodules.
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
Stopchannels.
Openexample
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
MethodsThisdevicedoesnotsupportanymethods.
I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionLSBWeight
ReturnstheLSBweightinpV/LSBforthechannel.UsethisvaluetoconvertandcalibrateNI9225dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
Offset ReturnsthecalibrationoffsetinuVforthechannel.UsethisvaluetoconvertandcalibrateNI9225dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionDataRate SetstherateatwhichtheNI9225acquiresdata.ModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopYoucanusetheOnboardClockchannelinthesingle-cycleTimedLoop.YoucannotusetheotherchannelsontheNI9225withthesingle-cycleTimedLoop.RefertotheUnderstandingLoopTimingfortheNI9225/9229/923xtopicforinformationaboutlooptimingforthismodule.
HardwareDocumentationRefertotheNI9225OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
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.
PuttingtheModuleinAcquisitionModeConfigureanFPGAI/ONodewiththeStartchanneloftheNI9225/9229/9239.WireaBooleanconstantsettoTRUEtotheStartinputoftheFPGAI/ONodetosendasynchronizationpulsetothemodule.Themodulestartsacquiringdataatthedatarateyouconfigure.
ReadingDatafromtheModuleWhenthemodulestartsacquiringdata,youcanuseanFPGAI/ONodetoreaddatafromthemodule.YoucanconnecttheAIoutputoftheFPGAI/ONodetovarioustypesoffunctions,includinganFPGAMemoryfunctionoranFPGAFIFOfunction.Ifyoureadfrommultiplechannelsonthemodule,placethechannelsinthesameFPGAI/ONodetoensurethattheVIreadsthedatasynchronously.BecausetheNI9225/9229/9239internallyacquiresdataataspecifiedrate,theFPGAI/ONodedoesnotreturndatauntilnewdatahasbeenacquiredbythemodule.IftheNI9225/9229/9239didnotstartacquiringdataorstopsacquiringdatawhileanFPGAI/ONodeiswaitingfordatafromthemodule,theFPGAI/ONodereturnsatimeouterror.
ExitingAcquisitionModeConfigureanFPGAI/ONodewiththeStopchanneloftheNI9225/9229/9239.WriteaTRUEtotheStopinput.ThemoduleisnolongerinacquisitionmodeandnowyoucanaccessNI9225/9229/9239properties.
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
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.
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.
ConfiguringtheOnboardClockastheMasterTimebaseSourceCompletethefollowingstepstoconfiguretheinternal12.8MHzOnboardClockasthemastertimebasesource.
1. ConfiguretheCompactRIOsystem,andaddanNI9225/9229/9239.
2. Right-clicktheNI9225/9229/9239intheProjectExplorerwindowandselectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.
3. Select<OnboardClock>fromtheMasterTimebaseSourcepull-downmenu.
4. ClicktheOKbutton.5. SelectFile»SaveAllintheProjectExplorerwindow.
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.
ConfiguringtheNI9225/9229/9239DataRate(FPGAInterface)YoucanconfigurethedatarateatwhichtheNI9225/9229/9239moduleacquiresandreturnsdataatedittimeusingtheCSeriesModulePropertiesdialogbox.YoucanprogrammaticallychangethedatarateatruntimeusingtheFPGAI/OPropertyNode.TheexecutionofanI/OPropertyNodethatisconfiguredwithaDataRatepropertyoverwritesthevalueyouconfiguredintheCSeriesModulePropertiesdialogbox.
ConfiguringtheDataRateUsingtheCSeriesModulePropertiesDialogBoxCompletethefollowingstepstoconfigurethedataratefortheNI9225/9229/9239usingtheCSeriesModulePropertiesdialogbox.
1. ConfiguretheCompactRIOsystem,andaddanNI9225/9229/9239.
2. Right-clicktheNI9225/9229/9239intheProjectExplorerwindowandselectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.
3. SelecttheratefromtheDataRatepull-downmenu.4. ClicktheOKbutton.5. SelectFile»SaveAllintheProjectExplorerwindow.
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.
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.
SharingaMasterTimebaseSourceConfigurethemodulestosharethesamemastertimebasesource.
StartingtheSynchronizedAcquisitionConfigureanFPGAI/ONodewithStartchannelsfortheNI9225/9229/923xmodulesyouwanttosynchronizeandwireaBooleanconstantsettoTRUEtoeachStartchannel.
NoteEnsurethatallI/OchannelsareinthesameFPGAI/ONode.Otherwise,theFPGAI/ONodewillnotreturnsynchronizeddata.
AcquiringDatafromSynchronizedNI9225/9229/923xModuleswiththeSameDataRateConfigureanFPGAI/ONodewithallofthechannelsfromwhichyouwanttosynchronouslysample.
NoteEnsurethatallI/OchannelsareinthesameFPGAI/ONode.Otherwise,theFPGAI/ONodewillnotreturnsynchronizeddata.
RefertotheSynchronizingNI923xModules(FPGA)VIinthelabview\examples\CompactRIO\ModuleSpecific\NI923x\SynchronizingNI923xModulesdirectoryforanexampleofsynchronizingmultiplemoduleswiththesamedatarate.Openexample
AcquiringDatafromSynchronizedNI9225/9229/923xModuleswithDifferentDataRatesIfyousynchronizeNI9225/9229/923xmodulesthatareconfiguredfordifferentdatarates,createaseparateloopforeachdatarateintheFPGAVI.Ineachloop,configureanFPGAI/ONodewithallofthechannelsthatareconfiguredforthedatarateofthatloop.IfyouplaceNI9225/9229/923xchannelsthatareconfiguredfordifferentdataratesinthesameloop,LabVIEWreturnsanoverrunwarningfromtheFPGAI/ONode(error65539)whenyouruntheVI.ThereisadelaybeforetheFPGAI/ONodereturnsthefirstdatapoint.ThelengthofthedelaydependsonthedatarateoftheNI9225/9229/923x.
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
FPGAI/ONodetoreaddatafromthemodules,theFPGAI/ONodedoesnotreturndatafortheothermoduleuntiltheNI9225/9229/923xacquiresdata.However,ifthemodulehasaslowerdataratethantheNI9225/9229/923xandyoureadfromthemodulesinthesameloop,theFPGAI/ONodefortheNI9225/9229/923xreturnsanoverrunwarningandcontinuesreadingdata.Toavoidmissingdata,youcaneitherchangethedatarateoftheNI9225/9229/923xorreadfromeachmoduleinadifferentloop.
NI9229(FPGAInterface)CompactRIO4-Channel,±60V,24-BitSimultaneousAnalogInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
NoteYoucansimultaneouslyreadfromorwritetomultiplechannelsontheNI9229.YoualsocansynchronizeanNI9229modulewithotherNI9225/9229/923xmodules.
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
Stopchannels.
Openexample
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
MethodsThisdevicedoesnotsupportanymethods.
I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionLSBWeight
ReturnstheLSBweightinpV/LSBforthechannel.UsethisvaluetoconvertandcalibrateNI9229dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
Offset ReturnsthecalibrationoffsetinnVforthechannel.UsethisvaluetoconvertandcalibrateNI9229dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionDataRate SetstherateatwhichtheNI9229acquiresdata.ModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopYoucanusetheOnboardClockchannelinthesingle-cycleTimedLoop.YoucannotusetheotherchannelsontheNI9229withthesingle-cycleTimedLoop.RefertotheUnderstandingLoopTimingfortheNI9225/9229/923xtopicforinformationaboutlooptimingforthismodule.
HardwareDocumentationRefertotheNI9229/9239OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
NI9233(FPGAInterface)CompactRIO4-Channel,±5V,24-BitIEPEAnalogInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
NoteYoucansynchronizeanNI9233modulewithotherNI9225/9229/923xmodules.
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
labview\examples\CompactRIO\ModuleSpecific\NI9233\NI9233GettingStarteddirectoryforanexampleofusingtheStartandStopchannels.
Openexample
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
MethodsThisdevicedoesnotsupportanymethods.
I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionLSBWeight
ReturnstheLSBweightinpV/LSBforthechannel.UsethisvaluetoconvertandcalibrateNI9233dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
Offset ReturnsthecalibrationoffsetinnVforthechannel.UsethisvaluetoconvertandcalibrateNI9233dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionDataRate SetstherateatwhichtheNI9233acquiresdata.ModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopYoucanusethe12.8MHzTimebasechannelinthesingle-cycleTimedLoop.YoucannotusetheotherchannelsontheNI9233withthesingle-cycleTimedLoop.RefertotheUnderstandingLoopTimingfortheNI9225/9229/923xtopicforinformationaboutlooptimingforthismodule.
HardwareDocumentationRefertotheNI9233OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
AccessingTEDSInformationfromtheNI9233(FPGAInterface)YoucanaccessTransducerElectronicDataSheet(TEDS)informationfromTEDS-compatibletransducersconnectedtothechannelsofanNI9233.YoumustenableTEDSsupportforthemodulebeforeyoucanreadTEDSinformation.YoucanaccessTEDSinformationonlyfromthehostVI.
EnablingTEDSSupportfortheNI9233CompletethefollowingstepstoenableTEDSsupportfortheNI9233.
1. ConfiguretheCompactRIOsystem,andaddanNI9233.2. Right-clicktheNI9233intheProjectExplorerwindowand
selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.
3. PlaceacheckmarkintheEnableTEDSSupportcheckbox.4. ClicktheOKbutton.
TheFPGAVImusthaveanFPGAI/ONodethatcommunicateswiththeNI9233.Ifitdoesnot,theLabVIEWFPGACompileServeroptimizestheVIwhenyoucompileit,andthehostVIcannotcommunicatewiththeNI9233.
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
theTEDSdataininputoftheTEDS_DatatoTableVI.WhenyouruntheVI,LabVIEWreadstheTEDSfromthesensor,andtheLabVIEWTEDSToolkitparsestheTEDSinformationandoutputsitasatable.
NoteYoumustenableerrorhandlingintheFPGAVItoreceiveconsistenterrormessagesinthehostVI.
RefertotheNI9233GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9233\NI9233GettingStarteddirectoryforanexampleofaccessingTEDSinformation.Openexample
AcquiringDatafromanNI9233(FPGAInterface)TheNI9233hasfouranaloginputchannelsthataresampledsimultaneouslyatthedatarateforwhichyouhaveconfiguredthemodule.UsetheStartandStopchannelsoftheNI9233toputthemoduleinandoutofacquisitionmode.Inacquisitionmode,theNI9233canonlyacquiredata.YoucanusetheFPGAI/ONodetoreadthedatafromthemodule.YoucannotperformotheroperationswiththeNI9233,suchasaccessingpropertiesorTEDSinformation,whilethemoduleisinacquisitionmode.
NoteYoumustcreateFPGAI/OitemsfortheNI9233beforeyoucanconfiguretheitemsusingtheFPGAI/ONode.
PuttingtheModuleinAcquisitionModeConfigureanFPGAI/ONodewiththeStartchanneloftheNI9233.WireaBooleanconstantsettoTRUEtotheStartinputoftheFPGAI/ONodetosendasynchronizationpulsetothemodule.Themodulestartsacquiringdataatthedatarateyouconfigure.
ReadingDatafromtheModuleWhenthemodulestartsacquiringdata,youcanuseanFPGAI/ONodetoreaddatafromthemodule.YoucanconnecttheAIoutputoftheFPGAI/ONodetovarioustypesoffunctions,includinganFPGAMemoryfunctionoranFPGAFIFOfunction.Ifyoureadfrommultiplechannelsonthemodule,placethechannelsinthesameFPGAI/ONodetoensurethattheVIreadsthedatasynchronously.BecausetheNI9233internallyacquiresdataataspecifiedrate,theFPGAI/ONodedoesnotreturndatauntilnewdatahasbeenacquiredbythemodule.IftheNI9233didnotstartacquiringdataorstopsacquiringdatawhileanFPGAI/ONodeiswaitingfordatafromthemodule,theFPGAI/ONodereturnsatimeouterror.
ExitingAcquisitionModeConfigureanFPGAI/ONodewiththeStopchanneloftheNI9233.WriteaTRUEtotheStopinput.ThemoduleisnolongerinacquisitionmodeandnowyoucanaccessNI9233propertiesandTEDSinformation.
ExampleRefertotheNI9233GettingStarted(FPGA)VIinthelabview\examples\CompactRIO\ModuleSpecific\NI9233\NI9233GettingStarteddirectoryforanexampleofreadingfromtheNI9233.Openexample
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.
ConfiguringtheMasterTimebaseSourcefortheNI9233(FPGAInterface)Bydefault,theNI9233moduleusestheinternalOnboardClockasthemastertimebasesource.InasystemwithmultipleNI923xmodules,youcanconfigureoneoftheNI923xmodulesasthemastertimebasesource(master)andconfiguretheotherNI923xmodulestousethatmastertimebasesource(slaves).SharingthesamemastertimebasesourceenablesyoutosynchronizemultipleNI923xmodules.TheNI9233dividesthemastertimebasesourcetoacquiredataatthedatarateyouconfigure.
NoteThecRIO-9151RSeriesExpansionchassisdoesnotsupportsynchronizingmultipleNI9225/9229/923xmodules.
ConfiguringtheOnboardClockastheMasterTimebaseSourceCompletethefollowingstepstoconfiguretheOnboardClockasthemastertimebasesource.
1. ConfiguretheCompactRIOsystem,andaddanNI9233.2. Right-clicktheNI9233intheProjectExplorerwindowand
selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.
3. Select<12.8MHzTimebase>fromtheMasterTimebaseSourcepull-downmenu.
4. ClicktheOKbutton.5. SelectFile»SaveAllintheProjectExplorerwindow.
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.
ConfiguringtheNI9233DataRate(FPGAInterface)YoucanconfigurethedatarateatwhichtheNI9233moduleacquiresandreturnsdataatedittimeusingtheCSeriesModulePropertiesdialogbox.YoucanprogrammaticallychangethedatarateatruntimeusingtheFPGAI/OPropertyNode.TheexecutionofanI/OPropertyNodethatisconfiguredwithaDataRatepropertyoverwritesthevalueyouconfiguredintheCSeriesModulePropertiesdialogbox.
ConfiguringtheDataRateUsingtheCSeriesModulePropertiesDialogBoxCompletethefollowingstepstoconfigurethedataratefortheNI9233usingtheCSeriesModulePropertiesdialogbox.
1. ConfiguretheCompactRIOsystem,andaddanNI9233.2. Right-clicktheNI9233intheProjectExplorerwindowand
selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.
3. SelecttheratefromtheDataRatepull-downmenu.4. ClicktheOKbutton.5. SelectFile»SaveAllintheProjectExplorerwindow.
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.
NI9234(FPGAInterface)CompactRIO4-Channel,±5V,51.2KS/s,24-BitSoftwareSelectableIEPEandAC/DCAnalogInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
NoteYoucansynchronizeanNI9234withotherNI9225/9229/923xmodules.
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
GettingStarteddirectoryforanexampleofusingtheStartandStopchannels.
Openexample
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
MethodsThisdevicedoesnotsupportanymethods.
I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionInputConfiguration
Setstheinputconfigurationofthecorrespondingchanneltooneofthreemodes:ACcoupled,DCcoupled,orIEPEACcoupled.
LSBWeight ReturnstheLSBweightinpV/LSBforthechannel.UsethisvaluetoconvertandcalibrateNI9234dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
Offset ReturnsthecalibrationoffsetinnVforthechannel.UsethisvaluetoconvertandcalibrateNI9234dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionDataRate SetstherateatwhichtheNI9234acquiresdata.ModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopYoucanusetheOnboardClockchannelinthesingle-cycleTimedLoop.YoucannotusetheotherchannelsontheNI9234withthesingle-cycleTimedLoop.RefertotheUnderstandingLoopTimingfortheNI9225/9229/923xtopicforinformationaboutlooptimingforthismodule.
HardwareDocumentationRefertotheNI9234OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
AccessingTEDSInformationfromtheNI9234(FPGAInterface)YoucanaccessTransducerElectronicDataSheet(TEDS)informationfromTEDS-compatibletransducersconnectedtothechannelsofanNI9234.YoumustenableTEDSsupportforthemodulebeforeyoucanreadTEDSinformation.YoucanaccessTEDSinformationonlyfromthehostVI.
EnablingTEDSSupportfortheNI9234CompletethefollowingstepstoenableTEDSsupportfortheNI9234.
1. ConfiguretheCompactRIOsystem,andaddanNI9234.2. Right-clicktheNI9234intheProjectExplorerwindowand
selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.
3. PlaceacheckmarkintheEnableTEDSSupportcheckbox.4. ClicktheOKbutton.
TheFPGAVImusthaveanFPGAI/ONodethatcommunicateswiththeNI9234.Ifitdoesnot,theLabVIEWFPGACompileServeroptimizestheVIwhenyoucompileit,andthehostVIcannotcommunicatewiththeNI9234.
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
theTEDSdataininputoftheTEDS_DatatoTableVI.WhenyouruntheVI,LabVIEWreadstheTEDSfromthesensor,andtheLabVIEWTEDSToolkitparsestheTEDSinformationandoutputsitasatable.
NoteYoumustenableerrorhandlingintheFPGAVItoreceiveconsistenterrormessagesinthehostVI.
RefertotheNI9234GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9234\NI9234GettingStarteddirectoryforanexampleofaccessingTEDSinformation.Openexample
AcquiringDatafromanNI9234(FPGAInterface)TheNI9234hasfouranaloginputchannelsthataresampledsimultaneouslyatthedatarateforwhichyouhaveconfiguredthemodule.UsetheStartandStopchannelsoftheNI9234toputthemoduleinandoutofacquisitionmode.Inacquisitionmode,theNI9234canonlyacquiredata.YoucanusetheFPGAI/ONodetoreadthedatafromthemodule.YoucannotperformotheroperationswiththeNI9234,suchasaccessingpropertiesorTEDSinformation,whilethemoduleisinacquisitionmode.
NoteYoumustcreateFPGAI/OitemsfortheNI9234beforeyoucanconfiguretheitemsusingtheFPGAI/ONode.
PuttingtheModuleinAcquisitionModeConfigureanFPGAI/ONodewiththeStartchanneloftheNI9234.WireaBooleanconstantsettoTRUEtotheStartinputoftheFPGAI/ONodetosendasynchronizationpulsetothemodule.Themodulestartsacquiringdataatthedatarateyouconfigure.
ReadingDatafromtheModuleWhenthemodulestartsacquiringdata,youcanuseanFPGAI/ONodetoreaddatafromthemodule.YoucanconnecttheAIoutputoftheFPGAI/ONodetovarioustypesoffunctions,includinganFPGAMemoryfunctionoranFPGAFIFOfunction.Ifyoureadfrommultiplechannelsonthemodule,placethechannelsinthesameFPGAI/ONodetoensurethattheVIreadsthedatasynchronously.BecausetheNI9234internallyacquiresdataataspecifiedrate,theFPGAI/ONodedoesnotreturndatauntilnewdatahasbeenacquiredbythemodule.IftheNI9234didnotstartacquiringdataorstopsacquiringdatawhileanFPGAI/ONodeiswaitingfordatafromthemodule,theFPGAI/ONodereturnsatimeouterror.
ExitingAcquisitionModeConfigureanFPGAI/ONodewiththeStopchanneloftheNI9234.WriteaTRUEtotheStopinput.ThemoduleisnolongerinacquisitionmodeandnowyoucanaccessNI9234propertiesandTEDSinformation.
ExampleRefertotheNI9234GettingStarted(FPGA)VIinthelabview\examples\CompactRIO\ModuleSpecific\NI9234\NI9234GettingStarteddirectoryforanexampleofreadingfromtheNI9234.Openexample
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
foreachchannel.InputConfiguration—Setstheinputconfigurationfortheselectedchannel(s)tooneofthreemodes:ACcoupled,DCcoupled,orIEPEACcoupled.
ConfiguringtheMasterTimebaseSourcefortheNI9234(FPGAInterface)Bydefault,theNI9234moduleusestheinternalOnboardClockasthemastertimebasesource.InasystemwithmultipleNI923xmodules,youcanconfigureoneoftheNI923xmodulesasthemastertimebasesource(master)andconfiguretheotherNI923xmodulestousethatmastertimebasesource(slaves).SharingthesamemastertimebasesourceenablesyoutosynchronizemultipleNI923xmodules.TheNI9234dividesthemastertimebasesourcetoacquiredataatthedatarateyouconfigure.
NoteThecRIO-9151RSeriesExpansionchassisdoesnotsupportsynchronizingmultipleNI9225/9229/923xmodules.
ConfiguringtheOnboardClockastheMasterTimebaseSourceCompletethefollowingstepstoconfiguretheOnboardClockasthemastertimebasesource.
1. ConfiguretheCompactRIOsystem,andaddanNI9234.2. Right-clicktheNI9234intheProjectExplorerwindowand
selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.
3. Select<OnboardClock>fromtheMasterTimebaseSourcepull-downmenu.
4. ClicktheOKbutton.5. SelectFile»SaveAllintheProjectExplorerwindow.
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.
ConfiguringtheNI9234ChannelInputModes(FPGAInterface)YoucanconfiguretheinputmodeforeachchanneloftheNI9234atedittimeusingtheCSeriesModulePropertiesdialogbox.YoucanprogrammaticallychangetheinputmodeforeachchannelatruntimeusingtheFPGAI/OPropertyNode.TheexecutionofanFPGAI/OPropertyNodethatisconfiguredwithanInputConfigurationpropertyoverwritesthevalueyouconfiguredintheCSeriesModulePropertiesdialogboxforthecorrespondingchannel.
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.
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.
ConfiguringtheNI9234DataRate(FPGAInterface)YoucanconfigurethedatarateatwhichtheNI9234moduleacquiresandreturnsdataatedittimeusingtheCSeriesModulePropertiesdialogbox.YoucanprogrammaticallychangethedatarateatruntimeusingtheFPGAI/OPropertyNode.TheexecutionofanI/OPropertyNodethatisconfiguredwithaDataRatepropertyoverwritesthevalueyouconfiguredintheCSeriesModulePropertiesdialogbox.
ConfiguringtheDataRateUsingtheCSeriesModulePropertiesDialogBoxCompletethefollowingstepstoconfigurethedataratefortheNI9234.
1. ConfiguretheCompactRIOsystem,andaddanNI9234.2. Right-clicktheNI9234intheProjectExplorerwindowand
selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.
3. SelecttheratefromtheDataRatepull-downmenu.4. ClicktheOKbutton.5. SelectFile»SaveAllintheProjectExplorerwindow.
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.
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
changethemastertimebasesource.Therefore,youmightneedtodeleteandrecreatecontrolsorconstantsforanyDataRatepropertyontheblockdiagramafterchangingthemastertimebasesource.RefertotheNI9xxxOperatingInstructionsandSpecificationsforthemoduleformoreinformationaboutunderstandingdatarates.Thelatestversionsoftheoperatinginstructionsareonlineatni.com/manuals.
NI9235(FPGAInterface)CompactRIO8-Channel,24-BitQuarter-BridgeAnalogInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
NoteYoucansynchronizeanNI9235modulewithotherNI9225/9229/923xmodules.
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.
Openexample
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
MethodsThisdevicedoesnotsupportanymethods.
I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionLSBWeight
ReturnstheLSBweightinunitsof100fV/VperLSBforthechannel.100fVisequalto10-13volts.UsethisvaluetoconvertandcalibrateNI9235dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
Offset Returnsthecalibrationoffsetinunitsof100nV/Vforthechannel.UsethisvaluetoconvertandcalibrateNI9235dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
ShuntCalEnable
Controlstheshuntcalibrationswitchforeachchannel.
RefertotheNI9235GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9235\NI9235GettingStarteddirectoryforanexampleofusingtheShuntCalEnableproperty.
Openexample
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionDataRate SetstherateatwhichtheNI9235acquiresdata.ModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopYoucanusetheOnboardClockchannelinthesingle-cycleTimedLoop.YoucannotusetheotherchannelsontheNI9235withthesingle-cycleTimedLoop.RefertotheUnderstandingLoopTimingfortheNI9225/9229/923xtopicforinformationaboutlooptimingforthismodule.
HardwareDocumentationRefertotheNI9235/9236OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.Theoperatinginstructionsshipwiththemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
AcquiringDatafromanNI9235/9236(FPGAInterface)TheNI9235orNI9236haseightanaloginputchannelsthataresampledsimultaneouslyatthedatarateforwhichyouhaveconfiguredthemodule.UsetheStartandStopchannelsoftheNI9235/9236toputthemoduleinandoutofacquisitionmode.Inacquisitionmode,theNI9235/9236canonlyacquiredata.YoucanusetheFPGAI/ONodetoreadthedatafromthemodule.YoucannotperformotheroperationswiththeNI9235/9236,suchasaccessingproperties,whilethemoduleisinacquisitionmode.
NoteYoumustcreateFPGAI/OitemsfortheNI9235/9236beforeyoucanconfiguretheitemsusingtheFPGAI/ONode.
PuttingtheModuleinAcquisitionModeConfigureanFPGAI/ONodewiththeStartchanneloftheNI9235/9236.WireaBooleanconstantsettoTRUEtotheStartinputoftheFPGAI/ONodetosendasynchronizationpulsetothemodule.Themodulestartsacquiringdataatthedatarateyouconfigure.
ReadingDatafromtheModuleWhenthemodulestartsacquiringdata,youcanuseanFPGAI/ONodetoreaddatafromthemodule.YoucanconnecttheAIoutputoftheFPGAI/ONodetovarioustypesoffunctions,includinganFPGAMemoryfunctionoranFPGAFIFOfunction.Ifyoureadfrommultiplechannelsonthemodule,placethechannelsinthesameFPGAI/ONodetoensurethattheVIreadsthedatasynchronously.BecausetheNI9235/9236internallyacquiresdataataspecifiedrate,theFPGAI/ONodedoesnotreturndatauntilnewdatahasbeenacquiredbythemodule.IftheNI9235/9236didnotstartacquiringdataorstopsacquiringdatawhileanFPGAI/ONodeiswaitingfordatafromthemodule,theFPGAI/ONodereturnsatimeouterror.
ExitingAcquisitionModeConfigureanFPGAI/ONodewiththeStopchanneloftheNI9235/9236.WriteaTRUEtotheStopinput.ThemoduleisnolongerinacquisitionmodeandnowyoucanaccessNI9235/9236properties.
ExampleRefertotheNI9235GettingStarted(FPGA)VIinthelabview\examples\CompactRIO\ModuleSpecific\NI9235\NI9235GettingStarteddirectoryforanexampleofreadingfromtheNI9235.OpenNI9235exampleRefertotheNI9236GettingStarted(FPGA)VIinthelabview\examples\CompactRIO\ModuleSpecific\NI9236\NI9236GettingStarteddirectoryforanexampleofreadingfromtheNI9236.OpenNI9236example
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.
ConfiguringtheMasterTimebaseSourcefortheNI9235/9236(FPGAInterface)Bydefault,theNI9235orNI9236moduleusestheinternalOnboardClockasthemastertimebasesource.InasystemwithmultipleNI923xmodules,youcanconfigureoneoftheNI923xmodulesasthemastertimebasesource(master)andconfiguretheotherNI923xmodulestousethatmastertimebasesource(slaves).SharingthesamemastertimebasesourceenablesyoutosynchronizemultipleNI923xmodules.TheNI9235/9236dividesthemastertimebasesourcetoacquiredataatthedatarateyouconfigure.
NoteThecRIO-9151RSeriesExpansionchassisdoesnotsupportsynchronizingmultipleNI9225/9229/923xmodules.
ConfiguringtheOnboardClockastheMasterTimebaseSourceCompletethefollowingstepstoconfiguretheOnboardClockasthemastertimebasesource.
1. ConfiguretheCompactRIOsystem,andaddanNI9235/9236.2. Right-clicktheNI9235/9236intheProjectExplorerwindowand
selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.
3. Select<OnboardClock>fromtheMasterTimebaseSourcepull-downmenu.
4. ClicktheOKbutton.5. SelectFile»SaveAllintheProjectExplorerwindow.
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.
ConfiguringtheNI9235/9236DataRate(FPGAInterface)YoucanconfigurethedatarateatwhichtheNI9235orNI9236moduleacquiresandreturnsdataatedittimeusingtheCSeriesModulePropertiesdialogbox.YoucanprogrammaticallychangethedatarateatruntimeusingtheFPGAI/OPropertyNode.TheexecutionofanI/OPropertyNodethatisconfiguredwithaDataRatepropertyoverwritesthevalueyouconfiguredintheCSeriesModulePropertiesdialogbox.
ConfiguringtheDataRateUsingtheCSeriesModulePropertiesDialogBoxCompletethefollowingstepstoconfigurethedataratefortheNI9235/9236usingtheCSeriesModulePropertiesdialogbox.
1. ConfiguretheCompactRIOsystem,andaddanNI9235/9236.2. Right-clicktheNI9235/9236intheProjectExplorerwindowand
selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.
3. SelecttheratefromtheDataRatepull-downmenu.4. ClicktheOKbutton.5. SelectFile»SaveAllintheProjectExplorerwindow.
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.
NI9236(FPGAInterface)CompactRIO8-Channel,24-BitQuarter-BridgeAnalogInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
NoteYoucansynchronizeanNI9236modulewithotherNI9225/9229/923xmodules.
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.
Openexample
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
MethodsThisdevicedoesnotsupportanymethods.
I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionLSBWeight
ReturnstheLSBweightinunitsof100fV/VperLSBforthechannel.100fVisequalto10-13volts.UsethisvaluetoconvertandcalibrateNI9236dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
Offset Returnsthecalibrationoffsetinunitsof100nV/Vforthechannel.UsethisvaluetoconvertandcalibrateNI9236dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
ShuntCalEnable
Controlstheshuntcalibrationswitchforeachchannel.
RefertotheNI9236GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9236\NI9236GettingStarteddirectoryforanexampleofusingtheShuntCalEnableproperty.
Openexample
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionDataRate SetstherateatwhichtheNI9236acquiresdata.ModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopYoucanusetheOnboardClockchannelinthesingle-cycleTimedLoop.YoucannotusetheotherchannelsontheNI9236withthesingle-cycleTimedLoop.RefertotheUnderstandingLoopTimingfortheNI9225/9229/923xtopicforinformationaboutlooptimingforthismodule.
HardwareDocumentationRefertotheNI9235/9236OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.Theoperatinginstructionsshipwiththemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
NI9237(FPGAInterface)CompactRIO4-Channel,24-BitHalf/Full-BridgeAnalogInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
NoteYoucansynchronizeanNI9237modulewithotherNI9225/9229/923xmodules.
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.
Openexample
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
MethodsThisdevicedoesnotsupportanymethods.
I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionHalf-BridgeEnable
Controlsthehalf-bridgecompletionoptionforeachchannel.
LSBWeight
ReturnstheLSBweightinunitsof100fV/VperLSBforthechannel.100fVisequalto10-13volts.UsethisvaluetoconvertandcalibrateNI9237dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
Offset Returnsthecalibrationoffsetinunitsof10nV/LSBforthechannel.UsethisvaluetoconvertandcalibrateNI9237dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
OffsetCalEnable
Enablesoffsetcalibration.Thisdisconnectsbothsignalinputpinsandforcesthechannelinputstozero.
ShuntCalEnable
Controlstheshuntcalibrationswitchforeachchannel.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionDataRate SetstherateatwhichtheNI9237acquiresdata.ExcitationVoltage
Setstheexcitationvoltagelevel.Allchannelssharethesameexcitationvoltage.
ModuleID ReturnsthemoduleID.SerialNumber
Returnstheuniqueserialnumberofthemodule.
VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopYoucanusetheOnboardClockchannelinthesingle-cycleTimedLoop.YoucannotusetheotherchannelsontheNI9237withthesingle-cycleTimedLoop.RefertotheUnderstandingLoopTimingfortheNI9225/9229/923xtopicforinformationaboutlooptimingforthismodule.
HardwareDocumentationRefertotheNI9237OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
AccessingTEDSInformationfromtheNI9237(FPGAInterface)YoucanaccessTransducerElectronicDataSheet(TEDS)informationfromTEDS-compatibletransducersconnectedtothechannelsofanNI9237.YoumustenableTEDSsupportforthemodulebeforeyoucanreadTEDSinformation.YoucanaccessTEDSinformationonlyfromthehostVI.
EnablingTEDSSupportfortheNI9237CompletethefollowingstepstoenableTEDSsupportfortheNI9237.
1. ConfiguretheCompactRIOsystem,andaddanNI9237.2. Right-clicktheNI9237intheProjectExplorerwindowand
selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.
3. PlaceacheckmarkintheEnableTEDSSupportcheckbox.4. ClicktheOKbutton.
TheFPGAVImusthaveanFPGAI/ONodeoranFPGAI/OPropertyNodethatcommunicateswiththeNI9237.Ifitdoesnot,theLabVIEWFPGACompileServeroptimizestheVIwhenyoucompileit,andthehostVIcannotcommunicatewiththeNI9237.
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
theTEDSdataininputoftheTEDS_DatatoTableVI.WhenyouruntheVI,LabVIEWreadstheTEDSfromthesensor,andtheLabVIEWTEDSToolkitparsestheTEDSinformationandoutputsitasatable.
NoteYoumustenableerrorhandlingintheFPGAVItoreceiveconsistenterrormessagesinthehostVI.
RefertotheNI9237GettingStartedVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9237\NI9237GettingStarteddirectoryforanexampleofaccessingTEDSinformation.Openexample
AcquiringDatafromanNI9237(FPGAInterface)TheNI9237hasfouranaloginputchannelsthataresampledsimultaneouslyatthedatarateforwhichyouhaveconfiguredthemodule.UsetheStartandStopchannelsoftheNI9237toputthemoduleinandoutofacquisitionmode.Inacquisitionmode,theNI9237canonlyacquiredata.YoucanusetheFPGAI/ONodetoreadthedatafromthemodule.YoucannotperformotheroperationswiththeNI9237,suchasaccessingpropertiesorTEDSinformation,whilethemoduleisinacquisitionmode.
NoteYoumustcreateFPGAI/OitemsfortheNI9237beforeyoucanconfiguretheitemsusingtheFPGAI/ONode.
PuttingtheModuleinAcquisitionModeConfigureanFPGAI/ONodewiththeStartchanneloftheNI9237.WireaBooleanconstantsettoTRUEtotheStartinputoftheFPGAI/ONodetosendasynchronizationpulsetothemodule.Themodulestartsacquiringdataatthedatarateyouconfigure.
ReadingDatafromtheModuleWhenthemodulestartsacquiringdata,youcanuseanFPGAI/ONodetoreaddatafromthemodule.YoucanconnecttheAIoutputoftheFPGAI/ONodetovarioustypesoffunctions,includinganFPGAMemoryfunctionoranFPGAFIFOfunction.Ifyoureadfrommultiplechannelsonthemodule,placethechannelsinthesameFPGAI/ONodetoensurethattheVIreadsthedatasynchronously.BecausetheNI9237internallyacquiresdataataspecifiedrate,theFPGAI/ONodedoesnotreturndatauntilnewdatahasbeenacquiredbythemodule.IftheNI9237didnotstartacquiringdataorstopsacquiringdatawhileanFPGAI/ONodeiswaitingfordatafromthemodule,theFPGAI/ONodereturnsatimeouterror.
ExitingAcquisitionModeConfigureanFPGAI/ONodewiththeStopchanneloftheNI9237.WriteaTRUEtotheStopinput.ThemoduleisnolongerinacquisitionmodeandnowyoucanaccessNI9237propertiesandTEDSinformation.
ExampleRefertotheNI9237GettingStarted(FPGA)VIinthelabview\examples\CompactRIO\ModuleSpecific\NI9237\NI9237GettingStarteddirectoryforanexampleofreadingfromtheNI9237.Openexample
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
completionforindividualchannels.
ConfiguringtheMasterTimebaseSourcefortheNI9237(FPGAInterface)Bydefault,theNI9237moduleusestheinternalOnboardClockasthemastertimebasesource.InasystemwithmultipleNI923xmodules,youcanconfigureoneoftheNI923xmodulesasthemastertimebasesource(master)andconfiguretheotherNI923xmodulestousethatmastertimebasesource(slaves).SharingthesamemastertimebasesourceenablesyoutosynchronizemultipleNI923xmodules.TheNI9237dividesthemastertimebasesourcetoacquiredataatthedatarateyouconfigure.
NoteThecRIO-9151RSeriesExpansionchassisdoesnotsupportsynchronizingmultipleNI9225/9229/923xmodules.
ConfiguringtheOnboardClockastheMasterTimebaseSourceCompletethefollowingstepstoconfiguretheOnboardClockasthemastertimebasesource.
1. ConfiguretheCompactRIOsystem,andaddanNI9237.2. Right-clicktheNI9237intheProjectExplorerwindowand
selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.
3. Select<OnboardClock>fromtheMasterTimebaseSourcepull-downmenu.
4. ClicktheOKbutton.5. SelectFile»SaveAllintheProjectExplorerwindow.
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.
ConfiguringtheNI9237DataRate(FPGAInterface)YoucanconfigurethedatarateatwhichtheNI9237moduleacquiresandreturnsdataatedittimeusingtheCSeriesModulePropertiesdialogbox.YoucanprogrammaticallychangethedatarateatruntimeusingtheFPGAI/OPropertyNode.TheexecutionofanI/OPropertyNodethatisconfiguredwithaDataRatepropertyoverwritesthevalueyouconfiguredintheCSeriesModulePropertiesdialogbox.
ConfiguringtheDataRateUsingtheCSeriesModulePropertiesDialogBoxCompletethefollowingstepstoconfigurethedataratefortheNI9237usingtheCSeriesModulePropertiesdialogbox.
1. ConfiguretheCompactRIOsystem,andaddanNI9237.2. Right-clicktheNI9237intheProjectExplorerwindowand
selectPropertiestodisplaytheCSeriesModulePropertiesdialogbox.
3. SelecttheratefromtheDataRatepull-downmenu.4. ClicktheOKbutton.5. SelectFile»SaveAllintheProjectExplorerwindow.
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.
NI9239(FPGAInterface)CompactRIO4-Channel,±10V,24-BitSimultaneousAnalogInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
NoteYoucansimultaneouslyreadfromorwritetomultiplechannelsontheNI9239.YoualsocansynchronizeanNI9239modulewithotherNI9225/9229/923xmodules.
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
Stopchannels.
Openexample
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
MethodsThisdevicedoesnotsupportanymethods.
I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionLSBWeight
ReturnstheLSBweightinpV/LSBforthechannel.UsethisvaluetoconvertandcalibrateNI9239dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
Offset ReturnsthecalibrationoffsetinnVforthechannel.UsethisvaluetoconvertandcalibrateNI9239dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionDataRate SetstherateatwhichtheNI9239acquiresdata.ModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopYoucanusetheOnboardClockchannelinthesingle-cycleTimedLoop.YoucannotusetheotherchannelsontheNI9239withthesingle-cycleTimedLoop.RefertotheUnderstandingLoopTimingfortheNI9225/9229/923xtopicforinformationaboutlooptimingforthismodule.
HardwareDocumentationRefertotheNI9229/9239OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
NI9263(FPGAInterface)CompactRIO4-Channel,±10V,16-BitSimultaneousAnalogOutputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforwriting,withthisdevice.
NoteYoucansimultaneouslywritetomultiplechannelsontheNI9263.
TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.
Terminal DescriptionAOx Analogoutputchannelx,wherexisthenumberofthe
channel.TheNI9263hasAOchannels0to3.
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
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
longtheWaitforUpdatemethodwaitsfortheUpdatemethodtoupdatetheoutputchannels.Avalueof0causestheWaitforUpdatemethodtotimeoutimmediately,anegativevaluecausestheWaitforUpdatemethodtowaitindefinitely,andapositivevaluecausestheWaitforUpdatemethodtowaitforthatnumberofclockticksbeforetimingout.
TimeoutOccurred? ReturnsaBooleanvalue.AvalueofTRUEindicatesthatatimeoutoccurred.
WriteData Channel Specifiesthechanneltowhichyouwanttowritedata.
Data Specifiesthedatayouwanttowritetothechannel.
I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionLSBWeight
ReturnstheLSBweightinnV/LSBforthechannel.UsethisvaluetoconvertNI9263dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
Offset ReturnsthecalibrationoffsetinnVforthechannel.UsethisvaluetoconvertNI9263dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.
HardwareDocumentationRefertotheNI9263OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
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.
ConvertingVoltageValuestoBinaryValuesfortheNI9263(FPGAInterface)SettheCalibrationModetoCalibratedintheCSeriesModulePropertiesdialogboxfortheNI9263ifyouwanttheFPGAI/ONodetoacceptfixed-pointdatainunitsofvoltswhenwritingtothemodule.IfyousettheCalibrationModetoRaw,theFPGAI/ONodeacceptsonlybinaryvalueswhenwritingtothemodule.Youmustconvertoutputvoltagevaluestobinaryvaluesbeforeyouwritethemtothemodule.YoumustconvertthesevaluesinthehostVI.
UsingaVItoConvertVoltagetoBinaryRefertotheNominaltoBinaryVIinthelabview\examples\CompactRIO\BasicIO\AnalogRawHostCalibration\AORawHostCalibration\AORawHostCalibration-cRIO.lvprojforanexampleofconvertinganalogoutputvaluestobinaryvalues.YoucanusetheNominaltoBinaryVIasasubVIinthehostVI.Openexample
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.
NI9264(FPGAInterface)CompactRIO16-Channel,±10V,16-BitSimultaneousAnalogVoltageOutputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforwriting,withthisdevice.
NoteYoucansimultaneouslywritetomultiplechannelsontheNI9264.
TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.
Terminal DescriptionAOx Analogoutputchannelx,wherexisthenumberofthe
channel.TheNI9264hasAOchannels0to15.
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
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
longtheWaitforUpdatemethodwaitsfortheUpdatemethodtoupdatetheoutputchannels.Avalueof0causestheWaitforUpdatemethodtotimeoutimmediately,anegativevaluecausestheWaitforUpdatemethodtowaitindefinitely,andapositivevaluecausestheWaitforUpdatemethodtowaitforthatnumberofclockticksbeforetimingout.
TimeoutOccurred? ReturnsaBooleanvalue.AvalueofTRUEindicatesthatatimeoutoccurred.
WriteData Channel Specifiesthechanneltowhichyouwanttowritedata.
Data Specifiesthedatayouwanttowritetothechannel.
I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionLSBWeight
ReturnstheLSBweightinnV/LSBforthechannel.UsethisvaluetoconvertNI9264dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
Offset ReturnsthecalibrationoffsetinnVforthechannel.UsethisvaluetoconvertNI9264dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.
HardwareDocumentationRefertotheNI9264OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
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.
ConvertingVoltageValuestoBinaryValuesfortheNI9264(FPGAInterface)SettheCalibrationModetoCalibratedintheCSeriesModulePropertiesdialogboxfortheNI9264ifyouwanttheFPGAI/ONodetoacceptfixed-pointdatainunitsofvoltswhenwritingtothemodule.IfyousettheCalibrationModetoRaw,theFPGAI/ONodeacceptsonlybinaryvalueswhenwritingtothemodule.Youmustconvertoutputvoltagevaluestobinaryvaluesbeforeyouwritethemtothemodule.YoumustconvertthesevaluesinthehostVI.
UsingaVItoConvertVoltagetoBinaryRefertotheNominaltoBinaryVIinthelabview\examples\CompactRIO\BasicIO\AnalogRawHostCalibration\AORawHostCalibration\AORawHostCalibration-cRIO.lvprojforanexampleofconvertinganalogoutputvaluestobinaryvalues.YoucanusetheNominaltoBinaryVIasasubVIinthehostVI.Openexample
UsinganEquationtoConvertVoltagetoBinaryYoucanusethefollowingequationinthehostVItoconverttheanalogoutputvaluestobinaryvalues:
BinaryValue=(VoltageValue×109–Offset)÷LSBWeight,where BinaryValueisthevalueyouwritetotheFPGAI/ONode
VoltageValueisthevoltageinVthatyouwantthechanneltooutputOffsetisthevaluereturnedbytheOffsetpropertyLSBWeightisthevaluereturnedbytheLSBWeightproperty.
NationalInstrumentsrecommendsusingcalibratedvaluesforanalogoutput.Toconvertcalibratedvoltagevalues,usetheFPGAI/OPropertyNodetoreadtheLSBWeightandOffsetproperties.IfyoudonotwanttoreadtheLSBWeightandOffsetvaluesfromthemodule,youcanconvertuncalibratedvoltagevaluesbyusingthefollowingvaluesforOffsetandLSBWeight:Offset=0
LSBWeight=21V÷2DACResolution×109
where DACResolutionistheDACresolutionvalueintheNI9264OperatingInstructionsandSpecifications.
NI9265(FPGAInterface)CompactRIO4-Channel,0–20mA,16-BitSimultaneousAnalogCurrentOutputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforwriting,withthisdevice.
NoteYoucansimultaneouslywritetomultiplechannelsontheNI9265.
TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.
Terminal DescriptionAOx Analogoutputchannelx,wherexisthenumberofthe
channel.TheNI9265hasAOchannels0to3.
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
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
configuredtooutputanonzerocurrentvalue.
Update Overrun ReturnsaBooleanvalue.AvalueofTRUEindicatesanoverrunwarning.TheoverrunwarningmeansthattheUpdatemethodistryingtorunwhiletheCheckOutputStatusorWriteDatamethodisrunning,typicallyinadifferentloop.TheUpdatemethodcannotrunwhileeithertheCheckOutputStatusorWriteDatamethodisrunning.IftheUpdatemethodisrunningatthesametimeastheWriteDatamethod,theneithertheWriteDatamethodiswritingdatatothemoduletooquicklyortheUpdatemethodisrunningtooslowly.
Underflow ReturnsaBooleanvalue.AvalueofTRUEindicatesanunderflowwarning.TheunderflowwarningmeansthattheWriteDatamethodhasnotwrittennewdatatothemodulesincethelasttimetheUpdatemethodran.EithertheWriteDatamethodiswritingdatatothemoduletooslowlyortheUpdatemethodisrunningtooquickly.
WaitforUpdate Timeout(Ticks) SpecifiesinFPGAclocktickshowlongtheWaitforUpdatemethodwaitsfortheUpdatemethodtoupdatetheoutputchannels.Avalueof0causestheWaitforUpdatemethodtotimeoutimmediately,anegativevaluecausestheWaitforUpdatemethodtowaitindefinitely,
andapositivevaluecausestheWaitforUpdatemethodtowaitforthatnumberofclockticksbeforetimingout.
TimeoutOccurred? ReturnsaBooleanvalue.AvalueofTRUEindicatesthatatimeoutoccurred.
WriteData Channel Specifiesthechanneltowhichyouwanttowritedata.
Data Specifiesthedatayouwanttowritetothechannel.
I/OPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionLSBWeight
ReturnstheLSBweightinpA/LSBforthechannel.UsethisvaluetoconvertNI9265dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
Offset ReturnsthecalibrationoffsetinpAforthechannel.UsethisvaluetoconvertNI9265dataifyousettheCalibrationModetoRawintheCSeriesModulePropertiesdialogbox.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.
HardwareDocumentationRefertotheNI9265OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
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.
ConvertingCurrentValuestoBinaryValuesfortheNI9265(FPGAInterface)SettheCalibrationModetoCalibratedintheCSeriesModulePropertiesdialogboxfortheNI9265ifyouwanttheFPGAI/ONodetoacceptfixed-pointdatainunitsofampswhenwritingtothemodule.IfyousettheCalibrationModetoRaw,theFPGAI/ONodeacceptsonlybinaryvalueswhenwritingtothemodule.Youmustconvertoutputcurrentvaluestobinaryvaluesbeforeyouwritethemtothemodule.YoumustconvertthesevaluesinthehostVI.
UsingaVItoConvertCurrenttoBinaryRefertotheNominaltoBinaryVIinthelabview\examples\CompactRIO\BasicIO\AnalogRawHostCalibration\AORawHostCalibration\AORawHostCalibration-cRIO.lvprojforanexampleofconvertinganalogoutputvaluestobinaryvalues.YoucanusetheNominaltoBinaryVIasasubVIinthehostVI.Openexample
UsinganEquationtoConvertCurrenttoBinaryYoucanusethefollowingequationinthehostVItoconverttheanalogoutputvaluestobinaryvalues:
BinaryValue=(CurrentValue×109–Offset)÷LSBWeightwhere BinaryValueisthevalueyouwritetotheFPGAI/ONode
CurrentValueisthecurrentinmAthatyouwantthechanneltooutputOffsetisthevaluereturnedbytheOffsetpropertyLSBWeightisthevaluereturnedbytheLSBWeightproperty.
NationalInstrumentsrecommendsusingcalibratedvaluesforanalogoutput.Toconvertcalibratedcurrentvalues,usetheFPGAI/OPropertyNodetoreadtheLSBWeightandOffsetproperties.IfyoudonotwanttoreadtheLSBWeightandOffsetvaluesfromthemodule,youcanconvertuncalibratedcurrentvaluesbyusingthefollowingvaluesforOffsetandLSBWeight:Offset=0
LSBWeight=20.6mA÷2DACResolution×109
where DACResolutionistheDACresolutionvalueintheNI9265OperatingInstructionsandSpecifications.
NI9401(FPGAInterface)CompactRIO8-Channel,TTLDigitalInput/OutputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreadingandwriting,withthisdevice.WhenyouwritetoanNI9401channel,theFPGAI/ONodedoesnotautomaticallyenablethechannelforoutput.
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.
ArbitrationYoucanconfigurethearbitrationsettingsfordigitaloutputchannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.DigitalinputchannelsofthisdevicesupportonlytheNeverArbitrateoptionforarbitration.Youcannotconfigurearbitrationsettingsforthedigitalinputchannelsofthisdevice.
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
waitsforthenextrisingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.
ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.
Method DescriptionCheckStatus ReturnsaBooleanvaluethatindicateswhetherthe
moduleisready.NoteDuringthefirst2secondsafteryouresettheFPGAVI,theerrorterminalsonthismethodmaynotcorrectlyreportcertaintypesoferrors.
SetLineDirection
Setsthedirectionofoneporttoinputoroutput.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedConfigurationdialogbox.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.Whenthemoduleiswithinasingle-cycleTimedLoop,itmustbereadytoperformdigitalI/ObeforealoopcontainingdigitalI/Ostarts.PolltheReadyoutputoftheCheckStatusmethodtodeterminewhetherthemoduleisready.Digitalinputoperationsreturninvaliddataifthemoduleisnotready.Themodulealsomightignoreordelaydigitaloutputoperationsifitisnotready.WhilethemoduleisperformingdigitalI/Owithinasingle-cycleTimedLoop,donotperformpropertyreads,usetheSetLineDirectionmethod,orremovethemodulefromthechassis.DoinganyoftheseactionscausesthemoduletobeunabletoperformdigitalI/OandtheReadyoutputoftheCheckStatusmethodtoreturnFALSE.
FPGATargetClockSupportThisdevicesupportsonlytop-levelFPGAtargetclockratesandsingle-cycleTimedLoopclockratesthataremultiplesof40MHz,suchas40MHz,80Mhz,120MHz,andsoon.
HardwareDocumentationRefertotheNI9401OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
CSeriesModulePropertiesDialogBoxfortheNI9401(FPGAInterface)Right-clickanNI9401CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:
Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.InitialLineDirection—Setstheinitiallinedirectionforeachdigitalporttodigitalinputordigitaloutput.Thedefaultisdigitalinput.Advanced—LaunchestheAdvancedConfigurationdialogbox.
ConfiguringtheInitialLineDirectionfortheNI9401(FPGAInterface)EachdigitalportontheNI9401isinitiallyconfiguredasadigitalinput.YoucanconfiguretheinitiallinedirectionforeachportontheNI9401atedittimeusingtheCSeriesModulePropertiesdialogbox.YoucanprogrammaticallychangethelinedirectionforeachportatruntimeusingtheFPGAI/OMethodNode.TheexecutionofanI/OMethodNodethatisconfiguredwithaSetLineDirectionmethodoverwritesthevalueyouconfiguredintheCSeriesModulePropertiesdialogbox.
ConfiguringLineDirectionUsingtheCSeriesModulePropertiesDialogBoxCompletethefollowingstepstoconfigurethelinedirectionofeachdigitalportusingtheCSeriesModulePropertiesdialogbox.
1. ConfiguretheCompactRIOsystem,andaddanNI9401.2. Right-clicktheNI9401intheProjectExplorerwindowand
selectPropertiesfromtheshortcutmenutodisplaytheCSeriesModulePropertiesdialogbox.
3. SelectthedirectionforeachportfromtheInitialLineDirectionpull-downmenus.
4. ClicktheOKbutton.5. SelectFile»SaveAllintheProjectExplorerwindow.
ConfiguringLineDirectionUsingtheFPGAI/OMethodNodeCompletethefollowingstepstoconfigurethelinedirectionofeachdigitalportusingtheFPGAI/OMethodNode.
1. PlaceanFPGAI/OMethodNodeontheblockdiagramandconfigureitfortheNI9401.
2. ClicktheMethodsectionandselecttheSetLineDirectionmethodfromtheshortcutmenu.
3. Right-clickeachdigitalportinputandselectCreate»Controlfromtheshortcutmenu.
4. OnthefrontpaneloftheVI,selectthedirectionforeachportfromthedigitalportpull-downmenus.
NI9402(FPGAInterface)CompactRIO4-Channel,LVTTLDigitalInput/OutputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreadingandwriting,withthisdevice.
TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.
Terminal DescriptionDIOx Digitalinput/outputchannelx,wherexisthenumberofthe
channel.TheNI9402hasDIOchannels0to3.DIO3:0 Digitalportconsistingofchannels0through3.Channel3is
returnedintheMSB,andchannel0isreturnedintheLSB.
ArbitrationYoucanconfigurethearbitrationsettingsfordigitaloutputchannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.DigitalinputchannelsofthisdevicesupportonlytheNeverArbitrateoptionforarbitration.Youcannotconfigurearbitrationsettingsforthedigitalinputchannelsofthisdevice.
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
level.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.
WaitonRisingEdge
PausestheexecutionoftheI/OMethodNodeuntilthenextrisingedgeofthedigitalsignal.TheTimeoutinputspecifiesinFPGAclocktickshowlongtheWaitonRisingEdgemethodwaitsforthenextrisingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.
ModuleMethodUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.
Method DescriptionCheckStatus ReturnsaBooleanvaluethatindicateswhetherthe
moduleisready.NoteDuringthefirst2secondsafteryouresettheFPGAVI,theerrorterminalsonthismethodmaynotcorrectlyreportcertaintypesoferrors.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
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.
FPGATargetClockSupportThisdevicesupportsonlytop-levelFPGAtargetclockratesandsingle-cycleTimedLoopclockratesthataremultiplesof40MHz,suchas40MHz,80Mhz,120MHz,andsoon.
HardwareDocumentationRefertotheNI9402OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.Theoperatinginstructionsshipwiththemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
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.
ConfiguringtheLineDirectionfortheNI9402(FPGAInterface)EachdigitalchannelontheNI9402isinitiallyconfiguredasadigitalinput.YoucanconfiguretheinitiallinedirectionforeachchannelontheNI9402atedittimeusingtheCSeriesModulePropertiesdialogbox.YoucanprogrammaticallychangethelinedirectionforeachchannelatruntimeusingtheFPGAI/OMethodNode.TheexecutionofanI/OMethodNodethatisconfiguredwithaSetOutputEnablemethodoverwritesthevaluesyouconfiguredintheCSeriesModulePropertiesdialogbox.Inaddition,theexecutionofanFPGAI/ONodeconfiguredforoutputautomaticallyconfiguresthelineforoutputandoverwritesthevaluesyouconfiguredintheCSeriesModulePropertiesdialogboxorusingtheSetOutputEnablemethod.
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.
ConfiguringLineDirectionofOneChannelUsingtheFPGAI/OMethodNodeCompletethefollowingstepstosetthelinedirectionofachannelusingtheFPGAI/OMethodNode.
1. CreateFPGAI/OitemsforthechanneloftheNI9402forwhichyouwanttoconfigurethelinedirection.
2. PlaceanFPGAI/OMethodNodeontheblockdiagramandconfigureitforthischannel.
3. ClicktheMethodsectionandselecttheSetOutputEnablemethodfromtheshortcutmenu.
4. Right-clicktheEnableinputandselectCreate»Controlfromtheshortcutmenu.
5. OnthefrontpaneloftheVI,clicktheEnableBooleancontroltosetittoTRUEifyouwanttosetthelinedirectionofthechanneltodigitaloutput.
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
NI9403(FPGAInterface)CompactRIO32-Channel,TTLDigitalInput/OutputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreadingandwriting,withthisdevice.
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.
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyandNeverArbitrateoptionsforarbitration.ThedefaultarbitrationsettingisArbitrateifMultipleRequestorsOnly.IfyouaresurethatthedesignoftheFPGAVIwillneverallowmorethanonedigitalfunctiontoexecuteatthesametime,evenondifferentchannels,youcanplaceacheckmarkintheDisableArbitrationcheckboxontheCSeriesModulePropertiesdialogboxtodisablearbitrationandreducetheamountofFPGAlogicusedbyVIs.IfmorethanonedigitalfunctioncouldexecutesimultaneouslyintheFPGAVI,leavetheboxunchecked.
I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.Thisdevicedoesnotsupportanymodulemethods.
Method DescriptionSetOutputEnable Setsthelinedirectionofthedigitalchannelorport.If
theI/Oitemisadigitalline,EnablerequiresaBooleandatatype.IftheI/Oitemisadigitalport,Enablerequiresanumericdatatype.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.
HardwareDocumentationRefertotheNI9403OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
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.
ConfiguringtheLineDirectionfortheNI9403(FPGAInterface)EachdigitalchannelontheNI9403isinitiallyconfiguredasadigitalinput.YoucanconfiguretheinitiallinedirectionforeachchannelontheNI9403atedittimeusingtheCSeriesModulePropertiesdialogbox.YoucanprogrammaticallychangethelinedirectionforeachchannelatruntimeusingtheFPGAI/OMethodNode.TheexecutionofanI/OMethodNodethatisconfiguredwithaSetOutputEnablemethodoverwritesthevaluesyouconfiguredintheCSeriesModulePropertiesdialogbox.Inaddition,theexecutionofanFPGAI/ONodeconfiguredforoutputautomaticallyconfiguresthelineforoutputandoverwritesthevaluesyouconfiguredintheCSeriesModulePropertiesdialogboxorusingtheSetOutputEnablemethod.
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.
ConfiguringLineDirectionofOneChannelUsingtheFPGAI/OMethodNodeCompletethefollowingstepstosetthelinedirectionofachannelusingtheFPGAI/OMethodNode.
1. CreateFPGAI/OitemsforthechanneloftheNI9403forwhichyouwanttoconfigurethelinedirection.
2. PlaceanFPGAI/OMethodNodeontheblockdiagramandconfigureitforthischannel.
3. ClicktheMethodsectionandselecttheSetOutputEnablemethodfromtheshortcutmenu.
4. Right-clicktheEnableinputandselectCreate»Controlfromtheshortcutmenu.
5. OnthefrontpaneloftheVI,clicktheEnableBooleancontroltosetittoTRUEifyouwanttosetthelinedirectionofthechanneltodigitaloutput.
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
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
NI9411(FPGAInterface)CompactRIO6-Channel,DifferentialorTTLDigitalInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.
Terminal DescriptionDIx Digitalinputchannelx,wherexisthenumberofthechannel.
TheNI9411hasDIchannels0to5.DI5:0 Digitalportconsistingofchannels0through5.Channel5is
returnedinbit5,andchannel0isreturnedinbit0.Bits6and7returnazero.
ArbitrationThisdevicesupportsonlytheNeverArbitrateoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
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
waitsforthenextrisingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.
ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.
Method DescriptionCheckStatus ReturnsaBooleanvaluethatindicateswhetherthe
moduleisready.NoteDuringthefirst2secondsafteryouresettheFPGAVI,theerrorterminalsonthismethodmaynotcorrectlyreportcertaintypesoferrors.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.Whenthemoduleiswithinasingle-cycleTimedLoop,itmustbereadytoperformdigitalinputbeforealoopcontainingdigitalinputstarts.PolltheReadyoutputoftheCheckStatusmethodtodeterminewhetherthemoduleisready.Digitalinputoperationsreturninvaliddataifthemoduleisnotready.Whilethemoduleisperformingdigitalinputwithinasingle-cycleTimedLoop,donotperformpropertyreadsorremovethemodulefromthechassis.DoingeitheroftheseactionscausesthemoduletobeunabletoperformdigitalinputandtheReadyoutputoftheCheckStatusmethodtoreturnFALSE.
FPGATargetClockSupportThisdevicesupportsonlytop-levelFPGAtargetclockratesandsingle-cycleTimedLoopclockratesthataremultiplesof40MHz,suchas40MHz,80Mhz,120MHz,andsoon.
HardwareDocumentationRefertotheNI9411OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
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.
NI9421(FPGAInterface)CompactRIO8-Channel,24V,SinkingDigitalInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.
Terminal DescriptionDIx Digitalinputchannelx,wherexisthenumberofthechannel.
TheNI9421hasDIchannels0to7.DI7:0 Digitalportconsistingofchannels0through7.Channel7is
returnedintheMSB,andchannel0isreturnedintheLSB.
ArbitrationThisdevicesupportsonlytheNeverArbitrateoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
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
waitsforthenextrisingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.
ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.
Method DescriptionCheckStatus ReturnsaBooleanvaluethatindicateswhetherthe
moduleisready.NoteDuringthefirst2secondsafteryouresettheFPGAVI,theerrorterminalsonthismethodmaynotcorrectlyreportcertaintypesoferrors.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.Whenthemoduleiswithinasingle-cycleTimedLoop,itmustbereadytoperformdigitalinputbeforealoopcontainingdigitalinputstarts.PolltheReadyoutputoftheCheckStatusmethodtodeterminewhetherthemoduleisready.Digitalinputoperationsreturninvaliddataifthemoduleisnotready.Whilethemoduleisperformingdigitalinputwithinasingle-cycleTimedLoop,donotperformpropertyreadsorremovethemodulefromthechassis.DoingeitheroftheseactionscausesthemoduletobeunabletoperformdigitalinputandtheReadyoutputoftheCheckStatusmethodtoreturnFALSE.
FPGATargetClockSupportThisdevicesupportsonlytop-levelFPGAtargetclockratesandsingle-cycleTimedLoopclockratesthataremultiplesof40MHz,suchas40MHz,80Mhz,120MHz,andsoon.
HardwareDocumentationRefertotheNI9421/9423OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
NI9422(FPGAInterface)CompactRIO8-Channel,24V,Sinking/SourcingDigitalInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.
Terminal DescriptionDIx Digitalinputchannelx,wherexisthenumberofthechannel.
TheNI9422hasDIchannels0to7.DI7:0 Digitalportconsistingofchannels0through7.Channel7is
returnedintheMSB,andchannel0isreturnedintheLSB.
ArbitrationThisdevicesupportsonlytheNeverArbitrateoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
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
waitsforthenextrisingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.
ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.
Method DescriptionCheckStatus ReturnsaBooleanvaluethatindicateswhetherthe
moduleisready.NoteDuringthefirst2secondsafteryouresettheFPGAVI,theerrorterminalsonthismethodmaynotcorrectlyreportcertaintypesoferrors.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.Whenthemoduleiswithinasingle-cycleTimedLoop,itmustbereadytoperformdigitalinputbeforealoopcontainingdigitalinputstarts.PolltheReadyoutputoftheCheckStatusmethodtodeterminewhetherthemoduleisready.Digitalinputoperationsreturninvaliddataifthemoduleisnotready.Whilethemoduleisperformingdigitalinputwithinasingle-cycleTimedLoop,donotperformpropertyreadsorremovethemodulefromthechassis.DoingeitheroftheseactionscausesthemoduletobeunabletoperformdigitalinputandtheReadyoutputoftheCheckStatusmethodtoreturnFALSE.
FPGATargetClockSupportThisdevicesupportsonlytop-levelFPGAtargetclockratesandsingle-cycleTimedLoopclockratesthataremultiplesof40MHz,suchas40MHz,80Mhz,120MHz,andsoon.
HardwareDocumentationRefertotheNI9422OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
NI9423(FPGAInterface)CompactRIO8-Channel,24V,High-SpeedDigitalInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.
Terminal DescriptionDIx Digitalinputchannelx,wherexisthenumberofthechannel.
TheNI9423hasDIchannels0to7.DI7:0 Digitalportconsistingofchannels0through7.Channel7is
returnedintheMSB,andchannel0isreturnedintheLSB.
ArbitrationThisdevicesupportsonlytheNeverArbitrateoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
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
waitsforthenextrisingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.
ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.
Method DescriptionCheckStatus ReturnsaBooleanvaluethatindicateswhetherthe
moduleisready.NoteDuringthefirst2secondsafteryouresettheFPGAVI,theerrorterminalsonthismethodmaynotcorrectlyreportcertaintypesoferrors.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.Whenthemoduleiswithinasingle-cycleTimedLoop,itmustbereadytoperformdigitalinputbeforealoopcontainingdigitalinputstarts.PolltheReadyoutputoftheCheckStatusmethodtodeterminewhetherthemoduleisready.Digitalinputoperationsreturninvaliddataifthemoduleisnotready.Whilethemoduleisperformingdigitalinputwithinasingle-cycleTimedLoop,donotperformpropertyreadsorremovethemodulefromthechassis.DoingeitheroftheseactionscausesthemoduletobeunabletoperformdigitalinputandtheReadyoutputoftheCheckStatusmethodtoreturnFALSE.
FPGATargetClockSupportThisdevicesupportsonlytop-levelFPGAtargetclockratesandsingle-cycleTimedLoopclockratesthataremultiplesof40MHz,suchas40MHz,80Mhz,120MHz,andsoon.
HardwareDocumentationRefertotheNI9421/9423OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
NI9425(FPGAInterface)CompactRIO32-Channel,24V,SinkingDigitalInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
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.
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
MethodsThisdevicedoesnotsupportanymethods.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.
HardwareDocumentationRefertotheNI9425OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
NI9426(FPGAInterface)CompactRIO32-Channel,24V,SourcingDigitalInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
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.
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
MethodsThisdevicedoesnotsupportanymethods.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.
HardwareDocumentationRefertotheNI9426OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
NI9435(FPGAInterface)CompactRIO4-Channel,AC/DCUniversalDigitalInputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreading,withthisdevice.
TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.
Terminal DescriptionDIx Digitalinputchannelx,wherexisthenumberofthechannel.
TheNI9435hasDIchannels0to3.DI3:0 Digitalportconsistingofchannels0through3.Channel3is
returnedinbit3,andchannel0isreturnedinbit0.Bits4through7returnazero.
ArbitrationThisdevicesupportsonlytheNeverArbitrateoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
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
waitsforthenextrisingedge.Avalueof0causesthemethodtotimeoutimmediately,anegativevaluecausesthemethodtowaitindefinitely,andapositivevaluecausesthemethodtowaitforthatnumberofclockticksbeforetimingout.
ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.
Method DescriptionCheckStatus ReturnsaBooleanvaluethatindicateswhetherthe
moduleisready.NoteDuringthefirst2secondsafteryouresettheFPGAVI,theerrorterminalsonthismethodmaynotcorrectlyreportcertaintypesoferrors.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.Whenthemoduleiswithinasingle-cycleTimedLoop,itmustbereadytoperformdigitalinputbeforealoopcontainingdigitalinputstarts.PolltheReadyoutputoftheCheckStatusmethodtodeterminewhetherthemoduleisready.Digitalinputoperationsreturninvaliddataifthemoduleisnotready.Whilethemoduleisperformingdigitalinputwithinasingle-cycleTimedLoop,donotperformpropertyreadsorremovethemodulefromthechassis.DoingeitheroftheseactionscausesthemoduletobeunabletoperformdigitalinputandtheReadyoutputoftheCheckStatusmethodtoreturnFALSE.
FPGATargetClockSupportThisdevicesupportsonlytop-levelFPGAtargetclockratesandsingle-cycleTimedLoopclockratesthataremultiplesof40MHz,suchas40MHz,80Mhz,120MHz,andsoon.
HardwareDocumentationRefertotheNI9435OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
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.
NI9472(FPGAInterface)CompactRIO8-Channel,24V,SourcingDigitalOutputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforwriting,withthisdevice.
TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.
Terminal DescriptionDOx Digitaloutputchannelx,wherexisthenumberofthechannel.
TheNI9472hasDOchannels0to7.DO7:0 Digitalportconsistingofchannels0through7.Channel7is
returnedintheMSB,andchannel0isreturnedintheLSB.
ArbitrationYoucanconfigurethearbitrationsettingsforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.
ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.ThisdevicedoesnotsupportanyI/Omethods.
Method DescriptionCheckStatus ReturnsaBooleanvaluethatindicateswhetherthe
moduleisready.NoteDuringthefirst2secondsafteryouresettheFPGAVI,theerrorterminalsonthismethodmaynotcorrectlyreportcertaintypesoferrors.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedConfigurationdialogbox.Whenthemoduleiswithinasingle-cycleTimedLoop,itmustbereadytoperformdigitaloutputbeforealoopcontainingdigitaloutputstarts.PolltheReadyoutputoftheCheckStatusmethodtodeterminewhetherthemoduleisready.Themodulemightignoreordelaydigitaloutputoperationsifitisnotready.Whilethemoduleisperformingdigitaloutputwithinasingle-cycleTimedLoop,donotperformpropertyreadsorremovethemodulefromthechassis.DoingeitheroftheseactionscausesthemoduletobeunabletoperformdigitaloutputandtheReadyoutputoftheCheckStatusmethodtoreturnFALSE.
FPGATargetClockSupportThisdevicesupportsonlytop-levelFPGAtargetclockratesandsingle-cycleTimedLoopclockratesthataremultiplesof40MHz,suchas40MHz,80Mhz,120MHz,andsoon.
HardwareDocumentationRefertotheNI9472/9474OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
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.
NI9474(FPGAInterface)CompactRIO8-Channel,24V,High-Speed,SourcingDigitalOutputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforwriting,withthisdevice.
TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.
Terminal DescriptionDOx Digitaloutputchannelx,wherexisthenumberofthechannel.
TheNI9474hasDOchannels0to7.DO7:0 Digitalportconsistingofchannels0through7.Channel7is
returnedintheMSB,andchannel0isreturnedintheLSB.
ArbitrationYoucanconfigurethearbitrationsettingsforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.
ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.ThisdevicedoesnotsupportanyI/Omethods.
Method DescriptionCheckStatus ReturnsaBooleanvaluethatindicateswhetherthe
moduleisready.NoteDuringthefirst2secondsafteryouresettheFPGAVI,theerrorterminalsonthismethodmaynotcorrectlyreportcertaintypesoferrors.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedConfigurationdialogbox.Whenthemoduleiswithinasingle-cycleTimedLoop,itmustbereadytoperformdigitaloutputbeforealoopcontainingdigitaloutputstarts.PolltheReadyoutputoftheCheckStatusmethodtodeterminewhetherthemoduleisready.Themodulemightignoreordelaydigitaloutputoperationsifitisnotready.Whilethemoduleisperformingdigitaloutputwithinasingle-cycleTimedLoop,donotperformpropertyreadsorremovethemodulefromthechassis.DoingeitheroftheseactionscausesthemoduletobeunabletoperformdigitaloutputandtheReadyoutputoftheCheckStatusmethodtoreturnFALSE.
FPGATargetClockSupportThisdevicesupportsonlytop-levelFPGAtargetclockratesandsingle-cycleTimedLoopclockratesthataremultiplesof40MHz,suchas40MHz,80Mhz,120MHz,andsoon.
HardwareDocumentationRefertotheNI9472/9474OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
NI9475(FPGAInterface)CompactRIO8-Channel,60V,High-Speed,SourcingDigitalOutputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforwriting,withthisdevice.
TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.
Terminal DescriptionDOx Digitaloutputchannelx,wherexisthenumberofthechannel.
TheNI9475hasDOchannels0to7.DO7:0 Digitalportconsistingofchannels0through7.Channel7is
returnedintheMSB,andchannel0isreturnedintheLSB.
ArbitrationYoucanconfigurethearbitrationsettingsforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.
ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.ThisdevicedoesnotsupportanyI/Omethods.
Method DescriptionCheckStatus ReturnsaBooleanvaluethatindicateswhetherthe
moduleisready.NoteDuringthefirst2secondsafteryouresettheFPGAVI,theerrorterminalsonthismethodmaynotcorrectlyreportcertaintypesoferrors.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedConfigurationdialogbox.Whenthemoduleiswithinasingle-cycleTimedLoop,itmustbereadytoperformdigitaloutputbeforealoopcontainingdigitaloutputstarts.PolltheReadyoutputoftheCheckStatusmethodtodeterminewhetherthemoduleisready.Themodulemightignoreordelaydigitaloutputoperationsifitisnotready.Whilethemoduleisperformingdigitaloutputwithinasingle-cycleTimedLoop,donotperformpropertyreadsorremovethemodulefromthechassis.DoingeitheroftheseactionscausesthemoduletobeunabletoperformdigitaloutputandtheReadyoutputoftheCheckStatusmethodtoreturnFALSE.
FPGATargetClockSupportThisdevicesupportsonlytop-levelFPGAtargetclockratesandsingle-cycleTimedLoopclockratesthataremultiplesof40MHz,suchas40MHz,80Mhz,120MHz,andsoon.
HardwareDocumentationRefertotheNI9475OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
NI9476(FPGAInterface)CompactRIO32-Channel,24V,High-Speed,SourcingDigitalOutputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforwriting,withthisdevice.
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.
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyandNeverArbitrateoptionsforarbitration.ThedefaultarbitrationsettingisArbitrateifMultipleRequestorsOnly.IfyouaresurethatthedesignoftheFPGAVIwillneverallowmorethanonedigitalfunctiontoexecuteatthesametime,evenondifferentchannels,youcanplaceacheckmarkintheDisableArbitrationcheckboxontheCSeriesModulePropertiesdialogboxtodisablearbitrationandreducetheamountofFPGAlogicusedbyVIs.IfmorethanonedigitalfunctioncouldexecutesimultaneouslyintheFPGAVI,leavetheboxunchecked.
ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.ThisdevicedoesnotsupportanyI/Omethods.
Method Input/Output Description
CheckOutputStatus
ForceStatusRead
WhenthevalueofthisinputisFALSE,themethodreturnsthecachedstatusinformationfromthelaststatusread.WhenthevalueisTRUE,themethodgetsthecurrentstatusinformationfromthemodule.Forcingastatusreadcanintroducejitterintoadigitaloutputloop.
AnyOvercurrent ReturnsaBooleanvalue.AvalueofTRUEindicatesanovercurrentconditiononatleastonechannel.
ChannelOvercurrent
ReturnsanarrayofBooleanvalues.AvalueofTRUEinanyindexindicatesthatthechannelsharinganumberwiththatindexisinanovercurrentcondition.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.
HardwareDocumentationRefertotheNI9476OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
CSeriesModulePropertiesDialogBoxfortheNI9476andNI9477(FPGAInterface)Right-clickanNI9476orNI9477CSeriesmoduleintheProjectExplorerwindowandselectPropertiesfromtheshortcutmenutodisplaythisdialogbox.UsethisdialogboxtoconfigureaCSeriesmodule.Thisdialogboxincludesthefollowingcomponents:
Name—SpecifiesthenameoftheCSeriesmodule,whichappearsintheProjectExplorerwindow.LabVIEWassignsadefaultnametothemodulebasedontheslotnumber.Youcanusethisfieldtogivethemoduleadescriptivename.ModuleType—SpecifiesthetypeofCSeriesmodule.Youcannotchangethisoption.Location—SpecifiesaslotinthechassisfortheCSeriesmodule.DisableArbitration—PlaceacheckmarkinthischeckboxifyouwanttochangethearbitrationsettingtoNeverArbitrateandreducetheamountofFPGAlogicusedbyVIs.CheckthisboxonlyifyouaresurethatthedesignoftheFPGAVIwillneverallowmorethanonedigitaloutputfunctiontoexecuteatthesametime,evenondifferentchannels.IfmorethanonedigitaloutputfunctioncouldexecutesimultaneouslyintheFPGAVI,leavetheboxuncheckedtokeepthedefaultArbitrateifMultipleRequestorsOnlyarbitrationsetting.
NI9477(FPGAInterface)CompactRIO32-Channel,5–60V,SinkingDigitalOutputModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforwriting,withthisdevice.
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.
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyandNeverArbitrateoptionsforarbitration.ThedefaultarbitrationsettingisArbitrateifMultipleRequestorsOnly.IfyouaresurethatthedesignoftheFPGAVIwillneverallowmorethanonedigitalfunctiontoexecuteatthesametime,evenondifferentchannels,youcanplaceacheckmarkintheDisableArbitrationcheckboxontheCSeriesModulePropertiesdialogboxtodisablearbitrationandreducetheamountofFPGAlogicusedbyVIs.IfmorethanonedigitalfunctioncouldexecutesimultaneouslyintheFPGAVI,leavetheboxunchecked.
MethodsThisdevicedoesnotsupportanymethods.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.
HardwareDocumentationRefertotheNI9477OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
NI9478(FPGAInterface)CompactRIO16-Channel,0–50VSinkingDigitalOutputModulewithProgrammableCurrentLimits
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforwriting,withthisdevice.
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.
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.ThisdevicedoesnotsupportanyI/Omethods.
Method Input/Output Description
CheckOutputStatus
LimitSelection Specifieswhichcurrentlimitstatusinformationthemodulereads.SelectActiveLimitifyouwanttheChannelOvercurrentoutputtoreturnTRUEforanychannelsthatexceedthecurrentlimitthresholdspecifiedfortheactivecurrentlimitforthatchannel.SelectLimitAtoreturnTRUEforanychannelsthatexceedthecurrentlimitthresholdspecifiedforCurrentLimitA.SelectLimitBtoreturnTRUEforanychannelsthatexceedthecurrentlimitthresholdspecifiedforCurrentLimitB.
ModuleOvertemp ReturnsaBooleanvalue.AvalueofTRUEindicatesthatthemoduleexceededitstemperaturerating.
ChannelOvercurrent
ReturnsanarrayofBooleanvalues.AvalueofTRUEinanyindexindicatesthatthechannelsharinganumberwiththatindexexceededthecurrentlimit,asspecifiedbytheLimitSelectioninput,afterthelaststatusread.AvalueofFALSEindicatesthatthechanneldidnotexceedthecurrentlimitafterthelaststatusread.
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.
SerialNumber
Returnstheuniqueserialnumberofthemodule.
VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.
HardwareDocumentationRefertotheNI9478OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
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
untilyouwritetothechannelusinganFPGAI/ONode.OvercurrentRefreshPeriod—Setsthetimeinµsittakesachanneltoautomaticallyrecoverifthechannelexceedsitsactivecurrentlimitthreshold.Validvaluesare20–2550µs.ThisoptionisavailableonlyifyouselectEnableOvercurrentRefresh.
ConfiguringCurrentLimitsfortheNI9478(FPGAInterface)YoucanconfiguretheactivecurrentlimitforeachchannelandthecurrentlimitthresholdsatedittimeusingtheCSeriesModulePropertiesdialogbox.YoucanprogrammaticallychangethesesettingsatruntimeusingtheFPGAI/OPropertyNode.TheexecutionofanI/OPropertyNodethatisconfiguredwithaCurrentLimitpropertyoverwritesthevalueyouconfiguredintheCSeriesModulePropertiesdialogbox.
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.
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
NI9481(FPGAInterface)CompactRIO4-Channel,FormAElectromechanicalRelayModule
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforwriting,withthisdevice.
TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.
Terminal DescriptionCHx Channelx,wherexisthenumberofthechannel.TheNI9481
haschannels0to3.CH3:0 Digitalportconsistingofchannels0through3.Channel3is
returnedinbit3,andchannel0isreturnedinbit0.
ArbitrationYoucanconfigurethearbitrationsettingsforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.
ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.ThisdevicedoesnotsupportanyI/Omethods.
Method DescriptionCheckStatus ReturnsaBooleanvaluethatindicateswhetherthe
moduleisready.NoteDuringthefirst2secondsafteryouresettheFPGAVI,theerrorterminalsonthismethodmaynotcorrectlyreportcertaintypesoferrors.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedConfigurationdialogbox.Whenthemoduleiswithinasingle-cycleTimedLoop,itmustbereadytoperformdigitaloutputbeforealoopcontainingdigitaloutputstarts.PolltheReadyoutputoftheCheckStatusmethodtodeterminewhetherthemoduleisready.Themodulemightignoreordelaydigitaloutputoperationsifitisnotready.Whilethemoduleisperformingdigitaloutputwithinasingle-cycleTimedLoop,donotperformpropertyreadsorremovethemodulefromthechassis.DoingeitheroftheseactionscausesthemoduletobeunabletoperformdigitaloutputandtheReadyoutputoftheCheckStatusmethodtoreturnFALSE.
FPGATargetClockSupportThisdevicesupportsonlytop-levelFPGAtargetclockratesandsingle-cycleTimedLoopclockratesthataremultiplesof40MHz,suchas40MHz,80Mhz,120MHz,andsoon.
HardwareDocumentationRefertotheNI9481OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
NI9485(FPGAInterface)CompactRIO8-Channel,Solid-StateRelay(SSR)Module
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforwriting,withthisdevice.
TerminalsinSoftwareUsetheFPGAI/ONodetoaccessthefollowingterminalsforthisdevice.
Terminal DescriptionCHx Channelx,wherexisthenumberofthechannel.TheNI9485
haschannels0to7.CH7:0 Digitalportconsistingofchannels0through7.Channel7is
returnedintheMSB,andchannel0isreturnedintheLSB.
ArbitrationYoucanconfigurethearbitrationsettingsforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.
ModuleMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodforthisdevice.ThisdevicedoesnotsupportanyI/Omethods.
Method DescriptionCheckStatus ReturnsaBooleanvaluethatindicateswhetherthe
moduleisready.NoteDuringthefirst2secondsafteryouresettheFPGAVI,theerrorterminalsonthismethodmaynotcorrectlyreportcertaintypesoferrors.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.ThisdevicedoesnotsupportanyI/Oproperties.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedConfigurationdialogbox.Whenthemoduleiswithinasingle-cycleTimedLoop,itmustbereadytoperformdigitaloutputbeforealoopcontainingdigitaloutputstarts.PolltheReadyoutputoftheCheckStatusmethodtodeterminewhetherthemoduleisready.Themodulemightignoreordelaydigitaloutputoperationsifitisnotready.Whilethemoduleisperformingdigitaloutputwithinasingle-cycleTimedLoop,donotperformpropertyreadsorremovethemodulefromthechassis.DoingeitheroftheseactionscausesthemoduletobeunabletoperformdigitaloutputandtheReadyoutputoftheCheckStatusmethodtoreturnFALSE.
FPGATargetClockSupportThisdevicesupportsonlytop-levelFPGAtargetclockratesandsingle-cycleTimedLoopclockratesthataremultiplesof40MHz,suchas40MHz,80Mhz,120MHz,andsoon.
HardwareDocumentationRefertotheNI9485OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
MemoryModules(FPGAInterface)UsethisbookasareferenceforinformationaboutwhichmethodsandpropertieseachCSeriesmemorymodulesupports.
Toviewrelatedtopics,clicktheLocatebutton,shownatleft,inthetoolbaratthetopofthiswindow.TheLabVIEWHelphighlightsthistopicintheContentstabsoyoucannavigatetherelatedtopics.
NI9802(FPGAInterface)CompactRIO2SDCardMemoryModule
FPGAI/ONodeThisdevicedoesnotsupporttheFPGAI/ONode.YoucanusetheFPGAI/OMethodNodeandFPGAI/OPropertyNodetoaccessmethodsandpropertiesforthedevice.
NoteIfyouaddtheNI9802totheproject,theReal-TimesupportfortheMountSDCardInterfacemethodcompilesontotheFPGAwhenyoucompiletheFPGAVI,whichcantakeupspaceontheFPGA.IfyouarenotactivelyusingtheNI9802,youmightwanttoremovethemoduleitemfromtheproject.
ArbitrationThisdevicesupportsonlytheArbitrateifMultipleRequestorsOnlyoptionforarbitration.Youcannotconfigurearbitrationsettingsforthisdevice.
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.
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.
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
SDCardPropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.RefertotheNI9802MethodsVIinthelabview\examples\CompactRIO\ModuleSpecific\NI9802\NI9802Methodsdirectoryforanexampleofusingtheseproperties.Openexample
Property DescriptionCardPresent ReturnsaBooleanvalue.AvalueofTRUEindicatesthat
anSDCardisinsertedintheslot.DoorOpen ReturnsaBooleanvalue.AvalueofTRUEindicatesthat
theSDCardslotdoorisopenanditisnotsafetoreadfromorwritetotheSDCardintheslot.
ModulePropertiesUsetheFPGAI/OPropertyNodetoaccessthefollowingpropertiesforthisdevice.
Property DescriptionModuleID ReturnsthemoduleID.SerialNumber Returnstheuniqueserialnumberofthemodule.VendorID ReturnstheNationalInstrumentsvendorID,0x1093.
RemovingSDCardsDonotopenanSDCardslotdoororremoveanSDCardwhiletheyellowLEDforthatcardislitorflashing.
CautionOpeninganSDCardslotdoororremovinganSDCardwhiletheyellowLEDforthatcardislitorflashingmightresultinincompletedata.
IfyouopenanSDCardslotdoorwhiletheyellowLEDforthatcardislitorflashing,thesoftwareattemptstoprotecttheSDCardfilesystembyclosingallopenfiles,whichcanresultinlostdata.RefertotheNI9802OperatingInstructionsandSpecificationsfordescriptionsofeachoftheLEDsontheNI9802andwhenitissafetoremoveSDCardsfromtheNI9802.
Single-CycleTimedLoopThisdevicedoesnotsupportthesingle-cycleTimedLoop.
FPGATargetClockSupportThisdevicesupportsonlythe40MHzFPGAtargetclocksetting.
HardwareDocumentationRefertotheNI9802OperatingInstructionsandSpecificationstolearnaboutmodulespecificationsandhowtousethemodule.RefertotheCompactRIORelatedDocumentationforfurtherinformationaboutCompactRIOdocumentation.
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.
NIsbRIO-9601(FPGAInterface)Single-BoardReconfigurableI/O(DIO)1103.3VDIOchannels,1milliongateFPGA
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreadingandwriting,withthisdevice.
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.
ArbitrationYoucanconfigurethearbitrationsettingsfortheDIOchannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.
I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.Thisdevicedoesnotsupportanymodulemethods.
Method DescriptionSetOutputData
RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.
SetOutputEnable
RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.
PropertiesThisdevicedoesnotsupportanyproperties.
Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.
NIsbRIO-9602(FPGAInterface)Single-BoardReconfigurableI/O(DIO)1103.3VDIOchannels,2milliongateFPGA
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreadingandwriting,withthisdevice.
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.
ArbitrationYoucanconfigurethearbitrationsettingsfortheDIOchannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.
I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.Thisdevicedoesnotsupportanymodulemethods.
Method DescriptionSetOutputData
RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.
SetOutputEnable
RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.
PropertiesThisdevicedoesnotsupportanyproperties.
Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoop.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.
NIsbRIO-9611(FPGAInterface)Single-BoardReconfigurableI/O(AI,DIO)32AIchannels,1103.3VDIOchannels,1milliongateFPGA
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreadingandwriting,withthisdevice.
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.
ArbitrationYoucanconfigurethearbitrationsettingsfortheDIOchannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.ForinformationaboutarbitrationonchannelsofanonboardorinstalledCSeriesmodule,refertothehelptopicforthemodule.YoucanfindthehelptopicforthemoduleyouareusingbynavigatingontheContentstabtoFPGAModule»CompactRIOReferenceandProcedures»ModuleType»NI9xxx.
OnboardCSeriesModuleI/OThisdevicecontainsanonboardNI9205module.
I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.Thisdevicedoesnotsupportanymodulemethods.
Method DescriptionSetOutputData
RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.
SetOutputEnable
RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.
PropertiesThisdevicedoesnotsupportanyproperties.
Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoopfordigitalI/Oonly.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.
NIsbRIO-9612(FPGAInterface)Single-BoardReconfigurableI/O(AI,DIO)32AIchannels,1103.3VDIOchannels,2milliongateFPGA
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreadingandwriting,withthisdevice.
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.
ArbitrationYoucanconfigurethearbitrationsettingsfortheDIOchannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.ForinformationaboutarbitrationonchannelsofanonboardorinstalledCSeriesmodule,refertothehelptopicforthemodule.YoucanfindthehelptopicforthemoduleyouareusingbynavigatingontheContentstabtoFPGAModule»CompactRIOReferenceandProcedures»ModuleType»NI9xxx.
OnboardCSeriesModuleI/OThisdevicecontainsanonboardNI9205module.
I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.Thisdevicedoesnotsupportanymodulemethods.
Method DescriptionSetOutputData
RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.
SetOutputEnable
RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.
PropertiesThisdevicedoesnotsupportanyproperties.
Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoopfordigitalI/Oonly.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.
NIsbRIO-9631(FPGAInterface)Single-BoardReconfigurableI/O(AI,AO,DIO)32AIchannels,4AOchannels,1103.3VDIOchannels,1milliongateFPGA
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreadingandwriting,withthisdevice.
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.
ArbitrationYoucanconfigurethearbitrationsettingsfortheDIOchannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.ForinformationaboutarbitrationonchannelsofanonboardorinstalledCSeriesmodule,refertothehelptopicforthemodule.YoucanfindthehelptopicforthemoduleyouareusingbynavigatingontheContentstabtoFPGAModule»CompactRIOReferenceandProcedures»ModuleType»NI9xxx.
OnboardCSeriesModuleI/OThisdevicecontainsanonboardNI9205moduleandanonboardNI9263module.
I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.Thisdevicedoesnotsupportanymodulemethods.
Method DescriptionSetOutputData
RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.
SetOutputEnable
RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.
PropertiesThisdevicedoesnotsupportanyproperties.
Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoopfordigitalI/Oonly.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.
NIsbRIO-9632(FPGAInterface)Single-BoardReconfigurableI/O(AI,AO,DIO)32AIchannels,4AOchannels,1103.3VDIOchannels,2milliongateFPGA
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreadingandwriting,withthisdevice.
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.
ArbitrationYoucanconfigurethearbitrationsettingsfortheDIOchannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.ForinformationaboutarbitrationonchannelsofanonboardorinstalledCSeriesmodule,refertothehelptopicforthemodule.YoucanfindthehelptopicforthemoduleyouareusingbynavigatingontheContentstabtoFPGAModule»CompactRIOReferenceandProcedures»ModuleType»NI9xxx.
OnboardCSeriesModuleI/OThisdevicecontainsanonboardNI9205moduleandanonboardNI9263module.
I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.Thisdevicedoesnotsupportanymodulemethods.
Method DescriptionSetOutputData
RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.
SetOutputEnable
RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.
PropertiesThisdevicedoesnotsupportanyproperties.
Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoopfordigitalI/Oonly.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.
NIsbRIO-9641(FPGAInterface)Single-BoardReconfigurableI/O(AI,AO,DI,DO,DIO)32AIchannels,4AOchannels,1103.3VDIOchannels,3224VDIchannels,3224VDOchannels,1milliongateFPGA
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreadingandwriting,withthisdevice.
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.
ArbitrationYoucanconfigurethearbitrationsettingsfortheDIOchannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.ForinformationaboutarbitrationonchannelsofanonboardorinstalledCSeriesmodule,refertothehelptopicforthemodule.YoucanfindthehelptopicforthemoduleyouareusingbynavigatingontheContentstabtoFPGAModule»CompactRIOReferenceandProcedures»ModuleType»NI9xxx.
OnboardCSeriesModuleI/OThisdevicecontainsonboardNI9205,NI9263,NI9425,andNI9476modules.
I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.Thisdevicedoesnotsupportanymodulemethods.
Method DescriptionSetOutputData
RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.
SetOutputEnable
RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.
PropertiesThisdevicedoesnotsupportanyproperties.
Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoopfordigitalI/Oonly.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.
NIsbRIO-9642(FPGAInterface)Single-BoardReconfigurableI/O(AI,AO,DI,DO,DIO)32AIchannels,4AOchannels,1103.3VDIOchannels,3224VDIchannels,3224VDOchannels,2milliongateFPGA
FPGAI/ONodeYoucanuseanFPGAI/ONode,configuredforreadingandwriting,withthisdevice.
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.
ArbitrationYoucanconfigurethearbitrationsettingsfortheDIOchannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ThedefaultarbitrationsettingisNeverArbitrate.ForinformationaboutarbitrationonchannelsofanonboardorinstalledCSeriesmodule,refertothehelptopicforthemodule.YoucanfindthehelptopicforthemoduleyouareusingbynavigatingontheContentstabtoFPGAModule»CompactRIOReferenceandProcedures»ModuleType»NI9xxx.
OnboardCSeriesModuleI/OThisdevicecontainsonboardNI9205,NI9263,NI9425,andNI9476modules.
I/OMethodsUsetheFPGAI/OMethodNodetoaccessthefollowingmethodsforthisdevice.Thisdevicedoesnotsupportanymodulemethods.
Method DescriptionSetOutputData
RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.
SetOutputEnable
RefertotheFPGAI/OMethodNodetopicforadescriptionofthismethod.
PropertiesThisdevicedoesnotsupportanyproperties.
Single-CycleTimedLoopThisdevicesupportsthesingle-cycleTimedLoopfordigitalI/Oonly.ConfigurethenumberofoutputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/OPropertiesdialogbox.ConfigurethenumberofinputsynchronizingregistersforthechannelsofthisdeviceintheAdvancedCodeGenerationpageoftheFPGAI/ONodePropertiesdialogbox.
ConfiguringaProjectforaCompactRIOorSingle-BoardRIOSystem(FPGAInterface)YoucanconfigureaprojectforaCompactRIOReconfigurableorIntegratedsystem,CompactRIORSeriesExpansionsystem,orSingle-BoardRIOReconfigurableEmbeddedsystem.