11-24-2023 01:01 AM
11-24-2023 01:04 AM - edited 11-24-2023 01:05 AM
Hi sir,
I am very sorry sir for not attaching the codes. PFA for client and server VI
11-24-2023 01:25 AM
11-24-2023 06:55 AM - edited 11-24-2023 07:04 AM
use localhost 127.0.0.1 in both server and client
1# start server.vi
2# start client.vi
udp:
- manually assign different ports for sending and receiveing, 2-port
tcp:
- needs Listener.vi to assign proper port-pairs, manually assign remote port, 1-port
attached as labview 2019 64bit
to get more ideas, you may take a look at
C:\Program Files\National Instruments\LabVIEW 2020\examples\Data Communication\Protocols\TCP\Simple TCP
11-24-2023 07:20 AM - edited 11-24-2023 07:21 AM
important: you still need that differnt port, as you can't use a port more than once on the same computer.
so in this case the port pair is 56000, 63001
in the client .vi, the second remote port from sender.vi from listener.vi, would be local port
11-30-2023 03:25 AM - edited 11-30-2023 03:26 AM
So I was able to pass the waveform successfully using the shared variable instead of those TCP and UDP protocols. I successfully got FFT on the client side from the signal generated on the server side. And not just on localhost but rather when both server and client were 2 different machines connected to same network. Thank you guys for your help.
Now next step is to plot the frequency and corresponding magnitude as a bar graph on the client side. I was able to get the picture of it from Plot Waveform VI, but when I want to plot XY Plot it is giving error. It is cluster of 3 elements on magnitude side and 1D array of cluster of 2 elements on the plot side.
I used unbundle to get dF and magnitude and then bundled these 2, converted to array but still error.
11-30-2023 03:51 AM
Hi shreyaskarnad,
@shreyaskarnad wrote:
Now next step is to plot the frequency and corresponding magnitude as a bar graph on the client side. I was able to get the picture of it from Plot Waveform VI, but when I want to plot XY Plot it is giving error. It is cluster of 3 elements on magnitude side and 1D array of cluster of 2 elements on the plot side.
I used unbundle to get dF and magnitude and then bundled these 2, converted to array but still error.
You cannot plot a waveform (or alike) datatype directly in a XYGraph!
Suggestions:
What is the "Plot Waveform VI"?
How should the bar plot look alike when you already can get a waveform graph/plot?
Why do you think you need to use a XYGraph?