03-29-2022 12:03 PM
Hi,
Please help me out, my NIDAQ device keeps disconnecting. My NIDAQ is connected to WIFI Router through LAN wire and then WIFI Router is connected to computer through wireless connection. There is no mentioned problem as given in the error message.
Thank you
03-29-2022 12:10 PM - edited 03-29-2022 12:11 PM
03-29-2022 12:33 PM
My apologies, for mixing up the terms.
In continuation of previous query -
So, my experimental setup is rotating, and data acquisition is from the rotating frame of reference to non-rotating frame of reference. That's why I can't directly connect NIDAQ device to my computer through LAN wire. Instead I connect NIDAQ to wifi router through LAN wire and then wifi router to the computer.
Also yes I have stable connection, but don't know what else to do.
03-29-2022 12:45 PM
If everything is on the same subnet, things should work just fine unless there are policies on the router that prevent LAN-WLAN connection (e.g. a Guest WIFI network). If you can initially connect, you should be fine there.
How familiar are you with LabVIEW? It is well possible that you have bugs in your code, but we cannot tell that without seeing the VI. (What is the model number? How are you connecting to it (official drivers or homegrown ethernet?) Are you using TCP or UDP? Do you have some tunnels that are set to use default if unwired and not connected in some cases? Do you have FOR loop that can sometimes iterate zero times? Do you have race conditions due to local variable over-use? Are you keeping connections open or constantly opening new connections? So many potential points of failure! etc. etc.)
03-29-2022 10:27 PM
Yes, I am able to connect, so first problem can be ruled out.
I have fare knowledge of LabView, I guess. but don't know how to check bug in the code? can please suggest something?
I am use 3 modules on the chassis two NI9219, and one NI9216. No official driver is being used. I am using TCP.
Yes, I have some tunnels that are set to use default if un-wired and not connected in some cases. I have While loop and many case structures and no FOR loop.
I do not understand these - Do you have race conditions due to local variable over-use? Are you keeping connections open or constantly opening new connections? So many potential points of failure! etc. etc.)
Just a day back My code was working and I took the data for 60 hours in a row, and before that too, it worked just fine.
03-30-2022 08:22 AM
@Win_PhD_2023 wrote:
Yes, I am able to connect, so first problem can be ruled out.
I have fare knowledge of LabView, I guess. but don't know how to check bug in the code? can please suggest something?
I am use 3 modules on the chassis two NI9219, and one NI9216. No official driver is being used. I am using TCP.
Yes, I have some tunnels that are set to use default if un-wired and not connected in some cases. I have While loop and many case structures and no FOR loop.
I do not understand these - Do you have race conditions due to local variable over-use? Are you keeping connections open or constantly opening new connections? So many potential points of failure! etc. etc.)
Just a day back My code was working and I took the data for 60 hours in a row, and before that too, it worked just fine.
Can you post a copy of your code? Also, did anything change between when the code worked and when it didn't? This is really smelling like a race condition to me, but it is hard to be sure without seeing the code.