Hi,
Just a few questions about USB, to help point me in the right direction for my latest project.
I need to monitor arc voltage & current, of a stud weld, for upto 1.5 seconds, and read the values into a PC, oscilloscope style. I have HID maker FS, and will soon have an update for PBP so i can use a PIC18F4550. So I have never used hid maker so far.
I have read that the high speed usb will poll for data every 1mS, this would be an ideal sample rate for my application.
I think i would need only the 2 variables, and a flag to tell the pc that a weld is happening, and to store the results.
So Can I simply read the a/d converter where hid maker says put your code here, and it will send the two variables, and flag bit, whenever the pc polls for it? Is the 1mS timing reliable enough for me to measure the weld time from my readings?
I am kind of thinking that this is how a joystick works. The axes are read maybee a hundred times by its controller, but only the values that are read just before being polled for are sent. Am I correct, or am I misunderstanding how the whole thing works?
The other option is to read the values, store them in some fast memory, and send them as a block to the pc, once the weld is finished, but this seems to involve more hardware, & much more complex programming.
Any tips would be very much appreciated, and would probably save me from going miles down the wrong road, a hundred times.
Best regards
Bob...
Bookmarks