VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

read and write text file model

Hi all,

I am trying to track the time something runs with veristand when a certain threshold is reached. I have made a lab view model that is basically a counter. The counter sends a value to a txt file and reads it in the next iteration. Works on labview but when I make a model out of it, i cant get the read and write of the model to work. Any suggestions?

 

I have attached the code.

Veristand 2018 SP 1

Lab view 2018 SP 1

0 Kudos
Message 1 of 2
(1,299 Views)

I don't think you can do a text file from a model in VeriStand.  If all you need is time something runs I can think of several ways to do this.  I would make the model use the system time (from VS) and when condition goes high, capture the system time, then subtract the captured time from the current time each iteration. When the signal goes low then you stop subtracting and you have the "event" time.  If you need this output to a file, I would write a stimulus profile to record it in TDMS or CSV.  If you write a Stimulus Profile  you can do all the event monitoring and condition in it and don't need a model.  You can start recording on the "event" going high in a Stimulus Profile.  Hope that helps.

0 Kudos
Message 2 of 2
(1,283 Views)