LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unity 3D and LabView

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

Dr. Michael Vallance
Future University, Japan.
Homepage http://www.mvallance.net
International Virtual Environments Research Group (iVERG) http://www.iverg.com
0 Kudos
Message 1 of 11
(11,477 Views)

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.

 

Connecting LabVIEW to 3rd Party Software Packages

http://www.ni.com/white-paper/10060/en

 

Furea Kiuchi

Applications Engineer

National Instruments Japan

0 Kudos
Message 2 of 11
(11,430 Views)

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

 

Dr. Michael Vallance
Future University, Japan.
Homepage http://www.mvallance.net
International Virtual Environments Research Group (iVERG) http://www.iverg.com
0 Kudos
Message 3 of 11
(11,424 Views)

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

0 Kudos
Message 4 of 11
(11,348 Views)

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 .... 🙂

Dr. Michael Vallance
Future University, Japan.
Homepage http://www.mvallance.net
International Virtual Environments Research Group (iVERG) http://www.iverg.com
0 Kudos
Message 5 of 11
(11,336 Views)

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

0 Kudos
Message 6 of 11
(11,327 Views)

Dr. Michael Vallance.

how do you connect opensim with labview?

0 Kudos
Message 7 of 11
(11,264 Views)

Guys,

 

I want know more about Unity and LabVIEW interaction.

 

Im working too.

Message 8 of 11
(11,144 Views)

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.

Message 9 of 11
(6,074 Views)

Here is vi and picture of vi.

Download All
Message 10 of 11
(6,073 Views)