Category: News
Polyspace Orange Scalar Overflow error
Attached the snippet of the scalar orange overflow error reported by polyspace in the project we are working with
how to overcome this orange error as we are sure the reported operation is within sint16 data type result ?Attached the snippet of the scalar orange overflow error reported by polyspace in the project we are working with
how to overcome this orange error as we are sure the reported operation is within sint16 data type result ? Attached the snippet of the scalar orange overflow error reported by polyspace in the project we are working with
how to overcome this orange error as we are sure the reported operation is within sint16 data type result ? codeprover, overflow MATLAB Answers — New Questions
When i call and run this code it just save the Phase1 results in CSvV file not other results .
When i call and run this code it just save the Phase1 results in CSvV file not other results .When i call and run this code it just save the Phase1 results in CSvV file not other results . When i call and run this code it just save the Phase1 results in CSvV file not other results . matlab code, matlab coder MATLAB Answers — New Questions
Problems with display country in sharepoint column
Hi,
I have a sharepoint choice-column for selecting a country based on the iso-code (US,BE,NL,ES,…..)
I used json column formatting to display the countryflag :
Hi,I have a sharepoint choice-column for selecting a country based on the iso-code (US,BE,NL,ES,…..) I used json column formatting to display the countryflag :{“$schema”: “https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json”,”elmType”: “div”,”children”: [{“elmType”: “img”,”attributes”: {“src”: “=(‘https://flagcdn.com/w20/’ + toLowerCase(@currentField) + ‘.png’)”}},{“elmType”: “span”,”txtContent”: “@currentField”}]} Problem :when I edit the column : flags are shown.when display in view mode : the flags are not shown, only the two digitcode !! When i look at the source code, something very strange : there are two “src”-parameter in the img-tag ! <img src=”” data-untrusted-src=”https://flagcdn.com/w20/es.png”> Any help will be appreciated Read More
Does the NR HDL Downlink Receiver work on real raw data?
Hi, I have run the Downlink Receiver code with simulations (generated from the 5G Waveform Generator in MATLAB) and there are no issues there, however, when I try to tun the same code through collected raw data, it has never worked before (it says PSS not found). The collected data is confirmed to contain relevant information by other members of my research team, so the problem does not lie with the data itself. Has anyone faced a similar issue?
Do note that both the SSB detection code and the cell search code do not work.
Thank you so much for your help!
Here is the spectrogram of the data for reference:
Here is my code snippet for reference:
loaded_data = load("srsRAN_octoclock_samprate_2304_10MHz_scscommon_15khz_b200_fdd_n71_pci_1_2phones_onevoice.mat");
num_entries = 2e6; % number of entries to considered
rxWaveform = loaded_data.transposedData(1:num_entries);
minChanBW = 5;
Lmax = 100;
FoCoarse = 0;
rxSampleRate = 10e6;
%% Plot the spectogram of the waveform.
scsSSB = 15;
figure(2); clf;
nfft = round(rxSampleRate/(scsSSB*1e3));
spectrogram(rxWaveform(:,1),ones(nfft,1),0,nfft,’centered’,rxSampleRate,’yaxis’,’MinThreshold’,-110);
title(‘Spectrogram of the Received Waveform (15 KHz)’)
%% Detect SSBs
scsSSB = 15
[pssList,diagnostics] = nrhdlexamples.ssbDetect(rxWaveform,FoCoarse,scsSSB);
% Check if any PSS have been detected
if isempty(pssList)
disp(‘No PSS found during SSB detection.’);
return;
end
disp(‘Detected PSS list:’)
disp(struct2table(pssList));
%% Search for Cells
%%
% Define the frequency range endpoints and subcarrier spacing search space
% and call the |nrhdlexamples.cellSearch| function. The function displays
% information on the search progress as it runs.
% The frequency range endpoints must be multiples of half the
% maximum subcarrier spacing.
frequencyRange = [-120 120];
subcarrierSpacings = [15 30];
[ssBlockInfo,ssbGrid] = nrhdlexamples.cellSearch(rxWaveform,frequencyRange,subcarrierSpacings,struct(…
‘DisplayPlots’,false,…
‘DisplayCommandWindowOutput’,true));
% Check cell search successfully found and demodulated SSB.
if isempty(ssBlockInfo)
disp(‘Cell search failed to find or demodulate SSB.’);
return;
endHi, I have run the Downlink Receiver code with simulations (generated from the 5G Waveform Generator in MATLAB) and there are no issues there, however, when I try to tun the same code through collected raw data, it has never worked before (it says PSS not found). The collected data is confirmed to contain relevant information by other members of my research team, so the problem does not lie with the data itself. Has anyone faced a similar issue?
Do note that both the SSB detection code and the cell search code do not work.
Thank you so much for your help!
Here is the spectrogram of the data for reference:
Here is my code snippet for reference:
loaded_data = load("srsRAN_octoclock_samprate_2304_10MHz_scscommon_15khz_b200_fdd_n71_pci_1_2phones_onevoice.mat");
num_entries = 2e6; % number of entries to considered
rxWaveform = loaded_data.transposedData(1:num_entries);
minChanBW = 5;
Lmax = 100;
FoCoarse = 0;
rxSampleRate = 10e6;
%% Plot the spectogram of the waveform.
scsSSB = 15;
figure(2); clf;
nfft = round(rxSampleRate/(scsSSB*1e3));
spectrogram(rxWaveform(:,1),ones(nfft,1),0,nfft,’centered’,rxSampleRate,’yaxis’,’MinThreshold’,-110);
title(‘Spectrogram of the Received Waveform (15 KHz)’)
%% Detect SSBs
scsSSB = 15
[pssList,diagnostics] = nrhdlexamples.ssbDetect(rxWaveform,FoCoarse,scsSSB);
% Check if any PSS have been detected
if isempty(pssList)
disp(‘No PSS found during SSB detection.’);
return;
end
disp(‘Detected PSS list:’)
disp(struct2table(pssList));
%% Search for Cells
%%
% Define the frequency range endpoints and subcarrier spacing search space
% and call the |nrhdlexamples.cellSearch| function. The function displays
% information on the search progress as it runs.
% The frequency range endpoints must be multiples of half the
% maximum subcarrier spacing.
frequencyRange = [-120 120];
subcarrierSpacings = [15 30];
[ssBlockInfo,ssbGrid] = nrhdlexamples.cellSearch(rxWaveform,frequencyRange,subcarrierSpacings,struct(…
‘DisplayPlots’,false,…
‘DisplayCommandWindowOutput’,true));
% Check cell search successfully found and demodulated SSB.
if isempty(ssBlockInfo)
disp(‘Cell search failed to find or demodulate SSB.’);
return;
end Hi, I have run the Downlink Receiver code with simulations (generated from the 5G Waveform Generator in MATLAB) and there are no issues there, however, when I try to tun the same code through collected raw data, it has never worked before (it says PSS not found). The collected data is confirmed to contain relevant information by other members of my research team, so the problem does not lie with the data itself. Has anyone faced a similar issue?
Do note that both the SSB detection code and the cell search code do not work.
Thank you so much for your help!
Here is the spectrogram of the data for reference:
Here is my code snippet for reference:
loaded_data = load("srsRAN_octoclock_samprate_2304_10MHz_scscommon_15khz_b200_fdd_n71_pci_1_2phones_onevoice.mat");
num_entries = 2e6; % number of entries to considered
rxWaveform = loaded_data.transposedData(1:num_entries);
minChanBW = 5;
Lmax = 100;
FoCoarse = 0;
rxSampleRate = 10e6;
%% Plot the spectogram of the waveform.
scsSSB = 15;
figure(2); clf;
nfft = round(rxSampleRate/(scsSSB*1e3));
spectrogram(rxWaveform(:,1),ones(nfft,1),0,nfft,’centered’,rxSampleRate,’yaxis’,’MinThreshold’,-110);
title(‘Spectrogram of the Received Waveform (15 KHz)’)
%% Detect SSBs
scsSSB = 15
[pssList,diagnostics] = nrhdlexamples.ssbDetect(rxWaveform,FoCoarse,scsSSB);
% Check if any PSS have been detected
if isempty(pssList)
disp(‘No PSS found during SSB detection.’);
return;
end
disp(‘Detected PSS list:’)
disp(struct2table(pssList));
%% Search for Cells
%%
% Define the frequency range endpoints and subcarrier spacing search space
% and call the |nrhdlexamples.cellSearch| function. The function displays
% information on the search progress as it runs.
% The frequency range endpoints must be multiples of half the
% maximum subcarrier spacing.
frequencyRange = [-120 120];
subcarrierSpacings = [15 30];
[ssBlockInfo,ssbGrid] = nrhdlexamples.cellSearch(rxWaveform,frequencyRange,subcarrierSpacings,struct(…
‘DisplayPlots’,false,…
‘DisplayCommandWindowOutput’,true));
% Check cell search successfully found and demodulated SSB.
if isempty(ssBlockInfo)
disp(‘Cell search failed to find or demodulate SSB.’);
return;
end 5g, signal processing, ssb MATLAB Answers — New Questions
MATLAB file on opening showing weird symbols or letters
I had saved a .m file and today when i tried opening the file it just shows some symbols and letters like
MATLAB 5.0 MAT-file, Platform: PCWIN64, Created on: Fri Aug 9 16:22:11 2024
‰ì=³÷<öã{ÏÌdÙ„·ý^Ÿë÷=×õ<ës]çÜÎýñ|¾vÐÑѱÐÑ1ýï‘XLÿ»#nŒÄb%Ãÿ=ðÿߦ£ÿ¿×ŠwMI had saved a .m file and today when i tried opening the file it just shows some symbols and letters like
MATLAB 5.0 MAT-file, Platform: PCWIN64, Created on: Fri Aug 9 16:22:11 2024
‰ì=³÷<öã{ÏÌdÙ„·ý^Ÿë÷=×õ<ës]çÜÎýñ|¾vÐÑѱÐÑ1ýï‘XLÿ»#nŒÄb%Ãÿ=ðÿߦ£ÿ¿×ŠwM I had saved a .m file and today when i tried opening the file it just shows some symbols and letters like
MATLAB 5.0 MAT-file, Platform: PCWIN64, Created on: Fri Aug 9 16:22:11 2024
‰ì=³÷<öã{ÏÌdÙ„·ý^Ÿë÷=×õ<ës]çÜÎýñ|¾vÐÑѱÐÑ1ýï‘XLÿ»#nŒÄb%Ãÿ=ðÿߦ£ÿ¿×ŠwM file opening MATLAB Answers — New Questions
Temperature increase after increasing flowrate
Hello community,
I am modelling a liquid cooling network which i will parameterize based on a real liquid cooling network that i built.
It consistis of a pump, radiator, reservoir and a cooler element beside the tubing and all additional sensors.
In that particular scenario, the pump is turned on after 10 minutes and reaches it full flowrate after 10 seconds, from there it is constantly working till stop.
The cooler is modelled as a tube element hooked up to a thermal network which is applying 10W of power. The simple tubes before and after should modell the natural convection that i see in the real measurements while powering the heater and keeping the pump turned off.
If the pump is turned on at 600s, we can see a temperatue increase in the sensor located after the cooler which i cannot see in the real measurements and rather looks like the decreasing cooler surface temperature.
I would like to understand how this behavior is created and if possible how to avoid it. I can imagine that at the port of the temperature sensor, after the liquid was heated for that time, that the mass of the liquid inside the cooler is virtually passing the temperature sensor and it taking some time to cool down to average coolant temperature. But as a novice in Simscape Modelling I am having a hard time understanding the mechanisms behind that.
I greatly appreciate any suggestion and explanations from you, looking forward to it. Thanks much!Hello community,
I am modelling a liquid cooling network which i will parameterize based on a real liquid cooling network that i built.
It consistis of a pump, radiator, reservoir and a cooler element beside the tubing and all additional sensors.
In that particular scenario, the pump is turned on after 10 minutes and reaches it full flowrate after 10 seconds, from there it is constantly working till stop.
The cooler is modelled as a tube element hooked up to a thermal network which is applying 10W of power. The simple tubes before and after should modell the natural convection that i see in the real measurements while powering the heater and keeping the pump turned off.
If the pump is turned on at 600s, we can see a temperatue increase in the sensor located after the cooler which i cannot see in the real measurements and rather looks like the decreasing cooler surface temperature.
I would like to understand how this behavior is created and if possible how to avoid it. I can imagine that at the port of the temperature sensor, after the liquid was heated for that time, that the mass of the liquid inside the cooler is virtually passing the temperature sensor and it taking some time to cool down to average coolant temperature. But as a novice in Simscape Modelling I am having a hard time understanding the mechanisms behind that.
I greatly appreciate any suggestion and explanations from you, looking forward to it. Thanks much! Hello community,
I am modelling a liquid cooling network which i will parameterize based on a real liquid cooling network that i built.
It consistis of a pump, radiator, reservoir and a cooler element beside the tubing and all additional sensors.
In that particular scenario, the pump is turned on after 10 minutes and reaches it full flowrate after 10 seconds, from there it is constantly working till stop.
The cooler is modelled as a tube element hooked up to a thermal network which is applying 10W of power. The simple tubes before and after should modell the natural convection that i see in the real measurements while powering the heater and keeping the pump turned off.
If the pump is turned on at 600s, we can see a temperatue increase in the sensor located after the cooler which i cannot see in the real measurements and rather looks like the decreasing cooler surface temperature.
I would like to understand how this behavior is created and if possible how to avoid it. I can imagine that at the port of the temperature sensor, after the liquid was heated for that time, that the mass of the liquid inside the cooler is virtually passing the temperature sensor and it taking some time to cool down to average coolant temperature. But as a novice in Simscape Modelling I am having a hard time understanding the mechanisms behind that.
I greatly appreciate any suggestion and explanations from you, looking forward to it. Thanks much! simscape, simulink, scope, model, parameter MATLAB Answers — New Questions
ousterFileReader give no correct result
The function ousterFileReader not work correcty in 2023b with lidar’s FW 2.4. As in json there is a negative shift, and intensivity value shift in row… BugThe function ousterFileReader not work correcty in 2023b with lidar’s FW 2.4. As in json there is a negative shift, and intensivity value shift in row… Bug The function ousterFileReader not work correcty in 2023b with lidar’s FW 2.4. As in json there is a negative shift, and intensivity value shift in row… Bug lidar toolbox, ouster lidar, matlab MATLAB Answers — New Questions
New Outlook/OWA no embedded URLs or Pictures in Meeting-Responses Room-mailbox
In new Outlook and OWA we can not see our embedded URLs and pictures which are included with HTML in meeting response for our room-mailboxes.
<p>Here you can find a room plan: <a href=”url:https://xyz.sharepoint.com/:b:/s/Eeq5Kz2iz9ZKrb4Cu7CFxm0BohbGssa8xDlVkAkD1NZFUQ?e=6m1kUv“> <strong>Room Plan</a></strong></p>
<p>Here you can find a room plan: <div ><img src=”https://xyz.sharepoint.com/:i:/r/sites/Documents/Raumplan%20final.jpg?csf=1&web=1&e=jo9UKm“></img></a></div>’
In legacy Outlook we can click on the embedded URL and the file in the sharepoint site opens.
Is there a way to click on the embedded URL or see the embedded picture in new Outlook?
In new Outlook and OWA we can not see our embedded URLs and pictures which are included with HTML in meeting response for our room-mailboxes. <p>Here you can find a room plan: <a href=”url:https://xyz.sharepoint.com/:b:/s/Eeq5Kz2iz9ZKrb4Cu7CFxm0BohbGssa8xDlVkAkD1NZFUQ?e=6m1kUv”> <strong>Room Plan</a></strong></p><p>Here you can find a room plan: <div ><img src=”https://xyz.sharepoint.com/:i:/r/sites/Documents/Raumplan%20final.jpg?csf=1&web=1&e=jo9UKm”></img></a></div>’In legacy Outlook we can click on the embedded URL and the file in the sharepoint site opens.Is there a way to click on the embedded URL or see the embedded picture in new Outlook? Read More
Merging MS 365 Charity Accounts
We have 3 charities that have come together and would like all their e-mails etc under one MS 365 account. Currently they all have their own charity account. Is it possible to merge all 3 accounts into one.
We have 3 charities that have come together and would like all their e-mails etc under one MS 365 account. Currently they all have their own charity account. Is it possible to merge all 3 accounts into one. Read More
Option to automatically transcribe but not record meetings?
Wondering if it’s possible to set a meeting to transcribe automatically, but not record. In meeting options they are paired together (i.e. ‘record and transcribe automatically’). Conscious that recording would take up lots of storage space with video that likely won’t be needed so hoping it’s possible to just set to automatically transcribe in advance.
Wondering if it’s possible to set a meeting to transcribe automatically, but not record. In meeting options they are paired together (i.e. ‘record and transcribe automatically’). Conscious that recording would take up lots of storage space with video that likely won’t be needed so hoping it’s possible to just set to automatically transcribe in advance. Read More
Renewing my Microsoft 365 bussiness account
Hi
My ex partner was in charge of the Microsoft 365 system, he was the global administrator. He has left the company and doesn’t want to forfeit the rights to me, I cant access anything nor support, I need to renew the license for the bussiness, I cant get mails, and I cant get help, hoipe this helps!!
Hi My ex partner was in charge of the Microsoft 365 system, he was the global administrator. He has left the company and doesn’t want to forfeit the rights to me, I cant access anything nor support, I need to renew the license for the bussiness, I cant get mails, and I cant get help, hoipe this helps!! Read More
New CPU installed message after connecting a USB drive
I’ve got a Legion S7, Ryzen 5000, running Windows 11. Been using it for about 2+ years now. This error message pops up instantly when connecting an USB flash drive to it.
I’ve got a Legion S7, Ryzen 5000, running Windows 11. Been using it for about 2+ years now. This error message pops up instantly when connecting an USB flash drive to it. Read More
I am trying to implement an action used on an old bot version on the new version.
I am trying to implement an action used on an old bot on the new version.On the old version the action is not giving any problems but on the new one it is giving the following error (https://i.sstatic.net/6JepNVBM.png) even though from code the local goes without problems.I have attached sceen in case I am doing something wrong in the configurations.Thanks in advance
(https://i.sstatic.net/9fApDaKN.png)
(https://i.sstatic.net/wRicedY8.png)
(https://i.sstatic.net/6JepNVBM.png)
(https://i.sstatic.net/26GY0BRM.png)
I am trying to implement an action used on an old bot on the new version.On the old version the action is not giving any problems but on the new one it is giving the following error (https://i.sstatic.net/6JepNVBM.png) even though from code the local goes without problems.I have attached sceen in case I am doing something wrong in the configurations.Thanks in advance(https://i.sstatic.net/9fApDaKN.png)(https://i.sstatic.net/wRicedY8.png)(https://i.sstatic.net/6JepNVBM.png)(https://i.sstatic.net/26GY0BRM.png) Read More
Help with email sorting flow + sharepoint list
I have a flow on power automate which is connected to a sharepoint list. When a new email arrives in our share mailbox, a new item in the sharepoint list is created with the title of the email and at this point the status of the item is draft and we change it manually in the list right now. Basically what I am llooking for is advice on how to achieve : when i move an email from Inbox into A-done, i want the flow to automatically change the status of the item to “Done”. By the way the statuses are a list of choices. What i was thinking of doing was comparing the titles of email in inbox to the titles in the sharepoint list, because if I have moved the email out of the inbox the title will not be found anymore, but not sure how to go about this in a way where I can loop through correctly. If the title of item in sharepoint list doesnt match anything found in the inbox i want the status to be changed to done. Can you advise me please? Please see all screenshots for context/what I have so far
I have a flow on power automate which is connected to a sharepoint list. When a new email arrives in our share mailbox, a new item in the sharepoint list is created with the title of the email and at this point the status of the item is draft and we change it manually in the list right now. Basically what I am llooking for is advice on how to achieve : when i move an email from Inbox into A-done, i want the flow to automatically change the status of the item to “Done”. By the way the statuses are a list of choices. What i was thinking of doing was comparing the titles of email in inbox to the titles in the sharepoint list, because if I have moved the email out of the inbox the title will not be found anymore, but not sure how to go about this in a way where I can loop through correctly. If the title of item in sharepoint list doesnt match anything found in the inbox i want the status to be changed to done. Can you advise me please? Please see all screenshots for context/what I have so far Read More
Site Something went wrong
Hello Team,
I recently upgraded a SharePoint 2013 site collection to SharePoint 2016. The database mounted successfully, and the site collection URL and permissions appear intact. However, when attempting to browse the site, users encounter a “Something went wrong” error both inside and outside the server.
The error occurs after entering login credentials. My research suggests that the issue may be due to a missing or problematic web part. Unfortunately, I’m unaware of the custom parts used in the site or who built it.
Could anyone please assist in resolving this issue, particularly in identifying and fixing the problematic web part?
Thank you for your support.
Pradeep
Hello Team,I recently upgraded a SharePoint 2013 site collection to SharePoint 2016. The database mounted successfully, and the site collection URL and permissions appear intact. However, when attempting to browse the site, users encounter a “Something went wrong” error both inside and outside the server.The error occurs after entering login credentials. My research suggests that the issue may be due to a missing or problematic web part. Unfortunately, I’m unaware of the custom parts used in the site or who built it.Could anyone please assist in resolving this issue, particularly in identifying and fixing the problematic web part?Thank you for your support.Pradeep Read More
How to enable single sign on using Azure active Directory for RDS Webclient
Hi
We have setup a RDS Farm and we have configured Webclient, we want to have a MFA using Azure Active directory , how to setup the same
HiWe have setup a RDS Farm and we have configured Webclient, we want to have a MFA using Azure Active directory , how to setup the same Read More
Can I listen to music on Spotify on airplane mode?
Hi everyone,
I often find myself in situations where I’m without an internet connection, like when I’m on a plane. I love listening to Spotify on my phone and Windows 11 PC, but I’m not sure how to do it in airplane mode. I don’t have Spotify Premium, but I’ve heard there might be workarounds or other tools that could help.
Does anyone have any advice on how I can listen to music on Spotify on airplane mode? Any input could be greatly appreciated.
Hi everyone, I often find myself in situations where I’m without an internet connection, like when I’m on a plane. I love listening to Spotify on my phone and Windows 11 PC, but I’m not sure how to do it in airplane mode. I don’t have Spotify Premium, but I’ve heard there might be workarounds or other tools that could help. Does anyone have any advice on how I can listen to music on Spotify on airplane mode? Any input could be greatly appreciated. Read More
Unrecognized method, property, or field for generated protobuf message
Hi all,
We have a project where we communicate with a device using gRPC. On the computer, we run Python in a virtual enviornment. We load that environment in matlab using pyenv. We use MATLAB 2023b (23.2.0.2599560 (R2023b) Update 8) and Python 3.10.11.
Connecting with the device and querying some device information works in both, Python and MATLAB. However, since 2-3 months, we are unable to access members of protobuf messages. Below is an example of the code we execute in Python and the equivalent code executed in MATLAB:
Python:
% C:workdatakingfisher-py.venvScriptspython.exe "…"
import kingfisher_py.lib as kgfLib
scn = kgfLib.device.Scanner(‘10.10.1.1’, ‘8081’)
device_info = scn.device_info.get_info()
device_info.sw_rev
items {
key: "mcu"
value: "v1.0.1"
}
items {
key: "kingfisher"
value: "5.2.0-cam-cal-third-party-rc.1-5-gd6f7161"
}
% response continues…
MATLAB:
>> kgfLib = py.importlib.import_module(‘kingfisher_py.lib’);
>> scn = kgfLib.device.Scanner(‘10.10.1.1’, ‘8081’);
>> deviceInfo = scn.device_info.get_info();
>> deviceInfo.HasField(‘sw_rev’)
ans =
logical
1
>> deviceInfo.sw_rev
Unrecognized method, property, or field ‘sw_rev’ for class ‘py.kf.api.messages.system_pb2.GetDeviceInfoResponse’.
>> deviceInfo
deviceInfo =
Python GetDeviceInfoResponse with properties:
DESCRIPTOR: [1×1 py.google._upb._message.Descriptor]
manufact_rev {
device_name: "BLK360-2060047"
serial_number: "2060047"
}
sw_rev {
items {
key: "mcu"
value: "v1.0.1"
}
items {
key: "kingfisher"
value: "5.2.0-cam-cal-third-party-rc.1-5-gd6f7161"
}
% response continues…
Note that the same virtual environment is active. MATLAB even says that the field sw_rev exists, but still cannot access it. Also, we checked different versions and combinations of MATLAB and Python. Specifically:
Matlab 9.10.0.2198249 (R2021a) Update 8 + Python 3.8.10
Matlab 9.13.0.2193358 (R2022b) Update 5 + Python 3.8.10
Matlab 9.13.0.2193358 (R2022b) Update 5 + Python 3.10.11
Matlab 23.2.0.2599560 (R2023b) Update 8 + Python 3.10.11
The behaviour is the same with all versions. As the whole communication with the device is set up using protobuf, there is not much we can do with the device at this point as we run into this problem all accorss our MATLAB code base.
Is this a known issue, e.g. with a newer protobuf version? As mentioned, we did not have any issues like this until 2-3 months ago.
Hope to get some help or at least an explanation. Thank you :-)Hi all,
We have a project where we communicate with a device using gRPC. On the computer, we run Python in a virtual enviornment. We load that environment in matlab using pyenv. We use MATLAB 2023b (23.2.0.2599560 (R2023b) Update 8) and Python 3.10.11.
Connecting with the device and querying some device information works in both, Python and MATLAB. However, since 2-3 months, we are unable to access members of protobuf messages. Below is an example of the code we execute in Python and the equivalent code executed in MATLAB:
Python:
% C:workdatakingfisher-py.venvScriptspython.exe "…"
import kingfisher_py.lib as kgfLib
scn = kgfLib.device.Scanner(‘10.10.1.1’, ‘8081’)
device_info = scn.device_info.get_info()
device_info.sw_rev
items {
key: "mcu"
value: "v1.0.1"
}
items {
key: "kingfisher"
value: "5.2.0-cam-cal-third-party-rc.1-5-gd6f7161"
}
% response continues…
MATLAB:
>> kgfLib = py.importlib.import_module(‘kingfisher_py.lib’);
>> scn = kgfLib.device.Scanner(‘10.10.1.1’, ‘8081’);
>> deviceInfo = scn.device_info.get_info();
>> deviceInfo.HasField(‘sw_rev’)
ans =
logical
1
>> deviceInfo.sw_rev
Unrecognized method, property, or field ‘sw_rev’ for class ‘py.kf.api.messages.system_pb2.GetDeviceInfoResponse’.
>> deviceInfo
deviceInfo =
Python GetDeviceInfoResponse with properties:
DESCRIPTOR: [1×1 py.google._upb._message.Descriptor]
manufact_rev {
device_name: "BLK360-2060047"
serial_number: "2060047"
}
sw_rev {
items {
key: "mcu"
value: "v1.0.1"
}
items {
key: "kingfisher"
value: "5.2.0-cam-cal-third-party-rc.1-5-gd6f7161"
}
% response continues…
Note that the same virtual environment is active. MATLAB even says that the field sw_rev exists, but still cannot access it. Also, we checked different versions and combinations of MATLAB and Python. Specifically:
Matlab 9.10.0.2198249 (R2021a) Update 8 + Python 3.8.10
Matlab 9.13.0.2193358 (R2022b) Update 5 + Python 3.8.10
Matlab 9.13.0.2193358 (R2022b) Update 5 + Python 3.10.11
Matlab 23.2.0.2599560 (R2023b) Update 8 + Python 3.10.11
The behaviour is the same with all versions. As the whole communication with the device is set up using protobuf, there is not much we can do with the device at this point as we run into this problem all accorss our MATLAB code base.
Is this a known issue, e.g. with a newer protobuf version? As mentioned, we did not have any issues like this until 2-3 months ago.
Hope to get some help or at least an explanation. Thank you 🙂 Hi all,
We have a project where we communicate with a device using gRPC. On the computer, we run Python in a virtual enviornment. We load that environment in matlab using pyenv. We use MATLAB 2023b (23.2.0.2599560 (R2023b) Update 8) and Python 3.10.11.
Connecting with the device and querying some device information works in both, Python and MATLAB. However, since 2-3 months, we are unable to access members of protobuf messages. Below is an example of the code we execute in Python and the equivalent code executed in MATLAB:
Python:
% C:workdatakingfisher-py.venvScriptspython.exe "…"
import kingfisher_py.lib as kgfLib
scn = kgfLib.device.Scanner(‘10.10.1.1’, ‘8081’)
device_info = scn.device_info.get_info()
device_info.sw_rev
items {
key: "mcu"
value: "v1.0.1"
}
items {
key: "kingfisher"
value: "5.2.0-cam-cal-third-party-rc.1-5-gd6f7161"
}
% response continues…
MATLAB:
>> kgfLib = py.importlib.import_module(‘kingfisher_py.lib’);
>> scn = kgfLib.device.Scanner(‘10.10.1.1’, ‘8081’);
>> deviceInfo = scn.device_info.get_info();
>> deviceInfo.HasField(‘sw_rev’)
ans =
logical
1
>> deviceInfo.sw_rev
Unrecognized method, property, or field ‘sw_rev’ for class ‘py.kf.api.messages.system_pb2.GetDeviceInfoResponse’.
>> deviceInfo
deviceInfo =
Python GetDeviceInfoResponse with properties:
DESCRIPTOR: [1×1 py.google._upb._message.Descriptor]
manufact_rev {
device_name: "BLK360-2060047"
serial_number: "2060047"
}
sw_rev {
items {
key: "mcu"
value: "v1.0.1"
}
items {
key: "kingfisher"
value: "5.2.0-cam-cal-third-party-rc.1-5-gd6f7161"
}
% response continues…
Note that the same virtual environment is active. MATLAB even says that the field sw_rev exists, but still cannot access it. Also, we checked different versions and combinations of MATLAB and Python. Specifically:
Matlab 9.10.0.2198249 (R2021a) Update 8 + Python 3.8.10
Matlab 9.13.0.2193358 (R2022b) Update 5 + Python 3.8.10
Matlab 9.13.0.2193358 (R2022b) Update 5 + Python 3.10.11
Matlab 23.2.0.2599560 (R2023b) Update 8 + Python 3.10.11
The behaviour is the same with all versions. As the whole communication with the device is set up using protobuf, there is not much we can do with the device at this point as we run into this problem all accorss our MATLAB code base.
Is this a known issue, e.g. with a newer protobuf version? As mentioned, we did not have any issues like this until 2-3 months ago.
Hope to get some help or at least an explanation. Thank you 🙂 python, grpc, protobuf MATLAB Answers — New Questions
How to set Categories consistent when using “signalMask” and “plotsigroi” ?
I want to plot using the code below with the loaded mat file attached.
For example, when "m1=200" I obtain the attached figure.
But, the issue is that, the cetegories are not the same order between two subplots.
I want the categories being the same order, e.g., "n/a", "N", "V", "A" in both subplots.
I would appreciate it if you could help me how to do it.
Thank you,
%%
load qNa.mat
m1=200;
figure;
M = signalMask(tl{m1}); subplot(2,1,1);
p1 = plotsigroi(M,G2{m1});
ls = p1.Children;
for i2=1:size(ls,1)
ls(i2).LineWidth = 2.0;
end
srt = sprintf(‘N only w/GT, data-%d ‘,m1);
title(srt)
M = signalMask(pl{m1}); subplot(2,1,2);
p2 = plotsigroi(M,G2{m1});
ls = p2.Children;
for i2=1:size(ls,1)
ls(i2).LineWidth = 2.0;
end
srt2 = sprintf(‘N only w/Est, data-%d’,m1);
title(srt2)I want to plot using the code below with the loaded mat file attached.
For example, when "m1=200" I obtain the attached figure.
But, the issue is that, the cetegories are not the same order between two subplots.
I want the categories being the same order, e.g., "n/a", "N", "V", "A" in both subplots.
I would appreciate it if you could help me how to do it.
Thank you,
%%
load qNa.mat
m1=200;
figure;
M = signalMask(tl{m1}); subplot(2,1,1);
p1 = plotsigroi(M,G2{m1});
ls = p1.Children;
for i2=1:size(ls,1)
ls(i2).LineWidth = 2.0;
end
srt = sprintf(‘N only w/GT, data-%d ‘,m1);
title(srt)
M = signalMask(pl{m1}); subplot(2,1,2);
p2 = plotsigroi(M,G2{m1});
ls = p2.Children;
for i2=1:size(ls,1)
ls(i2).LineWidth = 2.0;
end
srt2 = sprintf(‘N only w/Est, data-%d’,m1);
title(srt2) I want to plot using the code below with the loaded mat file attached.
For example, when "m1=200" I obtain the attached figure.
But, the issue is that, the cetegories are not the same order between two subplots.
I want the categories being the same order, e.g., "n/a", "N", "V", "A" in both subplots.
I would appreciate it if you could help me how to do it.
Thank you,
%%
load qNa.mat
m1=200;
figure;
M = signalMask(tl{m1}); subplot(2,1,1);
p1 = plotsigroi(M,G2{m1});
ls = p1.Children;
for i2=1:size(ls,1)
ls(i2).LineWidth = 2.0;
end
srt = sprintf(‘N only w/GT, data-%d ‘,m1);
title(srt)
M = signalMask(pl{m1}); subplot(2,1,2);
p2 = plotsigroi(M,G2{m1});
ls = p2.Children;
for i2=1:size(ls,1)
ls(i2).LineWidth = 2.0;
end
srt2 = sprintf(‘N only w/Est, data-%d’,m1);
title(srt2) plotsigroi MATLAB Answers — New Questions