05-18-2020 03:21 PM
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!
05-18-2020 04:14 PM
I can't open file since it is a new revision. Can you post snippets so I can see what you have so far?
05-18-2020 04:39 PM
Thank you for your reply. Here is a screenshot and I hope you can see it clearly
05-18-2020 06:27 PM
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.
05-19-2020 03:06 AM
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.
05-19-2020 06:27 AM - edited 05-19-2020 06:28 AM
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…
05-19-2020 02:30 PM
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.
05-19-2020 02:36 PM
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:
Then you pretty much have all bits you need to solve your homework!
05-20-2020 10:39 AM
Gives examples on TCP communication.