Page 1 of 1

SCADA soundcard access and speech(realspeak)

Posted: Tue Feb 12, 2019 2:35 pm
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.

Re: SCADA soundcard access and speech(realspeak)

Posted: Tue Feb 12, 2019 6:40 pm
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.

Re: SCADA soundcard access and speech(realspeak)

Posted: Wed Feb 13, 2019 9:58 am
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 327 times

Re: SCADA soundcard access and speech(realspeak)

Posted: Wed Feb 13, 2019 4:04 pm
by Benj
Many thanks.

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

Re: SCADA soundcard access and speech(realspeak)

Posted: Mon Feb 18, 2019 10:09 am
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

Re: SCADA soundcard access and speech(realspeak)

Posted: Wed Feb 20, 2019 8:37 am
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

Re: SCADA soundcard access and speech(realspeak)

Posted: Thu Feb 21, 2019 1:03 pm
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.

Re: SCADA soundcard access and speech(realspeak)

Posted: Thu Feb 21, 2019 4:21 pm
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);