NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Giving delay in consecutive inputs

Hi Ray Farmer,
 
Thank you very much for your quick reply. It is working fine. But how to use Activex controls to achieve multi threading?
Which one is better if you want to test some 200 test cases?
 
One more query, I want to give 5 - 8 inputs in single test step and while running it should have say 10 sec delay to assign another input.
Like I am having a VI which will take 5 inputs. I had given 5 inputs in the single test step, Now while running the VI, First say 5 is assigned to some variable "A" and then it should wait 10seconds and then assign 6 to variable "B" and so on...
 
Is there any way to achieve this in test stand?
 
I got one idea but it is too cumbersome. In first test step I will give input "A". Then I will put wait condition. Then again I will call the same VI n this time I will give input "B". But here the problem is in every test case I need to give atleast 8 inputs. So if you do like this I will get so many sequence files for 200 test cases. So can you tell me what approach I have to follow for this?
 
Regards,
Nagaraju
 
 
Regards,
Nagaraju
0 Kudos
Message 1 of 4
(3,176 Views)
Howdy Nagaraju,
 
I don't quite understand your question with regards to using ActiveX controls to achieve mult-threading. What exactly do you mean? Do you VIs that you are calling from TestStand contain ActiveX controls and you are worried about issues?
 
Secondly, with regards to your next question, I would like to first ask why you are trying to have delays in between the times when variables are assigned? How does this help your application? Next, if you are sending inputs into your LabVIEW VI and you want those to be delayed before they are set, you could put delays in LabVIEW. If you are going the other direction, then you don't have that option. But again, if you can provide some information about what you are trying to acheive, we could perhaps give you a better solution.
 
Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 2 of 4
(3,163 Views)

Hi Jonathan,

Thanks for your reply.

In my question I asked about Multi Threading and ActiveX. One of my colleague told that We can run 2 VI parallely by using ActiveX controls which he does not know and he told Multi Threading is not so good to use in Applications. That's why I asked which one is better, Multi Threading or ActiveX. But Ray gave solution in Multi Threading only.

So can you tell me, is it possible to run 2 VI's parallely using ActiveX controls? If we are able to run 2 VI's parallely through ActiveX controls, which method is best? Because I dont know whether we can run 2 vi's using ActiveX controls. So please clarify this.

Coming to my second question, I am having a simulation of driver panel. In that first driver has to occupy the cabin. After this operation one message will be displayed on say some "X" panel. After the message is displayed I need to operate the driver panel with the next input. The message what we are expecting is displayed, we can perform next operation. So  after 5 or 10 seconds I want this operation to be performed because the hardware is taking some time to display this message. That's why I need some delay for setting the inputs in VI.

Please tell me a method where I should not change any code segment.

Thanks and Best Regards,

Nagaraju

91 - 9440 - 40 - 5322

Regards,
Nagaraju
0 Kudos
Message 3 of 4
(3,147 Views)
Hi Nagaraju,
 
Multithreading is necessary if you are trying to run 2 VIs in parallel. The suggestions made on the post that Ray mentioned are exactly the options you have.  I would recommend re-reading what they mentioned in that post. 
 
Secondly, I am still really confused on what your second questions is. When you drop down a LabVIEW step in TestStand, you specify what variables you are storing that correspond to the LabVIEW VI's connector pane. You can put a Wait step down which will delay moving from step to step that is found under the Synchronization category when you insert a step.
 
It sounds like you are just beginning your journey of using LabVIEW and TestStand so I would recommed looking at the "Using LabVIEW with TestStand" pdf document found under Help >> Search the TestStand Bookshelf. 
 
Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 4 of 4
(3,129 Views)