LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Porgram hangs when attempting to acquire analog data from an Advantech USB4704

Hi All,

 

I am currently trying to support a system which was developed 10 years ago using LV2013. The system uses Advantech USB4704 devices for data acquisition and control and the Advantech DAQNavi framework with LV support is used. I have no previous experience with the Advantech hardware or software. The PC has been replaced with a new machine running windows 10 and the old software runs fine.

 

I have upgraded to LV2017, which is is the latest version I have access to.

 

When attempting to acquire analog input data the program hangs thoroughly at the "DAQNavi Read" polymorphic vi (using the  "Analog 1D Wfm NChan NSamp" instance) and Ctrl+Alt+Del is required to close Labview. The initialization vis all execute with no errors. 

I've written some  code to test with which is shown below.

 

Any help would be greatly appreciated.

 

Thanks,

Mike

 

MichaelWestwood_0-1698602101434.png

 

 

0 Kudos
Message 1 of 2
(590 Views)

Hi Mike,

 

The following are pretty general suggestions, but hoping that one might help:

  • To confirm, the code runs fine in LabVIEW 2013 on Windows 10, but hangs in LabVIEW 2017 on Windows 10?
  • Is the bitness of LabVIEW 2013 and LabVIEW 2017 the same? (both 32-bit or both 64-bit)
  • Are you using the latest Advantech driver?
  • Do any other instances of the "DAQNavi Read" polymorphic VI work?
  • Can you probe inside the "Analog 1D Wfm NChan NSamp" instance to notice the point at which it hangs? This probably won't help if the VI is a simple wrapper around a DLL call.
  • Have you tried the code on a second Windows 10 machine? Is the behaviour the same?
  • Do you have access to a more recent version of LabVIEW on another machine?
0 Kudos
Message 2 of 2
(520 Views)