11-12-2014 02:35 PM - last edited on 10-26-2015 04:39 PM by LiliMcDonald
I copy the zip files that has the project and all the vi and Subvis. The two main Vis are: New Client.Vi as the client and multiconnection-server-with waveformGen.Vi as the Server.
The problem I am having is that when I fire up the server then fire up the client in waveform mode. I notice I get cDAQ data first before the data is switched to waveform. My guess is because the server is running in Cdaq mode as default so when the client is turned on by the time it could send the command to the server to switch to Waveform, It already receives Cdaq data. How can I stop it from doing that.
Also, Once I get the waveform data displayed on my graph, I notice that the waveform does not move it at all. The timestamp is changing and moving accross but the waveform remains stationary. Why and how do I change that? Is that a sampling issue or a graph property issue?
You will also notice that I can change the sampling info wht the server is set to Waveform but I cant do that if I set it to Cdaq,I tried using globals to get the sampling info and feed it to the read Daqmx but somewhat It causes error.
My files are attached wit this email, I am using a Cdaq -9172 with two NI 9239 cards. You might have to reconfigure the Daqmx config.vi. The confige file for the channels for the waveform is attached seperately.
Your help would be greatly appreciated!
Admin Note - VIs removed per user's request.
11-13-2014 04:31 PM
Hi,
Have you used any troubleshooting techniques like probes and highlight execution so that you can track the logic in your program? This will help you in determining the flow of execution. Also, here is some basic programming techniques for TCP/IP.
Basic TCP/IP Communication in LabVIEW
http://www.ni.com/white-paper/2710/en/
Also, what do you mean by cDAQ data?