02-11-2019 01:36 PM
Is there a way of using TestStand array expressions to achieve the functionality that LabVIEW ramp by delta function has: https://forums.ni.com/t5/LabVIEW/how-to-best-initialize-array-to-sequence-of-values/m-p/3360005/high...
Solved! Go to Solution.
02-12-2019 09:28 AM
Hi SumitN,
The attached sequence file uses a for loop with an expression to generate a similar vector to the ramp by delta but this begs the question: why wouldn't you just use that function in LabVIEW and output the result back to TestStand?
02-12-2019 10:52 AM
Hi SumitN,
If you wanted to do this within TestStand, rather than call a LabVIEW VI, it can be easily be implemented through a Statement step:
This can be achieved by configuring the expressions and looping as follows:
I've attached an example sequence with the above step included.
I hope this helps.
Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)
Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor
02-12-2019 01:33 PM - edited 02-12-2019 01:34 PM
@DJColeslaw
Creating a VI just to create a array of sequential values seems an overkill since this seems like a simple task which can be done in TestStand expressions. All I need is an array with an increment/delta of 1. The other option is to call "Ramp pattern by delta.vi" from vi.lib in program files but this will create a headache for me for deployment.
I wasnt able to open your sequence since its in TestStand 2017 whereas I am at 2016.
02-12-2019 01:35 PM
@CharlieRodway
Thanks this was what I was looking for.
02-12-2019 01:39 PM
No problem, glad I could help!
Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)
Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor
02-12-2019 02:11 PM
@SumitN,
Thanks for the reply and sorry for the version conflict! That definitely makes sense, I just wanted to understand your use case in case there are additional alternatives which weren't being covered. Sounds like a simple looping statement will cover it for you, though. Have a good one!