From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-01-2016 03:49 PM
I have labview 2016b connect to two GPIB devices, an Ethernet instrument, and two serial port devices. These are all done through USB ports and a USB Hub. Also the PC has no Ethernet port and has a USB to Ethernet connection. These devices are read and the data collected is put into an array. The time period between reads is 5 seconds. My program may run several hours but eventually it will freeze. The last time I checked it it was stalled on a vi that was trying to read a GPIB device. There's no loop in this vi. It should pass right through. I had to stop Labview and restart the PC. Could it be that I'm swamping my program with all these devices.
09-01-2016 04:08 PM
I have labview 2016, but your version is later than mine apparently.
Question for you, do you use any serial converters? Also i read you have a USB hub. This hubs and converters can be conterfiet and they have random issues with labview. I had an application using prolific converters, it would work great for a few hours then crash and other times it would work for 5 minutes and then crash. I dont know the exact issue, probably some driver problem, but i know there can be issues. I switched to an FTDI converter bought directly from FTDI and it worked perfect after that.
Hope that helps.
09-01-2016 06:33 PM
I'm with Matt here, it's probably a USB hub problem if it's freezing up on a GPIB loop. Not totally ruling out low-grade USB to RS232 connectors here, but it leans towards the hub as I've used quite a lot of NI GPIB-USB adapters and never had a problem that I could trace back to one of them.
If you can, try to invest in a higher-quality hub. Make sure it's well-powered (check the power brick that comes with it as well as its stated power output capabiity per port). Also, it may seem counterintuitive but you probably want a 4-port hub. You'll notice that hubs usually have 4, 7, 10, or 16 ports on them, and that's because the base chip is a 1-in, 4-out chip, and if you see a 7 port hub it's really a 4-port hub and another 4-port hub inside one box, and one of the plugs on the first hub is internally connected to the second hub.
09-01-2016 07:34 PM
And buy it from a LEGITMATE vendor! Do NOT buy it off amazon!! haha.
09-02-2016 11:30 AM
Thanks Matt and Kyle. Your help is greatly appreciated. I do have a questionable USB to Serial Converter, probably profilithic. I'll buy the FTDI converter. Also I have a 4 USB Hub. It gets its power from the Laptop USB port. No power supply. I'm using 3 of the Hub ports. I should see if I can buy a better quality one. The cost is not important at this time. Having test run for a few days is the important thing.
09-02-2016 11:50 AM
and also...
There are power/hibernation setting on PC that want to shut down USB ports if the pC thinks it is idle.
Ben
09-02-2016 12:25 PM
I'll look into that as well. It may be a problem as our tests last several days.