NatNet and LabVIEW

NatNet, VRPN, TrackD, and Plugins
Post Reply
leon42
Posts: 2
Joined: Fri Jul 24, 2020 3:21 am

NatNet and LabVIEW

Post by leon42 » Fri Jul 24, 2020 3:28 am

I have managed to create a NatNet LabVIEW application using the .NET NatNetML libraries and callbacks. I am streaming the data from Motive.

In motive I have one asset with ID 1. In LabVIEW callback I receive exactly 1048 frames of the asset of ID 1. After that I receive frames of asset with ID 0 (non-existent) and all the data is 0. The number is always the same, regardless of camera frame rate (30 to 240 FPS).

I would like to receive frames via callbacks in order to have all frames available. Polling is out of the question.

Did anyone experience similar problems? Do I need to configure something else in NatNet that I missed? The application WinFormTestApp works perfectly fine all the time.

leon42
Posts: 2
Joined: Fri Jul 24, 2020 3:21 am

Re: NatNet and LabVIEW

Post by leon42 » Sun Jul 26, 2020 10:05 pm

After some debugging I actually found a solution.

LabVIEW has a different way of handling the .NET functions. It opens a reference to the object and after an object has been opened, it needs to be closed programmatically. Now I fixed it and it seems to work.

Post Reply