FAQ
Didn't find your question here? Ask by adding a comment below.
Search
Shopping Cart
Testimonials
-
Your product saved me a bunch of money and time. I usually contact support organizations... about how bad their products are. I felt like I had to say how well yours worked!
—Thomas, Software Engineer

Comments
#1
How connect Labjack U12 with Scilab ?
#2
For Windows? A better place for this question would be the U12 Windows Driver Documentation, the U12 Windows Examples, or the LabJack Forum. I don't know of anyone using the U12 with Scilab, but the place to start would be by looking at the U12 Matlab support.
Also, moving forward, our newer devices (U3/U6/UE9) are more likely to have easy Scilab support.
#3
How labjack works in terms of external events ?
If I'm measuring something or controlling anything in a different I/O's and some other I/O has a Switch or signal that change the state for some ms like a pulse did I miss it in that time when I was controlling other stuff ? or remains the info some king of interrupt register or something ?
IF not, in that case how should I program in windows C or VB in a never ending While loop checking all inputs all the time ?
Where is it done in windows programming in the Load Form Event ? whih event is always running like that ?
Thanks
#4
You have to look at the length of an event. For events that last less than 1 ms, you need to use hardware to catch them, so that typically means using a timer or counter or stream mode. For example, connect the switch to a counter which increments an internal hardware register for each falling edge it sees and your software can then read that register whenever convenient. For longer events, you can consider whether you can poll fast enough even while doing other things, but it depends on the particulars.
#5
Here you mention the poll fast enough, wher is this poll loop placed ina Windows Form application ? Which Windows event is a loop to poll constantly for events in the Labjack IO's ?
#6
If you are using an event-driven language like VB, you might use a timer event. For example, set the timer to 100 ms, and every time the event fires call eAIN (to read an analog input) and eDAC (to set an analog output). For more programming specifics, move this discussion to the forum or email.
#7
VB or C# ?
Whats your recommendation ?
I had some experience programming in C before but I feel that VB has some better and resolved high level funtions like for GUI or humen interface or fylesystem managment ? or Am I Worng ?, on the other side VB doesnt have Byte or binary shift operators probaly a lot usefull in this application ?
C is more compact more clear for engineers.
In terms of language I know both are fully object oriented and only syntax is basically the difference.
In terms of support which one you support most ?
In terms of flexibility which one will be the best ?
In terms of speed ?
Which one to shoose if youa to start ?
Thanks
#8
Between VB.net and C#.net, our preference would definitely be C#. We feel like VB is old news and constrained by its origins and find it to be cumbersome and slow. I have a theory that the main reason VB hangs around is that the "B" stands for "basic" and thus gives the false impression that VB is easier/simpler than other languages.
#9
Having seen LabJack at a contractors we use I am looking to purchase either a U12 or UE9. I believe the LabJack digital IO can function as an I2C bus master and presumably slave and that you can supply Visual basic drivers for these functions. What maximum I2C clock speed will LabJack support? Is it limited by the 50Hz per IO? Thanks. Martin.
#10
Sounds like you are considering bit banging I2C from the application layer. I recommend using our I2C function. With the I2C function the clock is limited to about 50kHz. The actual maximum will vary between devices and can change with firmware versions. Other concurrent operations such as timers, counters, stream will also affect the maximum speed.
The LabJack U3, U6, and UE9 can function as a bus master, not a slave. The U12 does not have I2C support.
We provide a driver that can be called by VB and VB examples to work from. You can grab the examples here: http://labjack.com/support/ud/examples