VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Channel Faulting with Data Playback

Solved!
Go to solution

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)?

0 Kudos
Message 1 of 5
(5,656 Views)

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.  

Regards,

Eric L.
Applications Engineering Specialist
National Instruments
0 Kudos
Message 2 of 5
(5,631 Views)

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

0 Kudos
Message 3 of 5
(5,621 Views)

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.

Jarrod S.
National Instruments
0 Kudos
Message 4 of 5
(5,612 Views)
Solution
Accepted by topic author MJMiller

Not sure how I missed that...  That is exactly what I was looking for.

 

Thanks,
Matt

0 Kudos
Message 5 of 5
(5,603 Views)