Month: July 2024
Why does parpool sometimes fail to initialize seemingly randomly and sometimes it works?
Hello everyone,
this is my first question so please be lenient with me.
I am using the following code to read multiple .his image sequences and then save each image of the sequences to a single .tif file.
parpool(8)
im=num_dithering*numICpoints;
parfor ii=1:num_dithering
temp=zeros(sizesequence);
for jj=1:numICpoints
temp=temp+double(readHISfile1([projectionFolder,sprintf(‘proj_dither_%01d_IC_%01d.his’,ii-1,jj-1)]));
end
temp=temp/numICpoints;
for i=1:numOfProj
imwrite(uint16(squeeze(temp(:,:,i))),[tempFolder,sprintf(‘proj_%04d_dither_%01d.tif’,i,ii)])
end
end
disp("saved raw projections")
delete(gcp)
I noticed that every few times i try to do this initializing the interactive session fails and i get this error message:
Error using parallel.internal.pool.InteractiveClient>iThrowWithCause (line
678)
Failed to initialize the interactive session.
Error using
parallel.internal.pool.InteractiveClient>iThrowIfBadParallelJobStatus
(line 818)
The interactive communicating job finished with no message.
I already checked if i run out of memory, but it seems all fine. When I get this error message I usually just rerun my script and then it works with no change of the code. Does anyone have an idea what the problem could be? I am using the Matlab version 9.9.0.1538559 (R2020b) Update 3. Thanks for your help!Hello everyone,
this is my first question so please be lenient with me.
I am using the following code to read multiple .his image sequences and then save each image of the sequences to a single .tif file.
parpool(8)
im=num_dithering*numICpoints;
parfor ii=1:num_dithering
temp=zeros(sizesequence);
for jj=1:numICpoints
temp=temp+double(readHISfile1([projectionFolder,sprintf(‘proj_dither_%01d_IC_%01d.his’,ii-1,jj-1)]));
end
temp=temp/numICpoints;
for i=1:numOfProj
imwrite(uint16(squeeze(temp(:,:,i))),[tempFolder,sprintf(‘proj_%04d_dither_%01d.tif’,i,ii)])
end
end
disp("saved raw projections")
delete(gcp)
I noticed that every few times i try to do this initializing the interactive session fails and i get this error message:
Error using parallel.internal.pool.InteractiveClient>iThrowWithCause (line
678)
Failed to initialize the interactive session.
Error using
parallel.internal.pool.InteractiveClient>iThrowIfBadParallelJobStatus
(line 818)
The interactive communicating job finished with no message.
I already checked if i run out of memory, but it seems all fine. When I get this error message I usually just rerun my script and then it works with no change of the code. Does anyone have an idea what the problem could be? I am using the Matlab version 9.9.0.1538559 (R2020b) Update 3. Thanks for your help! Hello everyone,
this is my first question so please be lenient with me.
I am using the following code to read multiple .his image sequences and then save each image of the sequences to a single .tif file.
parpool(8)
im=num_dithering*numICpoints;
parfor ii=1:num_dithering
temp=zeros(sizesequence);
for jj=1:numICpoints
temp=temp+double(readHISfile1([projectionFolder,sprintf(‘proj_dither_%01d_IC_%01d.his’,ii-1,jj-1)]));
end
temp=temp/numICpoints;
for i=1:numOfProj
imwrite(uint16(squeeze(temp(:,:,i))),[tempFolder,sprintf(‘proj_%04d_dither_%01d.tif’,i,ii)])
end
end
disp("saved raw projections")
delete(gcp)
I noticed that every few times i try to do this initializing the interactive session fails and i get this error message:
Error using parallel.internal.pool.InteractiveClient>iThrowWithCause (line
678)
Failed to initialize the interactive session.
Error using
parallel.internal.pool.InteractiveClient>iThrowIfBadParallelJobStatus
(line 818)
The interactive communicating job finished with no message.
I already checked if i run out of memory, but it seems all fine. When I get this error message I usually just rerun my script and then it works with no change of the code. Does anyone have an idea what the problem could be? I am using the Matlab version 9.9.0.1538559 (R2020b) Update 3. Thanks for your help! parpool, parfor MATLAB Answers — New Questions
issue with the IP
I am trying to generate an IP from Simulink using the example HDL OFDM Transmitter (openExample(‘whdl/WHDLOFDMTransmitterExample’)). I am using HDL Coder to generate the IP. However, during the process of setting the interface, I am encountering an issue where I cannot set the interface for the ‘txdata’ output in the diagram. My ‘txdata’ output is an imaginary number, and it is giving me an error stating that you cannot set an interface for an imaginary number.
Additionally, when I add the IP to Vivado, I am not seeing the interface for my input ‘data’ and output ‘txdata’. Below, I have included three pictures: the Simulink design, the interface block, and the Vivado IP.
Note: I am using MATLAB 2023b and Vivado 2019.1 versions.I am trying to generate an IP from Simulink using the example HDL OFDM Transmitter (openExample(‘whdl/WHDLOFDMTransmitterExample’)). I am using HDL Coder to generate the IP. However, during the process of setting the interface, I am encountering an issue where I cannot set the interface for the ‘txdata’ output in the diagram. My ‘txdata’ output is an imaginary number, and it is giving me an error stating that you cannot set an interface for an imaginary number.
Additionally, when I add the IP to Vivado, I am not seeing the interface for my input ‘data’ and output ‘txdata’. Below, I have included three pictures: the Simulink design, the interface block, and the Vivado IP.
Note: I am using MATLAB 2023b and Vivado 2019.1 versions. I am trying to generate an IP from Simulink using the example HDL OFDM Transmitter (openExample(‘whdl/WHDLOFDMTransmitterExample’)). I am using HDL Coder to generate the IP. However, during the process of setting the interface, I am encountering an issue where I cannot set the interface for the ‘txdata’ output in the diagram. My ‘txdata’ output is an imaginary number, and it is giving me an error stating that you cannot set an interface for an imaginary number.
Additionally, when I add the IP to Vivado, I am not seeing the interface for my input ‘data’ and output ‘txdata’. Below, I have included three pictures: the Simulink design, the interface block, and the Vivado IP.
Note: I am using MATLAB 2023b and Vivado 2019.1 versions. simulink, hdlcoder, vivado MATLAB Answers — New Questions
Troubleshooting Page Deletion.
I am not able to delete the second and third page of the uploaded CV document as deletion of second page requires first deletion of table cells on that page but when I delete the table cells it deletes the table cells and it’s content on first page too which obviously is unintended. I want to delete the empty second and third page only without causing any harm or alteration to the content, layout and format of first page.
I am not able to delete the second and third page of the uploaded CV document as deletion of second page requires first deletion of table cells on that page but when I delete the table cells it deletes the table cells and it’s content on first page too which obviously is unintended. I want to delete the empty second and third page only without causing any harm or alteration to the content, layout and format of first page. Read More
SharePoint List conditional formatting compare columns
Hi,
I have a SharePoint list to manage rental invoices and ensure the amounts on the invoices are the same as they are on the lease agreement.
The invoices are captured in this SharePoint list. I have a lookup column pulling what the amount must be from another list containing the amounts as stated in the lease agreements for each of our leased properties.
So, when entering the amount charged on the invoice, one can see what it should be in another column.
I would like to set up conditional formatting so that the 2 columns are compared and highlighted if there is a difference.
The lookup column is “SiteName:RentPerMonth” and the column to be populated is “Rent”. Both are number columns
I have tried the following in “edit current view”, but I’m probably doing something wrong
{
“$schema”: “https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json”,
“style”: {
“color”: “=if([$Rent] != [$SiteName_x003a_RentPerMonth], ‘green’,’red’)”
}
}
Hi, I have a SharePoint list to manage rental invoices and ensure the amounts on the invoices are the same as they are on the lease agreement. The invoices are captured in this SharePoint list. I have a lookup column pulling what the amount must be from another list containing the amounts as stated in the lease agreements for each of our leased properties.So, when entering the amount charged on the invoice, one can see what it should be in another column.I would like to set up conditional formatting so that the 2 columns are compared and highlighted if there is a difference.The lookup column is “SiteName:RentPerMonth” and the column to be populated is “Rent”. Both are number columns I have tried the following in “edit current view”, but I’m probably doing something wrong {
“$schema”: “https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json”,
“style”: {
“color”: “=if([$Rent] != [$SiteName_x003a_RentPerMonth], ‘green’,’red’)”
}
} Read More