Search found 11 matches

by Walko
Tue Oct 18, 2022 9:50 am
Forum: Coding Questions
Topic: How to use online API ?
Replies: 7
Views: 3434

Re: How to use online API ?

infratec :shock:

It's working very well 8)

Thank you very much, I didn't ask for so much!
I will study your program because I am not familiar with list and structures.
This is a very good exercise with something real and usefull for me to learn.

Thank you again for your time.
by Walko
Mon Oct 17, 2022 5:23 pm
Forum: Coding Questions
Topic: How to use online API ?
Replies: 7
Views: 3434

Re: How to use online API ?

Hello,

Thank you all for your answers.

The curl command is generated by the API Documentation demo so It is working well.
I tried it with the command prompt ( Windows ) and I can see the answer from the mouser API.

For the moment I only tried to copy the complete curl command into a string and ...
by Walko
Mon Oct 17, 2022 11:56 am
Forum: Coding Questions
Topic: How to use online API ?
Replies: 7
Views: 3434

How to use online API ?

Hello,

I work in the electronics industry but there is a lot of tension on the supply of components.
A reseller I order a lot from is called MOUSER and provides an API to run search queries which would be really great for tracking the amount of components still available.

They have examples where ...
by Walko
Wed Oct 28, 2020 2:56 pm
Forum: Coding Questions
Topic: plot live data or live chart example ?
Replies: 3
Views: 1430

Re: plot live data or live chart example ?

Thank you very much I will look at this and how to fit it into my program.
The first link and the code from ostapas looks like what i want to do.

I swear I did a search on the forum but I couldn't find anything so interesting.
Mostly code involving openGL and I'm not sure I need that.

Thank you ...
by Walko
Wed Oct 28, 2020 12:22 pm
Forum: Coding Questions
Topic: plot live data or live chart example ?
Replies: 3
Views: 1430

plot live data or live chart example ?

Hello,

I have a pressure sensor that send data via a serial com port ( 10Hz or every 100ms )
I would like to plot this data live over time as can be done with serialplot : https://hackaday.io/project/5334-serialplot-realtime-plotting-software
But I would like to do something much more basic, just a ...
by Walko
Wed Sep 30, 2020 10:54 am
Forum: Coding Questions
Topic: Very slow loop and don't know why :(
Replies: 3
Views: 1218

Re: Very slow loop and don't know why :(

Hello,

Thank you for your help.
I will look at your code :)

BTW, I solve my problem by using AddWindowTimer() :D
by Walko
Wed Sep 30, 2020 8:42 am
Forum: Coding Questions
Topic: Very slow loop and don't know why :(
Replies: 3
Views: 1218

Very slow loop and don't know why :(

Hello,

So first of all I am an extreme beginner in Purebasic and programming in general.

I found on this forum very nice example for handling serial port that works very well.
Now, I need to add some stuff to do inside the infinite loop but It seems that the loop is very very slow.

I just add to ...
by Walko
Mon Mar 30, 2020 3:42 pm
Forum: Coding Questions
Topic: reset a string ??
Replies: 3
Views: 1155

Re: reset a string ??

You will running into a problem: setting the text inside of the frame.
You should do this in the main eventloop.
For this is the PostEvent.

To clear it:

If Byte = #CR
PostEvent(#ComThread_LineReceived)
WaitSemaphore(*Parameter\Semaphore)
*Parameter\Receive$ = ""
Else
*Parameter\Receive ...
by Walko
Sun Mar 29, 2020 6:03 pm
Forum: Coding Questions
Topic: reset a string ??
Replies: 3
Views: 1155

reset a string ??

Hello,

Sorry, Im writing my very first program.
Purebasic seems to be perfect for this task but my knowledge is very limited :oops:

The idea is to create a GUI to communicate with a device connected by a serial port.
I found severals examples on this forum from infratec which I thank very much ...
by Walko
Sat Mar 28, 2020 3:45 pm
Forum: Coding Questions
Topic: Write and Read from a specific line of a file ?
Replies: 6
Views: 1427

Re: Write and Read from a specific line of a file ?

Thank you very much !
I didn't expect such an active forum !
I understand almost nothing, I will study your example with google and purebasic documentation :oops:
by Walko
Thu Mar 26, 2020 6:17 pm
Forum: Coding Questions
Topic: Write and Read from a specific line of a file ?
Replies: 6
Views: 1427

Write and Read from a specific line of a file ?

Hello,

Im a beginner in Purebasic...
I would like to create a program/GUI to communicate with a device connected to a com port.
I found an example to handle com port but I would like to create a file to store previous settings ( com port number, baurate, etc ).

Is there a way to write and/or read ...