12-03-2007 10:06 AM
12-04-2007 03:55 PM
Hi,
I am a little confused as to what exactly you would like to do. If I understand correctly you would like the user to be able to select the channels they are testing on. This can be accomplished by using the physical channels control which can be created by right-clicking on the physical channels input of the create channel vi and selecting create control. If you would like to specify certain configurations that the user can choose from then you can use a combo box for this input found in the string and path palette found on the controls palette. You can then edit the combo box to display certain items and when selected output strings containing the proper syntax for your channel configuration (i.e. dev1/ai0:3). I hope this helps
12-04-2007 10:34 PM
12-05-2007
12:22 PM
- last edited on
07-23-2025
12:09 PM
by
Content Cleaner
Hi,
Your channel configuration section of your vi looks fine, I believe the issue with finite samples stems from the while loop. you are basically reading 1000 samples each time the while loop iterates thus attempting to read nonexistent samples on the second iteration, because you have only acquired 1000. You can solve this by removing the while loop. If you would like the user to be able to select between continuous and finite then I suggest a case structure: one case containing the read with a while loop the other without a while loop. With regard to scaling your data you can right click on the graph and select properties from which you can select scales which will allow you to create custom scales for your data, You can also use VIs from the numeric palette to perform mathematic operations on your data. To answer your last question differential mode does take two channels but will only display one. For example if you use AI0 and AI8 as your positive and negative channels respectively you will read AI0, For more information I suggest this document Field Wiring and Noise Considerations for Analog Signals. I hope this helps clear things up.
12-06-2007 12:52 AM
12-07-2007
08:07 AM
- last edited on
07-23-2025
12:09 PM
by
Content Cleaner
Hi,
I would check the input terminal configuration input on your DAQmx create channel VI. This will need to be configured for the type of measurement that you are performing. You can create a control for this input that will allow users to select which input configuration that they are using. With regard to the buffer size the following document goes into detail on how the buffer is configured and how to manually configure the buffer if you wish. How is the DAQmx Buffer Size Allocated for a Finite or Continuous Acquisition?
12-21-2007 09:12 AM
12-26-2007 11:30 AM
HI,
I have attempted to reproduce this issue but have been unsuccessful so far my data seems to write correctly, Could you please post a screenshot of your code along with a screen shot of the file that is written so that I can better understand what exactly is happening. It is my understanding that your data writes correctly only in the reverse order is this correct?
12-27-2007 09:08 PM
12-28-2007 02:50 PM
Hi,
Thank you for posting the screen shots I have been unsuccessful in determining exactly where the problem is coming from. Would it be possible for you to post the actual VI so that I can work with it so see if I can reproduce this issue using your code? In regard to your questions:
1. You are correct 1000 samples read should write 1000 samples to the table
2. I believe the discrepancy is due to amount of manipulation done between the read and the file write but I cannot be certain, without the code to work with.
3. I am unclear as to exactly what is happening. If you are reading empty channels then you may receive erroneous readings this is to be expected. When you connected your accelerometer did you connect in RSE or differential? You can also manipulate the signal range with will affect the gain setting, how off are the readings?