<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how can use usb? in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2779400#M817543</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;hamedi wrote: &lt;BR /&gt;
&lt;P&gt;in c++ i can turn on a LED.&lt;/P&gt;
&lt;P&gt;but in labview i can't do it&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How are you doing this in C++? If you share the code, we might be able to explain how to do the same thing in LabVIEW.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Mar 2014 21:33:09 GMT</pubDate>
    <dc:creator>nathand</dc:creator>
    <dc:date>2014-03-14T21:33:09Z</dc:date>
    <item>
      <title>how can use usb?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2779150#M817492</link>
      <description>&lt;P&gt;hi&lt;BR /&gt;i have a switch and i want to ever that i press it, i have a Voltage in two other wire.&lt;BR /&gt;and i want to have number of press the key.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/7ea2d070739454587583c14b9e77b42eea705ed9/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31333633333869333333334345454630304244383537432f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="usb.jpg" title="usb.jpg" align="center" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 17:45:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2779150#M817492</guid>
      <dc:creator>hamedi</dc:creator>
      <dc:date>2014-03-14T17:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: how can use usb?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2779172#M817498</link>
      <description>&lt;P&gt;&lt;img id="smileyindifferent" class="emoticon emoticon-smileyindifferent" src="https://ni.lithium.com/i/smilies/16x16_smiley-indifferent.gif" alt="Smiley Indifferent" title="Smiley Indifferent" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't want to sound rude so I will do my best. &amp;nbsp;Your diagram is incorrect for several reasons. &amp;nbsp;Lets just say Windows does not give voltage access to each USB port on your computer. &amp;nbsp;There is no way for your computer, let alone Windows, let alone any programming language, to know if there is 5V on a USB data pin.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need a ADC somewhere that can sample the voltage and determine the value of it. &amp;nbsp;NI sells several cheap USB devices for taking analog in readings, or digital in readings. &amp;nbsp;The MyDAQ is great for learning. &amp;nbsp;If that is too expensive look at the Arduino LIFA toolkit.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 17:59:40 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2779172#M817498</guid>
      <dc:creator>Hooovahh</dc:creator>
      <dc:date>2014-03-14T17:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: how can use usb?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2779186#M817501</link>
      <description>If you want to design a usb device, then you need hardware and firmware on the device. As mentioned, you cannot do anything with just a wire. Refer to &lt;A href="http://www.usb.organd" target="_blank"&gt;www.usb.organd&lt;/A&gt; and do some basic research. I would also recommend an arduino. With a pullup resistor and the lifa toolkit, you are done.</description>
      <pubDate>Fri, 14 Mar 2014 18:14:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2779186#M817501</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2014-03-14T18:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: how can use usb?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2779188#M817502</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/1040"&gt;@Dennis_Knutson&lt;/a&gt; wrote:&lt;BR /&gt;With a pullup resistor...&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yeah don't forget that one. &amp;nbsp;If you do then when the switch is on you will see 5V. &amp;nbsp;When the switch is off you could see 5V or you could see the value climb, or you could see the value fall but you will likely not see 0V.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 18:15:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2779188#M817502</guid>
      <dc:creator>Hooovahh</dc:creator>
      <dc:date>2014-03-14T18:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: how can use usb?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2779208#M817505</link>
      <description>I guess I was assuming that the op understood some elementary electronics and would have the other side of the switch grounded. Probably a big mistake to make any such assumption.</description>
      <pubDate>Fri, 14 Mar 2014 18:26:54 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2779208#M817505</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2014-03-14T18:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: how can use usb?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2779236#M817514</link>
      <description>&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;can i do this with another port?(for exapmle serial)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in c++ i can turn on a LED.&lt;/P&gt;
&lt;P&gt;but in labview i can't do it&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i want to perss the key and LED turn on&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you so much&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 18:42:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2779236#M817514</guid>
      <dc:creator>hamedi</dc:creator>
      <dc:date>2014-03-14T18:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: how can use usb?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2779284#M817524</link>
      <description>&lt;P&gt;It is possible with Serial, but certainly not with USB.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can access the pins of the serial port via VISA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will need to show some code to let us know at what stage you are with your program otherwise describing each and every tiny step will be very tedious.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Shane.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 19:35:19 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2779284#M817524</guid>
      <dc:creator>Intaris</dc:creator>
      <dc:date>2014-03-14T19:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: how can use usb?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2779312#M817531</link>
      <description>&lt;P&gt;please explain for me how can do this with serial.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if it possible for you give me a vi example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 19:59:19 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2779312#M817531</guid>
      <dc:creator>hamedi</dc:creator>
      <dc:date>2014-03-14T19:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: how can use usb?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2779400#M817543</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;hamedi wrote: &lt;BR /&gt;
&lt;P&gt;in c++ i can turn on a LED.&lt;/P&gt;
&lt;P&gt;but in labview i can't do it&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How are you doing this in C++? If you share the code, we might be able to explain how to do the same thing in LabVIEW.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 21:33:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2779400#M817543</guid>
      <dc:creator>nathand</dc:creator>
      <dc:date>2014-03-14T21:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: how can use USB?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2780272#M817731</link>
      <description>&lt;P&gt;You could also use some sort of USB enabled device - like arduino or some FTDI USB chip&lt;/P&gt;
&lt;P&gt;as you want. I did such a device with an atxmega controller for a machine which gives some simple IO&lt;/P&gt;
&lt;P&gt;that i use with labview application for displaying some process values. I did this via&lt;/P&gt;
&lt;P&gt;a virtual serial port (called CDC) which is very easy to use an requires no USB&lt;/P&gt;
&lt;P&gt;related programming.&lt;/P&gt;
&lt;P&gt;Then you can connect to VISA serial functions an communicate strings. &lt;/P&gt;
&lt;P&gt;With very little labview code you should the be able to decode and count the edges&lt;/P&gt;
&lt;P&gt;of the button input.&lt;/P&gt;
&lt;P&gt;With this solution you should also be able to do more complex USB IO in future.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Mar 2014 20:10:06 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2780272#M817731</guid>
      <dc:creator>Gprogrammer</dc:creator>
      <dc:date>2014-03-15T20:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: how can use usb?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2780282#M817735</link>
      <description>Again, some basic understanding will go s long way. There are serial handshaking lines that you can query with a VISA property node. You will get asserted, unasserted, or unknown when you query the property. You should know that rs-232 is NOT ttl logic levels. &lt;BR /&gt;&lt;BR /&gt;You've also been told three times now to use an arduino for a ready made solution.</description>
      <pubDate>Sat, 15 Mar 2014 21:08:35 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2780282#M817735</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2014-03-15T21:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: how can use usb?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2780448#M817769</link>
      <description>&lt;P&gt;i wan to use serial port&lt;/P&gt;
&lt;P&gt;when i perss the key LED is on.&lt;/P&gt;
&lt;P&gt;please give me a vi that do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you so much.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Mar 2014 10:50:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2780448#M817769</guid>
      <dc:creator>hamedi</dc:creator>
      <dc:date>2014-03-16T10:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: how can use usb?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2780492#M817784</link>
      <description>It's unlikely that anyone will just give you the entire solution to your school work. With the property node, give it a try and if you run into problems, post what you have written with details on any issues you might be having.&lt;BR /&gt;&lt;BR /&gt;Examples on the VISA property node do exist on this and the instrument control board. What search terms have you tried?</description>
      <pubDate>Sun, 16 Mar 2014 14:41:08 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/how-can-use-usb/m-p/2780492#M817784</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2014-03-16T14:41:08Z</dc:date>
    </item>
  </channel>
</rss>

