VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Printing Real Time Sequence Code

Hi,

I was wondering if there was an existing way to print or save real time sequence code as it appears in the Stimulus Profile Editor. With some preliminary testing, it seems clear that this functionality can be built up using the .NET API, but the time it will take me to develop this won't be trivial. Seeing as parsing the file is already done in the Stimulus profile editor, I thought I would check to see if this is available before embarking on the work.

cheers

Stuart

0 Kudos
Message 1 of 21
(3,475 Views)

Hello - I have the same desire. Did you ever find a way to print out the code from the stimulus profile editor?

Thanks!

Best Regards,

Richard

0 Kudos
Message 2 of 21
(3,064 Views)

Hi Richard,

I made a quick attempt using the .NET API and made decent headway but still had some bugs to work out. The original requirement in my project to retain readable copies of sequences that were run was somewhat mitigated by the fact that you can just save the RTS' on a run by run basis and use the SPE to view them. Yes, you have to have VeriStand installed on a machine to read them, but to run them you have to have it installed anyway, and there wasn't a strong case for someone needing to read through them at their desk somewhere that justified prioritizing the work at the time.

I believe I made a bunch of subVIs to extract and format the text of each statement type. I think I was slowed down by dealing with nested functions; i.e. a switch with  a case that included and if statement that included another switch etc. I'll take a look at what I have and see if there's something worth salvaging there. I did some work recently using .NET to mine and modify system definitions so it's somewhat fresh in my mind.

cheers

Stuart

0 Kudos
Message 3 of 21
(3,040 Views)

Hello Stuart,


Thanks for the reply. If you do find something, I am happy to be a beta-tester 🙂

Mostly, I would like to have a printable/saveable document to refer to in code reviews with others and also for visual reference in making new RTS.

I don't get why NI didn't just allow a "print" of the RTS from the editor window. Seems to me that would be easy since it has to be screen rendered anyway.

 

Best Regards,


Richard

 

0 Kudos
Message 4 of 21
(3,033 Views)

Hi Richard,

I revisited my code and was able to get something working that seems to do the trick. I did fairly minimal testing and there are likely statement types I didn't come across so you would need to add those. It should be fairly simple following the example of the other cases. Let me know how it works.

cheers

Stuart

Message 5 of 21
(3,000 Views)

Hi Stuart. Thanks for this. I only have LV17 on the machine I have at home right now but I have LV19 on another machine at my office - I will try it tomorrow. Any general instructions? Just open the RTStoDisplayString VI and it will be obvious? 

 

Best Regards,


Richard

0 Kudos
Message 6 of 21
(2,995 Views)