- #Labview 2013 tutorial install
- #Labview 2013 tutorial archive
- #Labview 2013 tutorial code
- #Labview 2013 tutorial download
Where are the Functions and Parameters Defined? Many errorcodes are listed in Section 4 of the respective device datasheet ( U3/ U6/ UE9), but every LabVIEW program should use LJUD_ErrorToString.vi to convert the errorcode to a readable string. For example, if the open call cannot find the device you requested it will return LabVIEW_LJUD errorcode 7007, which is UD errorcode 1007. x1 – This parameter is only used in some of the request/result functions, and is used when extra information is needed for certain IOTypes.Ħ000 is added to the LabJack errorcodes to shift them into the LabVIEW user range of 5000-9999.Value – This is an input or output to all request/result functions that is used to write or read the value for the item being operated on.serial number), then IOType is usually LJ_ioGET_CONFIG or LJ_ioPUT_CONFIG and a special channel constant (e.g. LJ_chSERIAL_NUMBER) is used to specify what you are operating on. If you are operating on something not specific to a particular channel (e.g. IOType = LJ_ioGET_AIN), then Channel specifies which channel of I/O is being written/read. If you are operating on a singular input or output (e.g. Channel – This is an input to all request/result functions.IOType – This is an input to all request/result functions that specifies what type of action is being done.The handle is obtained from the OpenLabJack function. Handle – This is an input to all request/result functions that tells the function what LabJack it is talking to.There are a few different functions to perform different variations of Add-Go-Get, but they all have the same parameters: With this technique you give the drive a list of requests to perform (Add), execute the list (Go), and read the results of each request (Get). Refer to "Digital I/O" and "Easy Functions" pseudocode sections in the U3/ U6/ UE9 User's Guide.įor more flexible and efficient operation you would move on to the basic Add-Go-Get technique described in Section 4.1 of the U3/ U6/ UE9 User's Guide. eDO() - write 1 digital output, "Uxx eDO Example.vi".Refer to "Digital I/O" and "Easy Functions" pseudocode sections in the U3/ U6/ UE9 User's Guide. eDI() - read 1 digital input, "Uxx eDI Example.vi".Refer to "Analog Outputs" and "Easy Functions" pseudocode sections in the U3/ U6/ UE9 User's Guide. eDAC() - write 1 analog output, "Uxx eDAC Example.vi".Refer to "Configuration", "Analog Inputs", and "Easy Functions" pseudocode sections in the U3/ U6/ UE9 User's Guide. eAIN() - read 1 analog input, "Uxx eAIN Example.vi".For basic applications these might be all that are needed: The UD library has easy functions to read or write a single analog or digital I/O. If you need to move beyond the easy functions, start with "Uxx Single IO Example.vi", "Uxx Multiple IO Example.vi", and "Uxx Multiple IO Example Loop.vi".Start with the easy function examples.Refer to Section 4.3 of the U3/ U6/ UE9 User's Guide for documentation of what values to pass.Refer to Section 4.2 of the U3/ U6/ UE9 User's Guide for documentation of the parameters of each function.Read through Section 4.1 of the U3/ U6/ UE9 User's Guide for an overview of the UD library. In LabVIEW you will be making calls to our UD library.
#Labview 2013 tutorial archive
#Labview 2013 tutorial download
Download the LabVIEW_LJUD or LabVIEW_NXG_LJUD archive below and extract the entire archive.
#Labview 2013 tutorial install
#Labview 2013 tutorial code
LabVIEW is a graphical programming language, as demonstrated in the code snippet below, but understand that it is still a powerful programming language not a simple software tool. LabVIEW is one of the most popular programming languages used by our customers. The Windows UD library is the high-level Windows library for the LabJack U3, U6 and UE9. For other LabJack devices, go to the Software page. LabVIEW driver/example VIs for the Windows UD library.