LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Temperature Conversion Using DAQmx and TCP/IP communication as Client and Server

Please anyone who can help me solve that problem. I was supposed to submit the project a week ago but i couldn´t because of incomplete solution. I have to create a temperature conversion using TCP/IP and DAQmx(Task) to run as Client and Server, and this is what i have done so far. I really appreciate for your help. Thank you!

0 Kudos
Message 1 of 9
(2,802 Views)

I can't open file since it is a new revision. Can you post snippets so I can see what you have so far?

0 Kudos
Message 2 of 9
(2,776 Views)

Thank you for your reply. Here is a screenshot and I hope you can see it clearly 

0 Kudos
Message 3 of 9
(2,769 Views)

It is very odd that you have the send and receive in the same loop.  Why is that?

 

If you are doing TCP on the same PC, then you should create two separate VI's, one for the sender and one for the receiver.

 

Is the data that is being bundled into the cluster correct?

 

On the receiver, you are trying to read 21 bytes.  Is that the correct number?  Why don't you have any data wire coming out of it?

 

You should look at the TCP server and client examples in the LabVIEW example finder.

0 Kudos
Message 4 of 9
(2,749 Views)

I know It was completely incorrect, I just wanted to show you how I want to create it. The file I have attached below is the program i want to run, you can test and run it and It will go smoothly. The problem is: I don´t know how to begin with, either with the DAQmx(Task) or TCP/IP to communicate between two computers. Thanks again. 

0 Kudos
Message 5 of 9
(2,707 Views)

Hi plus,

 


@plushögskolan-jönköping wrote:

The file I have attached below is the program i want to run, you can test and run it and It will go smoothly.


It doesn't "go smoothly", it runs as fast as possible: use a small wait in such simple loops!

 

Why do you need an ExpressVI for simple calculations? Why do you need so many indicators?

I included another conversion using the unit system of LabVIEW…

 


@plushögskolan-jönköping wrote:

I don´t know how to begin with, either with the DAQmx(Task) or TCP/IP to communicate between two computers. 


Then you should start with training courses: they are offered for free until End of May!

And you should study the example VIs coming with LabVIEW in a huge example library…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 9
(2,682 Views)

Hi Gerdw!

Thank you for your reply. I have got a school project to create a simple temperature conversion using DAQmx and TCP/IP communication so that i can run on two computers as a master and slave. So the many indicators are actually not necessary, I am just stack on the project for a week now. I tried all possible ways to solve that problem but still confused. So please, how can I begin to connect/wire those DBL data and ExpressVI to DAQmx and TCP/IP? I am completely a new beginner to Labview programming and I really appreciate if you can atleast give me some hints on how to begin. Thanks again.  

0 Kudos
Message 7 of 9
(2,666 Views)

Hi plus,

 


@plushögskolan-jönköping wrote:

I have got a school project to create a simple temperature conversion using DAQmx and TCP/IP communication so that i can run on two computers as a master and slave. … how can I begin to connect/wire those DBL data and ExpressVI to DAQmx and TCP/IP? I am completely a new beginner to Labview programming and I really appreciate if you can atleast give me some hints on how to begin.


As a beginner you should take the tutorials offered by NI.

The self-paced courses are also for free until end of May!

 

Then you should open the example finder and look for basic examples on:

  • reading a voltage signal with DAQmx
  • TCP communication with master/slave

Then you pretty much have all bits you need to solve your homework!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 9
(2,663 Views)