Is there any feature in ParaView to plot isotemperature and isodensity surfaces in a CGNS file? - paraview

I am trying to make some visualizations of my CGNS file utilizing ParaView software. I am wondering if there are any features to make iso-surfaces (i.e., isotemperature and isodensity surfaces).
Notes:
The MPI version of the software is installed on a Windows 10 machine.
The computer on which the software is installed, is connected to a company's network.
Things I have tried:
Selecting the "Volume" representation, then in the Properties panel, enable “Show Isosurfaces” property and specify the isosurfaces values. But, I am receiving the following error message as soon as I choose the "Volume" representation from drop down menu.
ERROR: In C:\glr\builds\paraview\paraview-ci\build\superbuild\paraview\src\VTK\Common\ExecutionModel\vtkCompositeDataPipeline.cxx, line 155
vtkPVDataRepresentationPipeline (000001FB131A02B0): Can not execute simple algorithm vtkStructuredGridVolumeRepresentation without output ports
https://cvw.cac.cornell.edu/Paraview/isosurfaces but my Contour feature is not available.

Related

MONAILABEL Slicer plugin | pelvis segmentation in MRI

I want to segment pelvic in MRI from the SMIR dataset using the MONAILABEL plugin. I have read relatively a lot about this plugin. However, I can’t perform the segmentation well enough yet.
These are the steps I take to do so:
connecting the server using the anaconda prompt
enabling the plugin in Slicer and loading one image
labeling the pelvis manually using the paint button in the scribbles part and the updating
click “submit label”
and then repeating the process for some other images while the network is being trained.
After the training process, I actually could not see anything when opening the mask files.
I also encounter these two errors:
" AssertionError: Not a valid Label "
" TypeError: object of type ‘NoneType’ has no len() "
Is it the correct way of using MONAI or am I missing something?
Which aspects should I take into account before starting the process?
I would appreciate your help and suggestions.
Thank you

Windows Defender to find localization numeric value for Reporting

i need to create some SSRS reports For Windows Defender .. i need to find localization numeric values for Detection source
Detection Source: <Detection source> for example:
User: user initiated
System: system initiated
Real-time: real-time component initiated
IOAV: IE Downloads and Outlook Express Attachments initiated
NIS: Network inspection system
IEPROTECT: IE - IExtensionValidation; this protects against malicious webpage controls
Early Launch Antimalware (ELAM). This includes malware detected by the boot sequence
Remote attestation
Reference link enter link description here
i need to select in case so i need to know numeric values for each of option.
one thing is can use
SrsResources.Localization.GetString(Choose(Fields!DetectionSource.Value,"DetectionByUser","System","Realtime","IOAV","NIS","BHO","ELAM","LocalAttestation","RemoteAttestation","AMSI","UAC"), User!Language)
but then i dont have acces to Visual Studio as iam database person.. so cant create DLL and include in reference of report.
Please help me out how to find numeric values to each one of these.
From the statement SrsResources.Localization.GetString, I am guessing that you're using SCCM since that exact statement is part of the SCCM report:
Endpoint Protection -> Endpoint Protection - Hidden -> Computer malware list
If that's the case, then just copy the report and change what you need and the function will work.
Because in the report properties the srsresources.dll is referenced as SrsResources, culture=neutral, the dll is needed in order to translate the value to the correct name in the language the user running the report is using.
If you're just interested in the numeric values behind each entry, however, then it is just a list starting with one. Meaning:
"DetectionByUser",
“System",
“Realtime",
“IOAV",
"NIS",
"BHO",
"ELAM",
“LocalAttestation",
"RemoteAttestation",
"AMSI",
"UAC"

B&R Automation Studio transfer post event

