You have two Event Loops, a Bad Idea. Your code is a little mal-formed (can't see it on a normal size screen, can't fit the Front Panel onto a screen, you use Tab Controls, also not a good idea, etc.).
I don't know Velodyne, and haven't closely checked your DAQ code, but here are some questions:
- Can you manipulate your sensor in MAX? Can you open it? Can you read/write to it? Does it seem to work that way?
- I recommend you read "Learn 10 Functions in NI-DAQmx ..." (a very good White Paper by NI on DAQmx, search the Web and you'll find it). Kudos on using a Project -- now leverage it by creating a DAQmx Task for your Velodyne (same steps you used when you tested your Device in MAX) right in the Project (right-click My Computer, choose New DAQmx Task, find your Device, configure it as much as you can.). Once you have a Task defined, you can do most DAQmx I/O with three functions -- Start Task (do a "Create Constant on the Task In side, click the Drop-down triangle and choose the Task you just created), Read, and Stop Task.
- You do not need (and should not use) the Sequence structure -- the Error Line should sequence things for you.
- I didn't see how you were communicating between your loops, but I didn't see Queues ...
Bob Schor
P.S. -- LV2015 is an extremely poor name for your Folder ... LIDAR 2015 would be much better.