04-08-2013 09:37 AM
Is there a way to override a model output when I want to playback real data using the stim profile editor?
I get how to use the faulting from the stim profile editor to override a single output channel to a single value, but is there a way to "fault" the channel to the data that I would like to play back (.csv file)?
Solved! Go to Solution.
04-09-2013 06:03 PM
I do not believe there is a native way to do this using VeriStand's Fault Manager. However it would be possible to create a Conditional statement in the Stimulus Profile or a Calculated Channel that would trigger off of some kind of fault. This would basically switch between your model channel and your play back.
04-10-2013 07:16 AM
I was specifically trying to avoid that approach just because of how many extra channels that would end up creating (I have a lot of I/O). That is the great thing about the fault manager -- it allows me to override or fault model or mapped channels without having to add the extra stuff.
Your response is what I expected though... I was just hoping that I was missing something.
Thanks,
Matt
04-10-2013 08:50 AM
You can fault a model output from a stimulus profile when playing back a CSV file. See here for the syntax to do so. You will have two columns for the model output to be faulted. One determines the value to fault to for that timestep in the file. The next column determines the fault state at that time (0 = not faulted, 1 = faulted).
You could also write a real-time sequence that would fault a channel's value and play a waveform to override it.
04-10-2013 09:44 AM
Not sure how I missed that... That is exactly what I was looking for.
Thanks,
Matt