LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

May I ask how to implement this logging function so that every step of execution is recorded in log.txt

微信图片_20251015103218_17029_1.png

 

Is there any expert who can write a demo for me to learn from

0 Kudos
Message 1 of 11
(402 Views)

Every step from where?

This looks like a communication log for GPIB or VISA.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution
0 Kudos
Message 2 of 11
(386 Views)

yes,How can I add the SCPI instruction to the log 

0 Kudos
Message 3 of 11
(374 Views)

Hi,

 


@留白 wrote:

yes,How can I add the SCPI instruction to the log 


By writing the string to the log file!

 

What's the problem?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 11
(358 Views)

Could you write a demo for me to learn from

0 Kudos
Message 5 of 11
(355 Views)

Hi,

 


@留白 wrote:

Could you write a demo for me to learn from


You want me to place a WriteTextFile function on an empty block diagram?

 

  • You should know how to write data to a file.
  • You should know how to use subVIs (or a QMH) to handle data/messages.
  • As you want to write "every step" you need to write "every SCPI message" to your log file...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 11
(335 Views)

Yes,I want to write "every step" you need to write "every SCPI message" to your log file...

0 Kudos
Message 7 of 11
(331 Views)

@留白 wrote:

微信图片_20251015103218_17029_1.png

 

Is there any expert who can write a demo for me to learn from


Where did you got this log are you able to get the read SCPI data from your DUT?, Is the problem is only with Logging in the above format?

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 8 of 11
(305 Views)

use a function write file everytime you call visa write. 

 

LVNinja_0-1760538400174.png

LVNinja_1-1760538434199.png

 

0 Kudos
Message 9 of 11
(293 Views)

The logging function of C#

0 Kudos
Message 10 of 11
(272 Views)