Hey there,
I have a LabView VI which controls a machine that obtains data and would like to analyze the data using a ROOT macro, create some plots, and write the plots to disk so that I can pull them up in Labview for the user to review. I have created a DLL for a ROOT macro that I am calling in LabView using the Call Library Function Node. The DLL is created in Microsoft Visual Studio 2013.
I can run this whole operation perfectly fine on my laptop running Windows 10. The canvas is never shown on screen, but it is saved to disk, which is all I need to do. However, when I try to run the same thing on the lab computer running Windows 7, Labview will crash with error code 1097 when I attempt to call TCanvas::Print() or TGraph::Write() when writing to a root file. The ROOT and Labview installations are exactly the same on both machines. I’ve tried to use gROOT->SetBatch() to quell any potential errors involving ROOT’s interaction with the screen, but this doesn’t prevent the crash. I have no issues reading or writing text files to disk using the DLL, so it’s not a permissions issue.
Attached are ITkModuleAnalysis.cpp (2.3 KB)
the ROOT macro anddata.txt (33.8 KB)
data file for testing. I run Labview 2015 and ROOT v5.34.34. Can anyone offer help/advice/ideas on how to fix or further investigate this odd behavior?
Thanks!