04-08-2008 08:51 AM
04-08-2008 02:05 PM - edited 04-08-2008 02:06 PM
04-09-2008 01:00 AM
04-10-2008 12:34 AM - edited 04-10-2008 12:36 AM
Hi schwede,
I had a quick look at you routines yesterday. I think its probably due to Ausgangsdaten being an empty array right up until the code module VI (EasyDriveControl.VI) returns with Ausgangsdaten defined in size and values.
Try writing the array back to TestStand before you return from EasyDriveControl.VI using the TestStand PropertyObject.SetVal method.
Regards
Ray Farmer
04-10-2008 01:04 AM
Hello,
your are right, there is something with the vi. I have tried to use the standard numericarray (which is not been used in the vi). And it works, i get no error. But i have no data from the vi!!!!!
Have you a short example for me, i don`t know which elements you mean and where to build in.
thankyou
schwede
04-10-2008 06:16 AM
Hi,
I will try to sort something out this evening for you.
Regards
Ray Farmer
04-10-2008 06:36 AM
04-10-2008 03:22 PM - edited 04-10-2008 03:28 PM
Hi Schwede,
I have looked at your problem and its down to not handling your data flow correctly in EasyDriveControl.VI.
At the end of the VI you write to Step.Ausgangsdaten the contents of Ausgangsdaten. Unfortunately when the VI starts it passes the empty array the TestStand - SetVal Property VI because it has no dependancy on the while loop which is where the Ausgangsdaten terminal is populated.
The next time, because the VI remains in memory the contents of Ausgangsdaten is no longer empty and therefore passes something back to TestStand even though its probably wrong.
I have placed a sequence frame around it so as to define a dependancy on the output of the while loop before the valves are past to TestStand. But equally you could have used a shift register on the While loop and then connected the output of the shift register straight to the TestStand VI input and therefore avoided the use of the Local variable.
But equally you could have just taken the output of the VI and connected to Step.Ausgangsdaten when you specify the inputs and outputs within TestStand Editor and therefore you dont need the TestStand -Set Value Property.VI.
Notice, I have connected Ausgangsdaten to Step.Ausgangsdaten back in TestStand and therefore you dont need the TestStand - Set Value Property.VI at the end of EasyDriveControl.vi.
Hope this helps
Regards
Ray Farmer
04-11-2008 12:35 AM