‎02-16-2023 06:30 AM
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?
‎02-16-2023 11:28 AM
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
‎02-16-2023 09:18 PM
Sorry but my target is running Pharlap…
‎02-16-2023 09:19 PM
Sorry but my target is running Pharlap…
‎02-17-2023 12:32 AM
On Pharlps target I simply use printf in DLL C++ code and it sends the outputs to the connected screen.
‎02-21-2023 01:24 AM
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?
‎02-21-2023 03:15 AM - edited ‎02-21-2023 03:16 AM
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.