![]() It works without ' WAIT_US_BLOCKING', which we have tested by out commenting the part in the code containing aNames(5)=' WAIT_US_BLOCKING' and aValues(5)=100, redefine NumFrames from 7 to 6, and removing one entry from aNames and aValues, such that num 6 and 7 becomes 5 and 6. The only thing edited in the code is the ethernet address of the LabJack. ''LabJack.LJMExceptions: LJME_OLD_Firmware, Error in using: (code line containing ()), Messeage: LJME_OLD_FIRMWARE, Source: LabJack.LJM'' NET version 4.0 and matlab 2013b. Our problem is that we can't seem to make the 'Wait' routine work. When using your example code 'eWriteNames.m' it reports the error: ![]() We have bought your LabJack T7, and installed it, and we are able to control it from our computer through Ethernet connection. We have a problem that we hope that you can help us with. MATLAB_LJM_2017_12_04.zip contains: LICENSE.txtĮxamples\More\Config\ReadDeviceNameString.mĮxamples\More\Config\WriteDeviceNameString.mĮxamples\More\Ethernet\ReadEthernetConfig.mĮxamples\More\Ethernet\WriteEthernetConfig.mĮxamples\More\Stream\StreamBasicWithStreamOut.mĮxamples\More\Stream\StreamSequentialAIN.mĮxamples\More\Watchdog\ReadWatchdogConfig.mĮxamples\More\Watchdog\WriteWatchdogConfig.m eReadName (handle, name, 0 ) disp ( 'eReadName result:' ) disp ( ) catch e OpenS ( 'ANY', 'ANY', 'ANY', handle ) ?ll eReadNames to read the serial number from the LabJack. Handle = 0 try %Open first found LabJack = LabJack. Stream mode and other operations that don't fit in "Write Read Loop with Config" will usually have specific examples, and if something seems to be missing let us know.Ĭode Snippet %Make the LJM. Or just use "Write Read Loop with Config", which provides the basic structure used by many user applications. Use eWriteName (or eWriteNames) to write the desired registers and eReadName (or eReadNames) to read the desired registers.This step is optional and not always applicable. Use the Register Matrix in Kipling to test writing and reading your desired registers and confirm you see what you expect to see.Look at the T-series Datasheet or the Modbus Map to determine what registers you need to write and read.If we had examples for every operation, they would just be copies of the example "Write Read Loop with Config" with different registers. The typical workflow to do almost anything beside stream is: Most operations simply involve writing and reading different registers, so you really just need examples that show you how to write and read any register. The reason for this stems from the "Overview" section above. You will find lots of examples in this archive, but there is not an example for everything the LabJack can do. The following examples in the Basic folder are a great place to start: Look at the device's datasheet ( T7 or T4) or the Modbus Map to determine what registers you need to write and read, then use eWriteName (or eWriteNames) to write the desired registers and eReadName (or eReadNames) to read the desired registers. With the LJM library, pretty much everything you might want to do with a device is accomplished by writing and/or reading some registers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |