10-25-2012 04:13 AM
Hi all,
I want to log some signals from a machine here in the workshop. This machine has 4 digital signals and 2 analog signals. I want to log these signals at the same time with a frequency of 100 Hz. All the signals must be written in one log file. I also want to see what happens therefore I use the front panel with booleans and graphs.
First of all I've tried to do this with DAQassistant. For the analog signals this works out fine, but the digital signals didn't work the way I wanted. I don’t know how to split the signal, so I can control the booleans. Searching on this forum didn’t help with finding out how to do that. There was something else on this forum that had helped me. I also could log the digital signals with the help of the DAQmx blocks. I have tried this first with one digital signal, and this worked fine. So I copied this 3 times for the other digital signals, but then I get the fault that the start task VI is reserved.
At that point I was searching how to solve this problem. I found that it is possible to make a task with MAX or simply choose more channels at the input. When I was running this VI, I get the fault that there are 4 lines in the channel and 1 line in data. I know don't know how to solve this problem.
Further I experienced that the DAQmx blocks and the DAQassistant could not be put in one VI. This give troubles with the DAQassistant. I get the fault code:
Attempted to read samples that are no longer available. The requested sample was previously available, but has since been overwritten. Increasing the buffer size, reading the data more frequently, or specifying a fixed number of samples to read instead of reading all available samples might correct the problem.
When I delete the DAQmx blocks then the problem is solved.
See the attachment for the VI's. Anybody has a solution?
10-25-2012 04:14 AM
I was forgotten to notice, I want to log continuous.
10-26-2012 02:44 AM
Hi Mark,
Can you re-post your VIs in a LabVIEW 2010 version?
-CC
10-26-2012 04:45 AM
Hi ChrissyC87,
See the attachment.
log probeersel - Copy.vi is a new vi that I have made. My problem with this is that the logging not working the way I want. I expect that in the logfile the time column is 0, 0.01, 0.02 etc. but now it gives sometimes double values and its not even its 0.00985, values like this.
10-26-2012 04:45 AM
11-12-2012 10:05 AM - edited 11-12-2012 10:23 AM
Hi,
I'm Corné Westeneng Applications Engineer at National Instruments. I will help you with your forum post.
I have read your forum post and opened your VI's. To be sure I do understand your question I want to summarize you forum post
You want to acquire:
- 4 digital channels
- 2 analog channels
- sample rate: 100Mhz
- Store the data into 1 measurement file.
Is this correct?
What version of Labview do you have?
What kind of hardware do you have?
According to the information I have now, I found the examples bellow. They might give you a starting piont to build your project
DAQmx Acquire with Multiple Channel Input Ranges
Synchronize Continuous Acquisition of Multiple Analog Input Devices
Read Digital Channel with Internal Clock and Pattern Match Start (acquire digital port)
Synchronize Analog Input and Digital Input Channels Using DAQmx
Please let me know If you need further support.
Best regards,
Corné Westeneng
Applications Engineer
NI-Netherlands