04-18-2023 06:38 AM
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
04-18-2023 10:00 AM
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....
01-31-2024 11:49 AM
Did you get this working?
02-01-2024 10:29 AM
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?
02-01-2024 10:42 AM
This got me up and running:-
02-02-2024 01:20 AM
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
02-02-2024 04:31 AM
Thank you so much for pointing me to that thread! It's working 🙂