LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hardware and Labview

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 

0 Kudos
Message 1 of 7
(3,148 Views)

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.

0 Kudos
Message 2 of 7
(3,139 Views)

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/

0 Kudos
Message 3 of 7
(3,089 Views)

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.

 

0 Kudos
Message 4 of 7
(3,079 Views)

thank you very much

0 Kudos
Message 5 of 7
(3,066 Views)

How do you get the COMPORT and instr Stat?  I found the visa serial by searching it but I can't find the others. 

0 Kudos
Message 6 of 7
(3,011 Views)

Right click on the purple connector and pick Create Constant.  Right click and pick Create Property Node.

0 Kudos
Message 7 of 7
(2,991 Views)