Is there any way to execute a post project transfer event when transferring a project to a PLC?
I want to automatically change the value of a variable using fx the PVI interface every time I do a transfer.
I am not entirely sure what the usecase is for this. However the easiest way for some kind of post transfer script would be to utilize the Runtime Utility Center (RUC).
In the RUC, you can define instruction lists for a B&R PLC with an online connection. This includes instructions for transferring projects and setting values of process variables (PVs).
For transferring the project with RUC, you need to create a RUC package. This can be done under Settings/Export to Runtime Utility Center. You could also do this from the command line. More details in the help under Project management/Project installation/ Performing project installation/Export RUC Guid: cfe34190-f436-4c14-b06d-3a4ca39be7e7
This will create a zip, which you can then use in your RUC. For transfer command there is a wizard which activates when you double click on the command Transfer to target under Project installation The result is a line in the instruction list, which might look like this:
Transfer "C:\path\to\your\zip\project.zip", "InstallMode=Consistent InstallRestriction=AllowUpdatesWithoutDataLoss KeepPVValues=1 ExecuteInitExit=1"
After transferring you can write your PV. Under Process variable functions in the RUC you can find the command Write process variable. Also here there is a wizard and the result looks like this:
WriteVariable "taskname\VariableName", "USINT", "2"
I am using AS 4.4.6. There might be slight differences when using a other version.

Executing g-code from file within a ST-program in the software Automation Studio from B&R

I have a 3-axis system, which resembles the CNC-axis, and a PowerPanel from B&R. Now I plan to execute the g-code, which I read from a file, which is fe located in the Downloads folder. This will be done with fbs from B&R Automation Studio.
I got confused with the help, since it says in drive engineering/mapp Motion/technologie/function block/mpcnc3axis/description the part of moveProgram, where it redirects you to MC_BR_MoveProgram \ description. There stands that you can start the program with [Program name prefix] [File device name:] [Path] Program name syntax. Now I am not sure how to include this with my MpCnc3Axis code or if I can use the syntax also in MpCnc3AxisParType ProgramName part to start the program from fe Downloads Folder, since it didn't work with McPrgAdvParType InitProgramName.
Any links to related material would be appreciated.
I would also accept a solution with C, if it is easier.
Depending on if you are willing to buy software licences from B&R, running a CNC system is more or less easy.
The state of the art implementation is with mappMotion. It requires software licenses and gives you ready to go FUBs to execute nc files, jogging, direct movements, etc. This works the same way for different robot types and CNC kinematics. I recently uploaded a small implementation of a robot on GitLab: https://gitlab.com/kirni/bur_robotic_sample
The alternative is the old ARNC0 approach. No more new features are implemented, but it is free - as long as you do not need any functions that require a Dual Use agreement (i.e. 5 Axis CNC, etc.). The implementation is rather complex and is definitely to extensive to be answered completely at stackoverflow.
However Automation Studio ships with a sample for a two axis CNC. In the logical view you can add a new object Library Samples which opens a dialog where you can select Samples/Motion/CNC system (2 axis)/LibARNC0_Basic_ST.zip. This would be the best starting point, which is also documented in the help in MotionControl/ACP10 ARNC0/Examples/CNC or guid: 4620bb1c-8694-4f27-87d0-805686d7c0c8 as of AS 4.4.4.64.
I hope this helps!

How can I close the report window after code generation using rtwbuild() for a Simulink model from the command line?

I'm trying to automate the building process of my Simulink models. I achieve to handle the configuration of these models as I want.
Then I start generation using the command :
rtwbuild('system', 'Mode', 'ExportFunctionCalls');
That's working pretty well. At the end of the generation, a window appears showing a report of the generation allowing me to browse the just generated code.
My script builds several models and I would like to close this window after each model generation in order to don't disturb the user with all those reports "poping out".
An even better solution would be to not even show this window. I don't need to see it in my generation process and I don't want the user to click the OK button for each report.
So, is there a way to prevent rtwbuild() command to show this report when it's done ? Or at least, is there a way to close this window from the command line after the generation ?
As suggested by #Navan in the comments, there is a model parameter for that.
So to disable the generation of the report (and therefore the opening of the report window), you can simply use the command :
set_param(system, 'GenerateReport', 'Off')
I also got some more information from the MATLAB support. It is also possible to generate this report but prevent the window from opening using these commands :
set_param(system, 'GenerateReport', 'On')
set_param(system, 'LaunchReport', 'Off')
I was using MATLAB R2011a. But since R2012, there are some dedicated methods to open/close code report :
coder.report.open
coder.report.close()