07-02-2024 05:21 AM
Hi ;
I am working on the python node in labview and can I use it in an acquisition program, I wrote a python script to create a new file every 1000 points; this works if I'm in finished mode without a while loop; but I want it to also run in continue mode in a while loop?
the problem here is that I don't have all the data.
thanks in advance
Solved! Go to Solution.
07-02-2024 04:06 PM
Here are a few suggestions:
07-03-2024 03:43 AM
Hello, thank you for your feedback
for note 4 is there functionality in labview to define the size of files?
because I want to create new files every 1s, but I haven't managed to program it in labview
Do you have a solution to offer me please sir
07-03-2024 04:03 AM
hi ,
for segestion 3, I have a problem that the data is not recorded, the files are created but it is empty although I am able to trace the data continuously in the graph
What is the problem in your opinion?
07-03-2024 04:56 AM
Hi Amelie,
@ameletudiante99 wrote:
I have a problem that the data is not recorded, the files are created but it is empty although I am able to trace the data continuously in the graph
What is the problem in your opinion?
You need to debug on your own, we cannot debug/run/edit your images with LabVIEW!
07-03-2024 05:22 AM
yes it is always empty, it is created but it remains empty
when I define 100 samples the files only read 100 samples even though I acquired for more time.
yes I can visualize the data in the consumer loop, if only the loop is not working correctly
07-03-2024 06:28 AM
Hi Amelie,
@ameletudiante99 wrote:
yes it is always empty, it is created but it remains empty
Do you get any errors for the TDMS functions? That would explain the empty TDMS file…
@ameletudiante99 wrote:
yes I can visualize the data in the consumer loop
So DAQmx does work and the producer-consumer scheme also is working.
When your Python script doesn't save your data then the problem is probably inside the Python script…
07-03-2024 08:06 AM
@ameletudiante99 wrote:
Hello, thank you for your feedback
for note 4 is there functionality in labview to define the size of files?because I want to create new files every 1s, but I haven't managed to program it in labview
Do you have a solution to offer me please sir
Don't have LabVIEW on this computer; will not have access for a few hours or more, but look at this thread for a solution to the TDMS file size. You will have to change it from every hour to every second.
07-03-2024 08:11 AM
In your DAQmx read node set the read number of samples to 100 ms of data.
See this for how to do it. You are reading whenever samples are available, too much overhead in this mode.
07-04-2024 03:35 AM
Good morning ,
thank you for your response, that solves my problem
I wonder is there another way to record only the data of one channel out of 4?
For the other 3 channels I don't want to separate the files because I'm doing subsampling so I won't have large files