LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to read data from USB port?

As the people who were able to guess digital input pointed out, a USB port won't work for you.  (And neither will an ethernet port.)

 

What is the physical signal you are trying measure?  Is it a digital voltage high vs. low?  Wheter a switch or relay is opened or closed?  At what frequency do you want to measure this?

0 Kudos
Message 11 of 25
(1,520 Views)

Why you complicating your life. You need to read data from USB then basically you need USB to serial converter and VISA and thats it.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 12 of 25
(1,495 Views)

@Ranjeet_Singh wrote:

Why you complicating your life. You need to read data from USB then basically you need USB to serial converter and VISA and thats it.


And how exactly is that supposed to help?

0 Kudos
Message 13 of 25
(1,488 Views)

Mate, what you have to do so we can help with more ideas is:

 

- Which device are you using "Model" Slip ring so we can see the datasheet and check what signal format you get through those 4 wires you mentioned?

- What are you looking to read from it (measuring data from a rotating object).

- Is your USB port 1.0, 2.0 or 3.0 (Because some people in the past found issue on USB 2.0 and had to use 1.0 old hub and avoid noisy signal).

 

Note: The USB to serial converted won’t work if you are not receiving sending serial data across the wires coming out from slip ring....

 

I have read this threat of answers but we are all guessing because luck of information.

Fernando H. Solórzano
HW Automation Test Engineer
0 Kudos
Message 14 of 25
(1,475 Views)

@Intaris wrote:
And how exactly is that supposed to help?

He needs to read the data over USB. I dont think he need anything apart from that. What else he need. Let me know.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 15 of 25
(1,463 Views)

@Ferchu wrote:

I have read this threat of answers but we are all guessing because luck of information.


I'm not guessing.  The OP is trying to misuse some port on his PC as a data acquisition device INDEPENDENTLY of the protocol normally sent over the port.

 

This won't work for USB and it won't work for Ethernet.  End of story.

 

Depending on the signals you have it MIGHT work on an RS-232 port, but with low speeds and (as suggested) limitations on what type of signal you can detect.

 

The "USB" in the OPs original post is a red herring.  He wants to read in digital signals over >some port< on his PC.  If I have misunderstood, I am open to more information.

Message 16 of 25
(1,460 Views)

@Ranjeet_Singh wrote:
He needs to read the data over USB. I dont think he need anything apart from that. What else he need. Let me know.

He does not need to read the data "over USB".  That implies that the USB protocol is somehow involved, which it is not in this case.

 

Again.... He does NOT have a USB device.  He wants to misuse the USB port for digital measurements by somehow accessing the individual pins on the USB port.  This is not going to work.

0 Kudos
Message 17 of 25
(1,458 Views)

Yes this is the case.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 18 of 25
(1,449 Views)

Guys, I undestand now what he wants to do. As one of you said no matter what protocol is used it wont work connecting this straight to the USB pc port.

 

The signal needs to be manipulated first before get sent to the pc, it is easy sent it serially in which then you can use what Singh said Serial to USB converter.

 

If you want to do something fancy you can probably use arduino to decode that signal.

 

 

 

 

 

Fernando H. Solórzano
HW Automation Test Engineer
0 Kudos
Message 19 of 25
(1,420 Views)

@Ferchu wrote:

 

If you want to do something fancy you can probably use arduino to decode that signal.

   


Or an inexpensive data acquisition device.

 

I suggest all the conversation in this thread just stop until the original poster decides to get back in and tell us what his real requirements are.

Message 20 of 25
(1,416 Views)