Serial plugin data, changing the export rate in Channels tab does not permanently change the rate

  • Software
  • Serial plugin data, changing the export rate in Channels tab does not permanently change the rate
Gary Floyd

Posted on 22.12.2023 18:49

I have acquisition rate set at 500 hz for analog channels, serial data is typically 5-50hz, and I am downsampling/upsampling to 100 hz for csv. So serial data is being exported out of sync and in the csv its exporting on it own line in the csv with no analog data at the same time stamp. In previous versions of Dewesoft (currently using 2023.5) there was a checkbox to output at max rate or something similar so the data was just upsampled. If I change explicitly set the export rate to the serial channels in "Channels tab in the measure" or export rate in analysis / export then the channels are upsampled, however neither of the these changes are permanent, like they would be for a analog or other async channels. As a work around I have just read the serial channels into math channel so that I can explicitly set the export rate and so that the rate is stored in the .dxs file. This may affect other plugins but not positive as have not tested that.



Pika Kreča Šmid

Posted on 27.12.2023 11:06

Dear Gary,


thank you for reaching out to us.

You can change the Export Rate straight in the Setup file, if you haven't done data acquisition yet, by changing the Export rate in the Channels module. To make this Rate permanent, save the Setup:



The same can be done an Analyze mode- You can change the Export Rate in the Channels Module(Setup tab), then save the changes in the Review tab:




If you are changing the Export Rate while in the Export tab of the Analyze mode, you can make the changes permanent by clicking on the Dewesoft logo, and then ''Save file changes'':




Best regards,

Pika


Gary Floyd

Posted on 27.12.2023 16:08

As stated this is serial plugin specific, not analog channels. Serial channel export rate changes are not permanent at changed for some reason.

Pika Kreča Šmid

Posted on 28.12.2023 10:10

@Gary Floyd,


thank you for pointing out that this is a serial plugin channels issue.

I have tried to replicate the issue you are experiencing, but was not successful- in my case, setting an Export rate is permanent.

Is there any way you could provide us with a .dxd file that exhibits these issues and a video that highlights all the steps you take that result in the Export rate changes not being permanent?


Gary Floyd

Posted on 29.12.2023 22:45

On the screen shot these are some of the channels that are having issues. You can change the rate to 100 hz and export to csv is perfect. If you hit save and reopen the .dxs they rates will be back to default. and then we get the out of sync csv output. I did confirm the settings are saved when this is done in the .dxd but thats not really of much use unless it can be automated with c++, sequencer or python. I have included the .dxs/.dxp which you should be able try even though you don't have any serial equipment, etc. I have also included the .dxt since it may be affecting something.

Pika Kreča Šmid

Posted on 04.01.2024 09:35

Dear Gary,


could you please clarify something for me, since you are speaking of both a setup file (.dxs) and a data file (.dxt)?

  • You start off by making a new measurement. To do that, you open a designated setup file (.dxs)
  • The setup contains a Serial com module, where you set up the channels.
  • This setup file has a module called ''Channels''. If you open this module, and navigate to the channels export rate, the rates will be set to default. (As evident from the image you have included)



  • You start a measurement, and record a .dxd file.
  • After you've recorded a datafile, you analyze it, by going into Analyze mode.
  • In analyze mode, you open the Setup tab, and change the Export rate from Default to e.g. 100 Hz.



  • You return to the Review tab and press ''Save''
  • You open the Export tab, set the Export type to Text/CSV
  • If you haven't set the Export rate in the Setup tab, you change it now under the Channels section of the Export tab



  • You export the data with .csv file format.


  • You close DewesoftX.
  • You re-open DewesoftX and load the setup file (.dxs)
  • (You open the Channels module while in measure mode, the Export rate is set to default.)
  • You make another measurement, that results in a new .dxd datafile.
  • In analyze mode, you go to the Setup tab, and open the Channels module - the export rate is set to Default, and not e.g. 100 Hz.



Before we continue, could you please confirm these are the steps you take when you encounter the issue? If not, could you please provide the steps you take, in a manner, similar to how I did it? Knowing the steps you take will help me efficiently assist you with the problem.


Best regards,

Pika

Gary Floyd

Posted on 04.01.2024 18:45

I mentioned the .dxs and .dxd because changing the export rate in the .dxd and saving will infact save the changes. However, saving the export rate for plugin channels in the .dxs will not save the rate, it always reverts back to default.

Pika Kreča Šmid

Posted on 05.01.2024 14:08

Dear Gary,


thank you for the additional clarification- I have reproduced the issues you are experiencing, and have reported them as a bug to the developers.

We will notify you once we have any news regarding the ticket.

In the meantime, please continue to use the workaround you have described in one of your earlier replies.


Best regards,

Pika

Pika Kreča Šmid

Posted on 20.03.2024 13:44

Dear Garry,


I am reaching out to let you know that the Bug, where the Export rate of Serial Com wasn't saved in a Setup file when changed in the Channels tab was marked as resolved in DewesoftX version 2024/2/RC-240319.


Best regards,

Pika

Login to reply to this topic. If you don't have account yet, you can signup for free account .