11-02-2009 09:50 AM
11-02-2009 10:00 AM
Do you want control Labview while you are developing with footswitch(s) or is it some application you want to develop, there you use footswitch(s) as a tool for controlling the program actions. I guess it is the last option you want. But you were somewhat vague on this point

11-04-2009
09:17 AM
- last edited on
04-01-2024
02:03 PM
by
Content Cleaner
Hi PodgeRambo,
Thank you for contacting National Instruments. You will not be able to read the Digital signals straight into a serial port. This is mainly due to the RS-232 port being a communication port and as such, you need to translate the Digital input into a signal that a Serial port could understand.
I have made a short list of the options that are available to you:
1. Construct an RS-232 interface device that can talk to your PC and relay the states of the switches through to your code on your PC. You will then need to modify your code so that you can read the RS-232 port. I would strongly discourage this idea, it will be very time consuming and will cause you no end of grief.
2. Buy a Multifunction DAQ device to read the state of the Digital signal. National Instruments produces a huge variety of different Multifunction devices and if all you need to do is read a digital line then something like a 6008 or 6009 will do the job. The other great advantage with this approach is that it is very easy to integrate this with your existing LabVIEW application and will reduce your development time.
I would recommend phoning the UK office on 01635 523 545 to speak to one of the Inside Sales Engineers about your application.
I hope this helps,
Thanks,
11-05-2009 03:00 PM
Hi sorry for taking so long to get back to you, yes the footswitch will control the program actions. I was wondering if there is a way to recieve the signals sent from footswitch.I thought I could use the rs-232 port but I would have to convert the digital signals from the footswitch to a signal that the rs-232 port will understand , the price of the daq device to do this is a bit much so if you can recommend any other options I would greatly appreciate it
Thanks.
11-05-2009 04:02 PM
The 6008 is the least expensive DAQ device from NI. There are other devices from other vendors but the support and LabVIEW integration will not be the same.
If you have a parallel port on the pc, you can use that for simple digital I/O. There is an example that comes with LabVIEW that shows how to read the port.
11-05-2009 05:17 PM
You could wire the request to send through the footswitch and back to the clear to send on the RS-232 port. Use software for managing the comm port to exert a request to sent (this would "enable" the footswitch)...then when the foot switch was depressed (assuming that it is normally open), a clear to send would appear. Connect the ground on the comm port to the ground on the foot switches frame...
That might work ... no guarantees...just what I would try.
Hummer1
11-06-2009 03:40 AM
If A NI 6008 or 6009 is to expensive. Then I would go for a micro controller solution with RS232 link. I should be very simple to whip something up. Of course you must invest some time in this. So in total the cost will be pretty much the same, if not more expensive.

11-06-2009 04:42 AM
Hi,
Something I did once was to pull apart a cheap USB keyboard. The circuit board inside was very small (approx 1cm x 3 cm). The keys are arranged in a matrix of rows and columns, and it was easy to find which key connects to where with a multimeter.
If I remember I used the 'page up' and 'page down' keys and simply connected my switches across the appropriate PCB edge connector terminal.
It was then a simple task of an event structure looking for a key down event. You don't have to bother with rs-232 or expensive digital I/Os, and it's debounced for you (as long as you have a suitably long keyboard repeat delay!!).
Hope this helps,
Regards,
Sebster.
11-06-2009 05:40 AM
Hi Sebster,
> Something I did once was to pull apart a cheap USB keyboard ...
That is a slick idea!
The only caveat is that your vi would have to have focus to get the keystrokes (which can be dealt with). But given that, it's pretty cool.
steve
11-06-2009 11:29 AM