12-18-2025 03:41 AM - edited 12-18-2025 04:17 AM
Hi to all
I have a strange behavior with a LabVIEW Module which I use in a Subsequnce and use an Object Reference for Value passing.
I have created an exmaple to demonstrate the behavior.
I have the "MainSequence" in which I call three times the Subsequence "GetRandomNumber":
As Paramter I use an ObjectRefrence:
In the "GetRandomNumber" Subsequence I call a LabVIEW Module and assign its Output (a Variant) to the ObjectReference:
The strange behavior is that I get three times the same RandomNumber in the ObjectReference. It seems something strange with the ObjectReference.
I have alos added a direct call of the LabVIEW Module and assign its Output to the ObjectReference:
With the direct call of the LabVIWE Module I get three Times a different Value in the ObjectReference
What I'm doing wrong?
12-18-2025 06:30 AM
Disclaimer: I haven't looked at the code you have attached
Just for the sake of completeness, there is a random function in TS also, so unless you need something very fancy here 😉
What you are describing sounds odd! Do you get the expected (three different) results, if you set the ObjectReference to Nothing in between the sequence calls?