As of May 2, 2022 the LabJack forums have been set to read-only.
If you are in need of support, please contact us via one of the methods described on our contact page.
... but the latter is only 16-bit so you need to set the clock properly so the registers don't roll over.
I suggest you try it first in the test panel in LJControlPanel. Once you find the settings that work for you, go to config defaults in LJCP to save those settings as the power up default for your U6 and then you can use channel 20x and 224 to read the timer value in LJLogUD:
When I build my program in visual studio, I get the following error:
"LNK1104 cannot open file '..Project\..\..Program Files\LabJack\drivers\labjackud.lib"
Now, I know we are advised to delete the .lib file and re-add it to the project, which is fine all fine and well, but...
When I go to re-add the .lib file, I can never find it when I browse. But it's there when I just go through my files, but when I browse in visual studio, it's gone.
It sounds like you want to write a script that will run on the LabJack itself. Unfortunately the U6 can not do that. The T7 can, but it can only run Lua.
The most common way to use a data acquisition device is to create a program that will run on a host computer which will then send commands to the DAQ unit. Your code built in visual studio can be run by locating and running the .exe or running the debugging mode from within VS.
You likely want to use a timer on your U6. If you just want to measure frequency use the period measurement mode:
https://labjack.com/support/datasheets/u6/hardware-description/timers-co...
If you actually need to know the high and low times of the signal, then use the duty cycle measurement mode:
https://labjack.com/support/datasheets/u6/hardware-description/timers-co...
... but the latter is only 16-bit so you need to set the clock properly so the registers don't roll over.
I suggest you try it first in the test panel in LJControlPanel. Once you find the settings that work for you, go to config defaults in LJCP to save those settings as the power up default for your U6 and then you can use channel 20x and 224 to read the timer value in LJLogUD:
https://labjack.com/support/software/applications/ljlogud/ljlogstream-sc...
You could also move on to DAQFactory or any programming language.
Thank you very much!!
Can the period measurement and duty cycle measurement be used for an analog channel?
No, the U6 uses timers for those measurements and they can only be assigned on digital inputs.
For completeness, the T7 can measure the frequency of an analog signal using the RMS_Auto AIN-EF feature:
https://labjack.com/support/datasheets/t7/ain/extended-features/rms
When I build my program in visual studio, I get the following error:
"LNK1104 cannot open file '..Project\..\..Program Files\LabJack\drivers\labjackud.lib"
Now, I know we are advised to delete the .lib file and re-add it to the project, which is fine all fine and well, but...
When I go to re-add the .lib file, I can never find it when I browse. But it's there when I just go through my files, but when I browse in visual studio, it's gone.
Any ideas?
Never mind on the last question I submitted, I figured it out.
I am still really confused, though (obviously)...I've got the code compiled and built in visual studio...
Now how do I get it into the LabJack? I am just really confused, and don't have much time to work on this project.
It sounds like you want to write a script that will run on the LabJack itself. Unfortunately the U6 can not do that. The T7 can, but it can only run Lua.
The most common way to use a data acquisition device is to create a program that will run on a host computer which will then send commands to the DAQ unit. Your code built in visual studio can be run by locating and running the .exe or running the debugging mode from within VS.