LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW + communication protocol

Hi there,

I am currently working on a project which involves acquiring data from a cardiac mapping unit and transmitting and displaying this data on the PC.  I plan on using LabVIEW to create a GUI to dispay this data.  The system is designed to transmit 1024 ksamples/s. Currently I am looking into two different communication protocols to transmit the data to the computer and displayed in LabVIEW.  The two communication protocols under investigation are USB 2.0 high speed and Ethernet.  However I would like to have your input to know which protocol would be best suited to interface with LabVIEW.  I would like to know  which would be easier to implment to interface with LabVIEW.  I would like to know which one of the two communication protocols outlined which would be the best to meet design requirements of this project. 

I should also note that I have no experience programming either USB or Ethernet.

0 Kudos
Message 1 of 10
(5,320 Views)

Ethernet

0 Kudos
Message 2 of 10
(5,316 Views)

Hi,

 

What protocol is the instrument designed to use? Are there LabVIEW drivers for this instrument?

 

Generally speaking, you should not have to program the protocol, just use the drivers and they should take care of the protocol.

 

There are factors to consider like how long a cable will you be using, USB has limits there.  Best to research the issues surround the transfer rate and distance, etc... 


From the LabVIEW POV you would probably use VISA to communicate, and it would manage your protocols.  This depends on the drivers you may or may not have and the instrument.

 

Well, just a starting point for your question.

-------
Mark Ramsdale
-------
0 Kudos
Message 3 of 10
(5,312 Views)

I second the ethernet.  More bandwidth and there are plenty of examples of how to use it.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 10
(5,308 Views)

I got the impression they are designing their own interface hardware.

 

If not then their decision has been made for them by whatever interface(s) are available on the cardiac machine.

 

 

 

0 Kudos
Message 5 of 10
(5,305 Views)

Thats right we are designing our own hardware

0 Kudos
Message 6 of 10
(5,301 Views)

I would go with Ethernet. You would then have the option (potentially) of going wired or wireless. With Ethernet you can have you monitor in one location and the GUI at another. This is not very easy to accomplish using USB. In addition, if you go with UDP (provided you can drop a packet occassionally) you can also broadcast the data so you can support multiple GUIs or logging devices at one time.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 7 of 10
(5,292 Views)

If you're designing the transmitting hardware, it might get interesting.

 

For USB, the ease depends on the hardware implimentation. If you're using a UART->USB like the FTDI on the Arduino, then it's really easy. Install the drivers and use VISA to communicate with the virtual serial port. If you're using raw USB protocals, you're beyond my expertise, but I imagine it'll involve writing drivers on the LabVIEW side.

 

I imagine ethernet will be fairly annoying on the hardware side. However, it will be only slightly more complex than serial on the LabVIEW side. You gain all of the benifits mentioned above.

 

If you're approaching this from a pure LabVIEW point of view. I would vote Ethernet. Lots of gain for little effort.

If you're considering the hardware impacts... that's a tough one.

Josh
Software is never really finished, it's just an acceptable level of broken
0 Kudos
Message 8 of 10
(5,289 Views)

@JW-L3CE wrote:

If you're designing the transmitting hardware, it might get interesting.


Keep in mind that JW is also still bitter with the program he is currently working.  The VHDL people don't know ethernet and decided to write their own code.  JW got stuck in the middle of it.  I avoided that portion of the project like the plague.  If your people know ethernet protocols, you shouldn't have the issues we did.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 9 of 10
(5,280 Views)

The following Discussion Forum post is on how to get started communicating with LabVIEW through a USB device:

https://forums.ni.com/t5/LabVIEW/Can-Labview-2009-communicate-via-an-USB-port-to-a-custom-PCB/td-p/1...

 

The following links have more information on developing a LabVIEW program with TCP/IP and UDP:

https://www.ni.com/docs/en-US/bundle/labview/page/using-labview-with-tcpip-and-udp.html

https://forums.ni.com/t5/Developer-Center-Resources/Inter-Application-Communication-TCP/ta-p/3523043

 

Systems Engineer
SISU
Message 10 of 10
(5,235 Views)