The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Processes in OC and Labtalk
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

tinkusch

Germany
94 Posts

Posted - 02/26/2004 :  11:52:04 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,

I have the following problem:
In my application a LabTalk button click shall call an OriginC function, which contains a loop (actually a readout loop for a COM port). While that loop is running I would like to evaluate further clicks onto other LabTalk buttons (e.g. in order to abort that loop). How can I do this? I tried to solve the problem including
LT_execute("") in the loop but with no success

The background is the following: Is it possible in Origin to comunicate to two serial ports independently, i.e. starting communication with COM1 while COM2 is permanently sending data to a LabTalk application?

Many thanks for any help

Stefan



cpyang

USA
1406 Posts

Posted - 02/26/2004 :  12:05:27 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
replace LT_execute("")
with LT_execute("sec -p 0.5")

Go to Top of Page

tinkusch

Germany
94 Posts

Posted - 02/26/2004 :  12:23:42 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:

replace LT_execute("")
with LT_execute("sec -p 0.5")





simple, but works.....

many thanks!

Stefan

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000