Convert a Text Channel to a Asynchronous String Channel using C++ script

  • Software
  • Convert a Text Channel to a Asynchronous String Channel using C++ script
Dino Morio

Posted on 16.01.2020 21:36

Is it possible to convert a Text Channel (for eg Global Variable) to an Asynchronous String Channel using C++ script in Math?

DEWESoft Support
Technical support
Posted on 20.01.2020 11:40

Dear Dino,


unfortunately, it is not possible to "output" a string channel with the C++ script.


Regards

Dino Morio

Posted on 20.01.2020 12:02

Hi. Thanks for the prompt response.


Page 60 of the DCOM manual talks about String Channels and page 298 tells how to add data to them using the AddAsyncString method. Questions then

  1. How can you create a string channel using Dewesoft setup?
  2. Can string channels be treated as asynchronous channels so each data will have a value and a timestamp?
DEWESoft Support
Technical support
Posted on 21.01.2020 12:53

Dear Dino,


you can only create channels when creating new custom plugin. DCOM application is more appropriate for Automation of Dewesoft software.



Can we ask what is the application behind it? You can also reach the GlobalData in measurement. You can also use "discrete" values, where you can define a string description for a certain value of channel.



Regards

Dino Morio

Posted on 21.01.2020 13:47

Hi

I would like to have a "string channel" which is asynchronous i.e value changes at random intervals. Assuming this channel is some kind of a list or array, each element will have a value and a timestamp (time when value changed).

My understanding is right now in a Dewesoft setup, you can only create a "text channel" which can only accept a single value. This is no good for my application.


I assumed there may be way of converting the single valued "text channel" to an asynchronous "string channel" using your C++ scripting feature, to which you have already said NO.


What are my other options in achieving this?



Regards

DEWESoft Support
Technical support
Posted on 23.01.2020 17:17

Dear Dino,


you can try to adjust this with the Discrete display widget, where you can assignee a string to a different integer values of the wanted channel. First you need to add the Discrete display widget to the screen and assignee the wanted channel.



Then you can define a string to a different values, which will then be presented in a tabular or in a different widget. But the accepted values are only integers.



Regards

Dino Morio

Posted on 23.01.2020 18:33

Hi,


Unfortunately, my string values cannot be "predefined",as they are not states.


They are different messages generated at random times. Any luck?

DEWESoft Support
Technical support
Posted on 24.01.2020 14:03

Dear Dino,


this can only be done by custom plugin.


From where do you get the string values, which you want to present in Dewesoft?


Regards


Dino Morio

Posted on 24.01.2020 15:23

From the Sequencer

DEWESoft Support
Technical support
Posted on 29.01.2020 12:38

Dear Dino,


unfortunately, asynchronous string channel can only be created with custom plugin.


Regards

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