Search found 5 matches

by Avatar Engineer
Wed May 12, 2010 10:57 pm
Forum: Coding Questions
Topic: USB code examples
Replies: 7
Views: 4254

Re: USB code examples

Thanks again,... looks like I've got homework!
by Avatar Engineer
Wed May 12, 2010 8:26 pm
Forum: General Discussion
Topic: C switch case Vs PB Select Case
Replies: 9
Views: 3586

Re: C switch case Vs PB Select Case

Most C compilers (and Pascal, etc) can only use a constant as a case.
Therefore any complex conditions to share a few case statements needs
a prior function to convert conditions to a constant.

If you think of "switch" like a rotary switch, it helps to overcome
the despair of being unable to ...
by Avatar Engineer
Wed May 12, 2010 8:17 pm
Forum: Coding Questions
Topic: USB code examples
Replies: 7
Views: 4254

Re: USB code examples

Sounds good!

can you post the code?
by Avatar Engineer
Tue May 11, 2010 4:56 pm
Forum: Coding Questions
Topic: USB code examples
Replies: 7
Views: 4254

Re: USB code examples

Thanks for links !
While most consumer devices may come with host drivers, I'll be connecting
to my own target hardware... The embedded controller code for USB is difficult enough
and the most expedient method is to use RS232 from the target and use a USB
converter cable to the host PC... but I'd ...
by Avatar Engineer
Tue May 11, 2010 3:29 am
Forum: Coding Questions
Topic: USB code examples
Replies: 7
Views: 4254

USB code examples

I'm new to PureBasic and would like to see example code for implementing USB communications
in a Windows OS. Hopefully, there are some easy methods that work well for both WinXP & Win7
in both 32 & 64 bit. My application would be for connecting remote laboratory instruments.