-2

I'm a newbie using LabView for my project. So I'm developing a program that gathers data from sensors that attach in the DAQmx board and also a spectrometer from STS-VIS ocean optic. At the first developing, I combine both devices in one loop inside the same flat structure, but I got an error saying: "The application is not able to keep up with the hardware acquisition." I cannot get the data showing on the graph for both devices, but it was just fine if I run it separately. And I found the solution saying that I need to separate both devices in a different while loop process because it may have different buffer size (?). I did it and it worked that all the sensors are showing in each graph. But the weird thing is, I need to stop the program first at the first run, then run it again for the second time for getting the graph showing in the application. Can anyone tell me what I did wrong and give me a solution? Due to the project rule I cannot share my Vi here publicly, but if anyone interested to help, I'd like to share it personally. Thank you.

Kevin
  • 57
  • 6
  • why its not working in the first run, debug it first. – Vignesh Jul 01 '20 at 05:53
  • probably the DAQ is configured wrong. Note that it must buffer sensor data because the computer cannot write as fast as the module can sample. Eg. if you sample 10kHz you should write only at 1kHz... Further if you have two separate DAQ-nodes make sure that one is master and the other is slave (so it samples on demand). | In general: please provide the code so that we are not forced to guess – max Jul 01 '20 at 06:29
  • 1
    If you cannot share your vi maybe you can reproduce a minimal example (the basic outline) as @max suggested. At the moment we can just guess what the problem could be. – Salome Jul 02 '20 at 06:04

2 Answers2

0

you are doing right thing but you have to understand how Data acquisition work in LabVIEW and hardware.

you can increase hardware buffer Programmatically using property node or try to read fast as possible then you dont need two separate loop.

NI

gb008
  • 11
  • 3
-1

I work currently with a NI DAQmx device too and became desprate using LabView because there is not good documentation and/or examples. Then I started to use Python which I found more intuitively. The only disadvantage is that the userinterface is not so easily generated, but for this one can use the QT Designer (open source programm avaiable online).

Machzx
  • 49
  • 7