You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that the BaseFilename_config.xml that gets saved with a recording is writing a configuration with outdated attributes if they were changed with commands after the server was started.
Can someone confirm if these attributes should reflect the current state at time of start recording instead of always being the attributes from when the server was started? Is this a bug across devices or maybe the device class I'm using just isn't handling the update correctly to then be written?
The text was updated successfully, but these errors were encountered:
Here is a code snippet which demonstrates the usage James is wondering about:
vtkXMLDataElement* configRootElement =
vtkXMLUtilities::ReadElementFromFile(configFilePath.c_str());
vtkPlusConfig::GetInstance()->SetDeviceSetConfigurationData(configRootElement);
vtkSmartPointer<vtkPlusDataCollector> dataCollector =
vtkSmartPointer<vtkPlusDataCollector>::New();
dataCollector->ReadConfiguration(configRootElement);
vtkSmartPointer<vtkIGSIOTransformRepository> transformRepository =
vtkSmartPointer<vtkIGSIOTransformRepository>::New();
transformRepository->ReadConfiguration(configRootElement);
dataCollector->Connect();
dataCollector->Start();
// change some options at run time
dataCollector->GetDevice(aDevice, "VideoDeviceWP");
winprobeDevice = dynamic_cast<vtkPlusWinProbeVideoSource*>(aDevice);
winprobeDevice->SetTransmitFrequencyMHz(txFrequency_float);
winprobeDevice->SetScanDepthMm(ssDepth_float);
if (runtimeCondition)
winprobeDevice->SetBRFEnabled(true); // RF modeelse
winprobeDevice->SetMModeEnabled(true); // M-mode// finally record stream to file
dataCollector->GetDevice(aDevice, "CaptureDeviceWP");
pVirtualDiscCapture = vtkPlusVirtualCapture::SafeDownCast(aDevice);
pVirtualDiscCapture->OpenFile(temp.c_str());
pVirtualDiscCapture->SetEnableCapturing(true);
Sleep(5000); // record for 5 seconds
pVirtualDiscCapture->SetEnableCapturing(false);
pVirtualDiscCapture->CloseFile();
What is written to BaseFilename_config.xml? The same file from configFilePath or is a new configuration file constructed at the time of pVirtualDiscCapture->SetEnableCapturing(true);?
It appears that the BaseFilename_config.xml that gets saved with a recording is writing a configuration with outdated attributes if they were changed with commands after the server was started.
Can someone confirm if these attributes should reflect the current state at time of start recording instead of always being the attributes from when the server was started? Is this a bug across devices or maybe the device class I'm using just isn't handling the update correctly to then be written?
The text was updated successfully, but these errors were encountered: