07-10-2019 09:54 PM
Hello,
I have a project to send the data from C# (Visual Studio 2013) to Labview 2018. VS2013 and Labview2018 are in one PC. The C# project only have to send the data continuously to Labview, so it is no need to receive data from Labview. The C# project includes product's SDK which has to be developed under c# console application, so maybe the solution of .dll is not suitable for the project (I'm not sure about it). Does anyone have any idea on dealing with this situation?
Thank you
07-11-2019 03:20 AM
@alwaysfantasy100 wrote:
Does anyone have any idea on dealing with this situation?
Either figure our how the C# project communicates, or use the SDK to DIY...
Without any information, we can't tell you anything.
07-11-2019 08:11 PM
wiebe@CARYA 已寫:
@alwaysfantasy100 wrote:
Does anyone have any idea on dealing with this situation?
Either figure our how the C# project communicates, or use the SDK to DIY...
Without any information, we can't tell you anything.
Sorry for not giving any detailed information.
I use C# in visual studio 2013, and the Tobii core SDK is included in the project. The thing I try to do is to send the gaze data to Labview, so when I look a specific spot, it can help me to turn on/off the boolean button or do other functions. Visual studio 2013 and Labview 2018 are installed in the same PC. The c# code is attached.
Thank you
07-12-2019 01:35 AM
Based on that C# code, it looks like the "Tobii" API requires you to supply a delegate that it will call with the relevant information (x, y, ts). LabVIEW can't create it's own delegates directly however it can consume (register) for events. So you could possibly do the following:
Have a go at this and let us know how you go.
07-12-2019 03:01 AM
How are you going to press the button (based on coordinates?)?
If you're going to use a Windows API, you might as well call it from C#. No need to do anything in LabVIEW, the Tobii program will basically act as an input device.
Just a thought..