04-26-2013 09:31 PM
Has anyone here successfully managed to connect a LabView VI to an action initiated from within a Unity 3D developed virtual world (or game)?
I have been successful in transferring a signal from an Open Sim (think Second Life) 3D world to a LabView VI which in turns activates a robot motor.
But no luck replicating this in Unity.
Just trying my luck here 🙂
Michael
04-30-2013 11:34 PM
I don't know of anyone who has successfully done so in Unity 3D.
But have you read the following post ?
http://mypersonalsoft.blogspot.jp/2010/12/unity-3d-integration-with-any.html
It sounds like it is all about building correct interfaces between the third party software and LabVIEW.
To do that, you can look at the following link even though you may already have cheked it out.
http://www.ni.com/white-paper/10060/en
Furea Kiuchi
Applications Engineer
National Instruments Japan
05-01-2013 01:00 AM
I will take a look at these resources. Thank you.
My OpenSim to LabView VI and LEGO robot demo is on YouTube at
http://www.youtube.com/watch?v=MLSq2T2JbMM&feature=youtu.be
Michael
06-19-2013 04:22 PM
I would like to know if you obtained a favorable answer to your question because I want to connect Labview with a program called unity. To have a robot in Labview and their scenario in unity
06-19-2013 06:44 PM
No, I haven't been sucessful yet. A colleague is looking at connecting a Kinnect + Unity but this doesn't help with my LabView connectivity. However, he 'may' find some workaround like routing the connectivity via a server and send http signals to LabView for interpretation. Maybe .... 🙂
06-19-2013 11:17 PM
It could contact me with their colleague it is that it truly interests me a lot of east project. And until the moment I have been able to connect Unity and Labview for UDP, being Unity the one that sends and labview the one that listens but alone I have sent a text
07-29-2013 04:13 PM
Dr. Michael Vallance.
how do you connect opensim with labview?
10-15-2013 10:52 AM
Guys,
I want know more about Unity and LabVIEW interaction.
Im working too.
04-16-2021 03:34 PM
A little late but wanted to put a solution for anyone else trying to find a solution for this as I was not able to find any sources.
I was able to send a string from Labview to Unity.
What you will want to do is make a UDP connection between Unity and labview. I used a script I found on stackoverflow for a UDP receiver in Unity as I am new to using C#. I edited this script to convert the string sent from Labview to be shown in the console when my scene is running. You will have to decode the string from labview using UTF8Encoding in the C# script.
https://stackoverflow.com/questions/37131742/how-to-use-udp-with-unity-methods
Bring this script into unity and attach to an object in your scene.
In labview first use the UDP-Open function to create a UDP socket and specify the port. Then in a while loop use UDP Send to send out a string of data. I attached the vi and a photo of the solution as well. My IP is the computer's IPv4 address that is running both Unity and Labview. The UDPClient in Unity is assigned Port 50505 and I assigned the UDPWriter in Labview a Port of 55555.
04-16-2021 03:35 PM
Here is vi and picture of vi.