SCADA soundcard access and speech(realspeak)

Moderator: Benj

Post Reply
stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

SCADA soundcard access and speech(realspeak)

Post by stefan.erni »

Hi Ben
For the next version SCADA, a little wish ... access to the sound card of the computer and the component from FC8 speech(realspeak) should work.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: SCADA soundcard access and speech(realspeak)

Post by Benj »

Hello,

You can already stream out frequencies or wave files using the runtime though it's not the simplest. The Tetris demo here has music.
viewtopic.php?f=54&t=16848&p=69976&hilit=tetris#p69976

The RealSpeak component is working really well for me, I've tried on numerous computers. Is it not working for you? If not can you post a program so we can see how you're using the component.

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: SCADA soundcard access and speech(realspeak)

Post by stefan.erni »

Hi Ben

Ok I saw the realspeak in SCADA...

In the simulation it's working, but run as a SCADA program not.
Maybe I mess up with simulation and runtime...
Flowcode_scada_realspeak_1.fcsx
(6.93 KiB) Downloaded 252 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: SCADA soundcard access and speech(realspeak)

Post by Benj »

Many thanks.

I have replicated the problem here and we will investigate for you.

DanielM
Posts: 62
Joined: Mon Oct 23, 2017 9:54 am
Has thanked: 11 times
Been thanked: 22 times
Contact:

Re: SCADA soundcard access and speech(realspeak)

Post by DanielM »

Just an update with the progress of this one. I have been able to replicate this myself on one machine but not consistently. I am continuing to investigate.

Daniel

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: SCADA soundcard access and speech(realspeak)

Post by stefan.erni »

Hi Daniel

Thank you for the support. There is a small wish more.....

Many microcontrollers have real time clock and calendar and there are many small chips with the function RTCC.
If SCADA could read the time and date from the computer,with a RTCC component
it would be simply, to set the time in a hardware
with a SCADA program and a connection (uart, wifi, BT,....).

But even with the realsspeak component, the time would be nice in the SCADA....

Stefan

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: SCADA soundcard access and speech(realspeak)

Post by Benj »

Hi Stefan,
Many microcontrollers have real time clock and calendar and there are many small chips with the function RTCC.
If SCADA could read the time and date from the computer,with a RTCC component
it would be simply, to set the time in a hardware
with a SCADA program and a connection (uart, wifi, BT,....).
Have you seen the timestamp component, it's for simulation only and allows you to collect the current time or date as a string. Might do what you need?

If you need the hours, mins, seconds as numeric variables then we can certainly add another component to provide this. Scratch this I've just had a look and the TimeStamp component will also do this for you via the GetValue simulation macro.

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: SCADA soundcard access and speech(realspeak)

Post by stefan.erni »

Hi Ben

At first .... The SCADA programm has sound if start Matrix SCADA.exe and load Flowcode_scada_realspeak_1.mscada
but if I use the batch file, there is no sound. Is there an info about the parameters?
@SET PF=".\Flowcode_scada_realspeak_1.mscada"
@start "" ".\Matrix SCADA\Matrix SCADA.exe" %PF%

No I did not see the timestamp and realise that this is working (maybe still I dont understand how the simulation is working....)
I need only the string. This string I have to send to the serial port. The format with the year month day hours minutes seconds is very convenient for filenames because the files then have correct order in the folder.Maybe you can also take the format in addition.


here my code from c# but now I prefer SCADA.
string format_time = "yyyyMMddHHmmss";
DateTime time_s;
string time_start;

time_s = DateTime.Now;
time_start = time_s.ToString(format_time);
serialPort1.Write(time_start);

Post Reply