VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

niveristand-python:NIVeriStand.Workspace2.StartDataLogging

We plan to use :[py:method]: niveristand.legacy.NIVeriStand.Workspace2.StartDataLogging to record log, and I am not very clear about the meaning of this input parameter(configuration_name, loginfo),Does configuration_name mean 'xxxx.nivslspec'? And what does the ‘loginfo’ refer to?I would appreciate it if you could provide an example to illustrate

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

The .NET API help provides more description for both of those input parameters: https://www.ni.com/docs/en-US/bundle/veristand-net-api-reference/page/veristandsdapi/html/m_national....

 

For configuration_name, you are correct that it is just the string name of the logging configuration. loginfo refers to the configuration settings for that log file, you can refer to the potential settings here https://www.ni.com/docs/en-US/bundle/veristand-net-api-reference/page/veristandsdapi/html/allmembers....

Brian.D
NI Product Owner
VeriStand
0 Kudos
Message 2 of 7
(1,667 Views)

Did you get this working?

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

I am also interested in this topic. I have done a few tries myself, creating a LogInfo object via the NIVeristand CreatLogInfo function and configuring the log channels using SetLogInfoChannels, but it doesn't work. Also, there is no function to configure the trigger..

 

Has anyone got this working?

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

Hello, as I remember, we had the same issue some months ago. We tried several scenarios by calling the API from C#. Finally the problem was because all the fields of the input structure have to be initialized with consistent values (no null allowed). I'm not sure but I think that the point is: unused string have to be passed as empty strings not null strings.

Good luck

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

Thank you so much for pointing me to that thread!  It's working 🙂

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