03-02-2010 09:02 PM
03-02-2010 09:04 PM
03-04-2010 09:16 AM
Hello,
Here is a good KB that explains the caveats: http://digital.ni.com/public.nsf/allkb/5FE3C48E8E1C3D018625722900681AF6?OpenDocument
03-04-2010 03:51 PM
03-08-2010 11:01 AM
Hey Sarasvisu,
I have not personally tried to do this, but here is another KnowledgeBase that might help a little more. It specifically talks about structured datatypes being passed to a LabVIEW dll from Teststand, so I'm hoping it's a little more pertainent to what you're trying to do here. Let me know if it helps and if it solves it, mark it as solved so someone else who's looking to do the same thing in the future can quickly find their answer.
03-09-2010 04:11 PM
Hi Cole Train,
Thanks for your reply. I have included that KB in my original post. In fact i learned to pass structs only by looking at that KB. But i could not extend that to pass array of structs. It would have been nice if that KB talks about array of structs as well. When i create an array of cluster datatype in Teststand, there is no way to mention it is a Labview Array. The only option i have is Pointer to Array and Embedded Array. But for example, when you create an array of string, you can store the array as 1. Labview Array 2. Embedded Array 3. Pointer to Array. For some reason, the labview array option does not appear when you create array of structs.
03-23-2010 04:45 PM - edited 03-23-2010 04:46 PM
It would have been nice if you would have attached the source code for the LabVIEW built DLL. When I attempted to modify your sequence and call the ErrorPrompt function of the DLL, I was prompted with a LabVIEW Front Panel, which I had no idea how to use. I also could not resize this panel. Perhaps you could tell me how I should be using this dialog:
Nevertheless, I made some modifications to the step in your sequence file. Please try this out.
I would really appreciate it if you let me know if it works, or if it doesn't work. If it works, I will explain the changes I made. Hope this helps.
P.S. The sequence file attached is TestStand 4.2 compatible.
03-23-2010 07:31 PM
HI Manooch_H,
Thanks for your response. I tried your sequence. Though it does not give any error, i am still unable to pass array of clusters to the labview DLL. I have attached the source code, your sequence (modified to suit parameters), and the DLL. I would not mind even if the array of clusters must have a fixed size.
03-24-2010 09:08 AM
Hello Sara -
Thank you for attaching your files. I spent a little time attempting to get this working, then I decided to look further into our documentation. Unfortunately, this is currently a Known Issue (158938) and limitation in TestStand. Please see the link below for information on this Known Issue. You can use the Known Issue ID to check the Bug Fix List for future versions of TestStand to see if this issue has been resolved or not.
I would like to point out that you can accomplish this task by simply calling a VI. Is there a particular reason you prefer calling a LabVIEW built DLL as opposed to a LabVIEW VI?
03-24-2010 04:45 PM