VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to print something from my veristand model ?

I am develping a veristand model in C++, and I want the model to print some information on the screen of RT target

But 'cout' or 'printf' are useless.

And also I dont know which function could be used for such purpose in the 'veristand_framework.h'

Could I get an answer?

0 Kudos
Message 1 of 7
(1,710 Views)

According to Access Console and VeriStand Logs for NI-Linux Real-Time Targets, the screen or console output is just /dev/vcs.

You should try writing to the console instead. I have never tried this myself but I think they might work.

How to log to file and to console

linux - Redirect script output both to console and to log

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 2 of 7
(1,685 Views)

Sorry but my target is running Pharlap…

0 Kudos
Message 3 of 7
(1,666 Views)

Sorry but my target is running Pharlap…

0 Kudos
Message 4 of 7
(1,665 Views)

On Pharlps target I simply use printf in DLL C++ code and it sends the outputs to the connected screen.

0 Kudos
Message 5 of 7
(1,652 Views)

Thx,and I have tried printf but nothing was printed on the target's screen.

Which head file should I include if I want to use printf?

 

0 Kudos
Message 6 of 7
(1,566 Views)

Standard include : <stdio.h>. Maybe there's an option in your BIOS or in some INI file to activate / deactivate the stdout stream ? You could try a support from NI.

0 Kudos
Message 7 of 7
(1,553 Views)