07-14-2013 02:52 PM
Dear All,
I am new to labview and I want to try a very simple task but I don't know how to start it.
Here's what I want to do:
A button and a LED is connected to the computer. Whenever I press the button the LED will flash. I just need to know how to get a detection, i know this task could easily be done with an If loop
I hope someone can answer me in a form simliar to the below.
If
Detected button true;
flash light
end
07-14-2013 03:37 PM
You need a digital input and a digital output. Do you have any DAQ hardware already? Someting like the USB-6008?
If you don't, there is a quick, cheap alternative. You could use a serial port and use the handshaking lines like DTR DSR CTS or RTS as the poorman's digital inputs and outputs. VISA functions can read the handshaking lines or set the state of the outgoing handshaking lines.
07-18-2013 09:06 AM
You could use a serial port and use the handshaking lines like DTR DSR CTS or RTS as the poorman's digital inputs and outputs. VISA functions can read the handshaking lines or set the state of the outgoing handshaking lines. <--- please elaborate that please/
07-18-2013 09:28 AM - edited 07-18-2013 09:28 AM
Drop a property node for the VISA port onto your block diagram. Look for the handshaking properties under Serial Settings >> Modem Line Settings.
There are properties there you can read or write called Line xxx State where xxx is either DTR, DSR, CTS, RTS, DCD, or RI depending on which hardware line you want to work with.
07-18-2013 02:15 PM
thank you very much
07-31-2013 10:17 AM - edited 07-31-2013 10:19 AM
How do you get the COMPORT and instr Stat? I found the visa serial by searching it but I can't find the others.
07-31-2013 12:59 PM
Right click on the purple connector and pick Create Constant. Right click and pick Create Property Node.