From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-12-2016 05:58 AM
Hi,
I was trying to pass "This VI" reference from one VI to another using Datasocket as in the potential future both VIs will be working as a separated EXEs.
So I have noticed that reference data for some reason can't be passed and at the output I always have empty reference.
Gentlmen, does anyone know if this is technically possible to pass VI refernce in this manner and the most important question, if you have your VI compiled to EXE would this VI reference stuff still be valid? Technically it is not a VI any more?
Beforehand Thanks,
Rustam
02-12-2016 06:06 AM
I've ever used datasocket, but I don't see why it wouldn't work with VI reference... with the same VI, have you tried to pass a different type of data? or with a control reference?
If indeed datasocket don't work with VI Reference you can use VIServer to share VI references between 2 applicationa, I know it work because I sometimnes use this.
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
02-12-2016 06:07 AM
Yes I did try another types of the data and everething works fine except the VI reference.
02-12-2016 06:12 AM
I tried Shared Variable and found that it doesn't allow to create variable for the VI reference too.
02-12-2016 06:25 AM
>> If indeed datasocket don't work with VI Reference you can use VIServer to share VI references between 2 applicationa, I know it work because I sometimnes use this.
Could you give me a bit more details about how to do that, it looks like I not quite understand what you mean?
02-12-2016 07:06 AM
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
02-12-2016 07:17 AM
I will, Thanks a lot!
02-12-2016 11:08 AM
You can probably typecast the reference to an integer, and typecast back to a reference on the other end, but I doubt the reference will be valid if the sender and receiver are different executables. Normally references are valid only within the context of the application that creates the reference.
02-12-2016 11:28 AM
Normally references are valid only within the context of the application that creates the reference.
That is very true, and you need to get app's ref of the VI you want to work on otherwise it won't work.
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
02-12-2016 11:58 AM
Well, I tried to hide VI reference inside variant or cluster but it doesn't work unfortunately, on the other side it appears corrupted.