08-17-2005 11:56 PM
08-18-2005
02:28 PM
- last edited on
02-07-2024
08:41 AM
by
migration-bot
Hello Maxwell,
I will help you out with the hardware side of your project, since that is what I am most familiar with. I think the easiest way to know if a push button is open or closed would be to use a Data Acquisition (DAQ) device. You would connect one side of the push button to the +5V provided by the device and the other side to a digital input. Then, when the button is closed, you would read a digital high (5V) on your digital input line. Most of our DAQ devices have digital lines. They also have analog inputs, analog outputs (optional) and counters. If you do not need this functionality, you could consider a digital device. If you need to check the state of your push buttons at a fast rate, say over 1 Khz, then you should get a device that supports correlated (hardware timed) digital input and output. I am not sure what you mean by a variable speed counter so I may not be addressing that part of the question.
Let me know if you have additional questions about this.
Thanks!
Laura
08-19-2005
11:55 AM
- last edited on
02-07-2024
08:40 AM
by
migration-bot
Maxwell,
I'm happy to speak to your second (LabVIEW) question. You actually have a couple of options for communicating between two computers in LabVIEW via ethernet. The first and simplest is DataSocket, and I have included a link to a tutorial here. DataSocket is pretty much our own abstraction of TCP/IP and makes setting up the communication a little simpler. If you prefer the details, there are also explicit TCP/IP and UDP VIs that you could use instead, and I have included a link to a tutorial on the TCP/IP ones here. If you search around on our website, you can find a wealth of more information on any of these concepts. There are also examples on each of these that ship with LabVIEW -- just go to Help>>Find Examples and search for the appropriate terms under the search tab.
Kind Regards,