Need quick help, please!!! How do I scan the counter and analog channel in parallel, synchronized?

Hi,
I'm using LabView6.1 and a PCI6014 DAQ card.
I have to scan simultaneously an analog channel and the counter on the card. My project requires me to measure in parallel a force (a voltage on an analog channel) in correspondence to a distance (measured with a counter) and I have to display a force-distance graph.
So, can someone please tell me how can I program the counter and an analog channel to take 1000 measurements in parallel, and then, by reading the buffers to have two sets of corresponding measurements?
I've tried some things and I've got only an error message, that says that there is no free DMA channel available (the error comes from configuring
the analog channel). I attached one of these programs that gives this error, maybe somebody can tell me what I do wrong.
If somebody could send me an example (in LabView6, I have no 7 :-( ), I would be grateful.
Thank you,
pixooxiq
Attachments:
Scan_Test_4.vi ‏177 KB

Hi pixooxiq,
unfortunately, your Card has only one DMA-Channel.
If you want to use two Channels simutaneously, you have to tell one of them to use an Interrupt instead.
This option can be set with the "Set DAQ Device Information.VI"
Just see the Bitmap, I've attached.
Perhaps, you now get Performance-problems, cause the IRQ does not directly write the Data but involves the CPU. In this case the only possibillity is to use an other card with more than 1 DMA-Channel...
Regards
Peter Weber
NI Germany
Attachments:
Interrupt2.bmp ‏159 KB

Similar Messages

  • Can anyone help please. how do i get the home button to appear on the touch screen my home button has stopped working?

    can anyone help please. how do i get the home button to appear on the touch screen my home button has stopped working?

    I have same problem.
    However, I am unable to turn on Assistive Touch.
    At one time I was able to activate it, but it went away and now I cant reactivate.
    What is the solution?

  • How do I use the counter and digital signals of the 6071E while it is connected to SCXI modules?

    I am contemplating using a PCI 6071E with SCXI. We have the boards (6071E), we would need the cable (I suppose SH1006868) and the SCXI system. I would like to know how would you access the counter and digital line capabilities of the board. I will be using a SCXI-1314 with a SCXI-1520 Module for strain measurements but will need to use the counter and digital lines of the board as well. Can this be done? If so, how and/or what else do I need?

    I think this KnowledgeBase will answer the question for you.
    Accessing DAQ Board Counter Pins with an SCXI System
    Otis
    Training and Certification
    Product Support Engineer
    National Instruments

  • Need quick help please!! Fast!

    Here is my code... I know it's long, but it's simple. The only part I'm having trouble with is the very end. You don't really have to know what point of this to help me figure out the problem. Near the very bottom, you'll see the line "double refund = (startcancount/startendcount)*premium;". For some reason, this keeps coming out as zero, even though I run it through the debugger and every single one of the variables has a non-zero value. I cannot figure it out. I tried changing the data type to float to no avail. What is the problem!?
    package isys202p1;
    import javax.swing.JOptionPane;
    public class ISys202P1 {
         public static void main(String[] args) {
              //Initialized variables for storing the string values of the entered names, premium
              String firstname;
              String middlename;
              String lastname;
              String response = null;
              double premium = 0;
              int startyear = 0;
              int startmonth = 0;
              int startday = 0;
              int endyear = 0;
              int endmonth = 0;
              int endday = 0;
              int canyear = 0;
              int canmonth = 0;
              int canday = 0;
              int startendcount = 0;
              int startcancount = 0;
              String ssmonth = null;
              String esmonth = null;
              String csmonth = null;
              //Prompts user for first name and stores it in the string variable firstname
              firstname = JOptionPane.showInputDialog("Please enter your first name:");
              //Prompts user for middle name and stores it in the string variable middlename
              middlename = JOptionPane.showInputDialog("Please enter your middle name");
              //Prompts user for last name and stores it in the string variable lastname
              lastname = JOptionPane.showInputDialog("Please enter your last name:");
              //Prompts the user for a premium amount, without the dollar sign, and assigns to the premium variable
              response = JOptionPane.showInputDialog("Please enter your premium amount: $");
                   premium = Double.parseDouble(response);
              //Prompts the user for the starting date of the policy term (year)
              response = JOptionPane.showInputDialog("Please enter the starting date for the policy term (year)");
                   startyear = Integer.parseInt(response);
              //Prompts the user for the starting date of the policy term (month)
              response = JOptionPane.showInputDialog("Please enter the starting date for the policy term (month)");
                   startmonth = Integer.parseInt(response);
              //Prompts the user for the starting date of the policy term (day)
              response = JOptionPane.showInputDialog("Please enter the starting date for the policy term (day)");
                   startday = Integer.parseInt(response);
              //Prompts the user for the ending date of the policy term (year)     
              response = JOptionPane.showInputDialog("Please enter the ending date for the policy term (year)");
                   endyear = Integer.parseInt(response);
              //Prompts the user for the ending date of the policy term (month)
              response = JOptionPane.showInputDialog("Please enter the ending date for the policy term (month)");
                   endmonth = Integer.parseInt(response);
              //Prompts the user for the ending date of the policy term (day)          
              response = JOptionPane.showInputDialog("Please enter the ending date for the policy term (day)");
                   endday = Integer.parseInt(response);
              //Prompts the user for the effective date of the policy cancellation (year)
              response = JOptionPane.showInputDialog("Please enter the effective date for the policy cancellation (year)");
                   canyear = Integer.parseInt(response);
              //Prompts the user for the effective date of the policy cancellation (month)
              response = JOptionPane.showInputDialog("Please enter the effective date for the policy cancellation (month)");
                   canmonth = Integer.parseInt(response);
              //Prompts the user for the effective date of the policy cancellation (day)
              response = JOptionPane.showInputDialog("Please enter the effective date for the policy cancellation (day)");
                   canday = Integer.parseInt(response);
                   //if statements that account for mid-year starting dates
              if (startmonth==1)
                   startcancount=0+startday;
              if (startmonth==2)
                   startcancount=31+startday;
              if (startmonth==3)
                   startcancount=59+startday;
              if (startmonth==4)
                   startcancount=90+startday;
              if (startmonth==5)
                   startcancount=120+startday;
              if (startmonth==6)
                   startcancount=151+startday;
              if (startmonth==7)
                   startcancount=181+startday;
              if (startmonth==8)
                   startcancount=212+startday;
              if (startmonth==9)
                   startcancount=243+startday;
              if (startmonth==10)
                   startcancount=274+startday;
              if (startmonth==11)
                   startcancount=304+startday;
              if (startmonth==12)
                   startcancount=335+startday;
                   //if statements that account for mid-year ending dates
              if (canmonth==1)
                   startcancount=startcancount+canday;
              if (canmonth==2)
                   startcancount=startcancount+31+canday;
              if (canmonth==3)
                   startcancount=startcancount+59+canday;
              if (canmonth==4)
                   startcancount=startcancount+90+canday;
              if (canmonth==5)
                   startcancount=startcancount+120+canday;
              if (canmonth==6)
                   startcancount=startcancount+151+canday;
              if (canmonth==7)
                   startcancount=startcancount+181+canday;
              if (canmonth==8)
                   startcancount=startcancount+212+canday;
              if (canmonth==9)
                   startcancount=startcancount+243+canday;
              if (canmonth==10)
                   startcancount=startcancount+274+canday;
              if (canmonth==11)
                   startcancount=startcancount+304+canday;
              if (canmonth==12)
                   startcancount=startcancount+335+canday;
                   //if statements that account for mid-year starting dates
              if (startmonth==1)
                   startendcount=0+startday;
              if (startmonth==2)
                   startendcount=31+startday;
              if (startmonth==3)
                   startendcount=59+startday;
              if (startmonth==4)
                   startendcount=90+startday;
              if (startmonth==5)
                   startendcount=120+startday;
              if (startmonth==6)
                   startendcount=151+startday;
              if (startmonth==7)
                   startendcount=181+startday;
              if (startmonth==8)
                   startendcount=212+startday;
              if (startmonth==9)
                   startendcount=243+startday;
              if (startmonth==10)
                   startendcount=274+startday;
              if (startmonth==11)
                   startendcount=304+startday;
              if (startmonth==12)
                   startendcount=335+startday;
              //if statements that account for mid-year ending dates
              if (endmonth==1)
                   startendcount=startendcount+endday;
              if (endmonth==2)
                   startendcount=startendcount+31+endday;
              if (endmonth==3)
                   startendcount=startendcount+59+endday;
              if (endmonth==4)
                   startendcount=startendcount+90+endday;
              if (endmonth==5)
                   startendcount=startendcount+120+endday;
              if (endmonth==6)
                   startendcount=startendcount+151+endday;
              if (endmonth==7)
                   startendcount=startendcount+181+endday;
              if (endmonth==8)
                   startendcount=startendcount+212+endday;
              if (endmonth==9)
                   startendcount=startendcount+243+endday;
              if (endmonth==10)
                   startendcount=startendcount+274+endday;
              if (endmonth==11)
                   startendcount=startendcount+304+endday;
              if (endmonth==12)
                   startendcount=startendcount+335+endday;
              //for loop that counts the days between the beginning and end of the policy
              for (int startcount = startyear; startcount < canyear; startcount++){
                   startcancount = startcancount + 365;
                   if (((startcount%4==0) & (startcount%100!=0)) | ((startcount%400==1) & (startcount%100==0))){
                        startcancount = startcancount + 1;
              for (int startcount = startyear; startcount < endyear; startcount++){
                   startendcount = startendcount + 365;
                   if (((startcount%4==0) & (startcount%100!=0)) | ((startcount%400==1) & (startcount%100==0))){
                        startendcount = startendcount + 1;
              //[Start String Month] Assigns the number for starting month entered to its corresponding month (starting date)
              if (startmonth == 1)
                   ssmonth = "January";
              if (startmonth == 2)
                   ssmonth = "February";
              if (startmonth == 3)
                   ssmonth = "March";
              if (startmonth == 4)
                   ssmonth = "April";
              if (startmonth == 5)
                   ssmonth = "May";
              if (startmonth == 6)
                   ssmonth = "June";
              if (startmonth == 7)
                   ssmonth = "July";
              if (startmonth == 8)
                   ssmonth = "August";
              if (startmonth == 9)
                   ssmonth = "September";
              if (startmonth == 10)
                   ssmonth = "October";
              if (startmonth == 11)
                   ssmonth = "November";
              if (startmonth == 12)
                   ssmonth = "December";
              //[cancellation string month]Assigns the number for ending month entered to its corresponding
              //month (cancellation effective date)
              if (canmonth == 1)
                   csmonth = "January";
              if (canmonth == 2)
                   csmonth = "February";
              if (canmonth == 3)
                   csmonth = "March";
              if (canmonth == 4)
                   csmonth = "April";
              if (canmonth == 5)
                   csmonth = "May";
              if (canmonth == 6)
                   csmonth = "June";
              if (canmonth == 7)
                   csmonth = "July";
              if (canmonth == 8)
                   csmonth = "August";
              if (canmonth == 9)
                   csmonth = "September";
              if (canmonth == 10)
                   csmonth = "October";
              if (canmonth == 11)
                   csmonth = "November";
              if (canmonth == 12)
                   csmonth = "December";
    //Assigns the number for ending month entered to its corresponding month (ending date)
              if (endmonth == 1)
                   esmonth = "January";
              if (endmonth == 2)
                   esmonth = "February";
              if (endmonth == 3)
                   esmonth = "March";
              if (endmonth == 4)
                   esmonth = "April";
              if (endmonth == 5)
                   esmonth = "May";
              if (startmonth == 6)
                   ssmonth = "June";
              if (endmonth == 7)
                   esmonth = "July";
              if (endmonth == 8)
                   esmonth = "August";
              if (endmonth == 9)
                   esmonth = "September";
              if (endmonth == 10)
                   esmonth = "October";
              if (endmonth == 11)
                   esmonth = "November";
              if (endmonth == 12)
                   esmonth = "December";
              double refund = (startcancount/startendcount)*premium;
              //The final output consisting of the users first name, middle name, and last name.
              JOptionPane.showMessageDialog(null, "Name: " + firstname + " " + middlename + " " + lastname + "\n" +
                        "Premium: $" + premium + "\n" + "Date: " + ssmonth + " " + startday + ", " + startyear + "\n" +
                        "End Date: " + esmonth + " " + endday + ", " + endyear + "\n" + "Effective Date: " + csmonth +
                        " " + canday + ", " + canyear + "\n" + "Refund: " + refund);
    }

    DeLorean wrote:
    If I want the program to repeat itself (except for entering the names), how would I do it using a for loop? Could someone edit my code to show me?Why don't you try it yourself?
    If you have tried, but failed to get it working, then you can post back here. Be sure that when asking a question here, the chances in getting helpful answers increase dramatically when you:
    - show what you have already tried;
    - post code using code tags;
    - use a meaningful title for your question;
    - DONT try to hurry those who are able to help you with words like "fast", "asap", "urgent", etc.

  • Need Quick help PLEASE

    I just got my nano today, and im a total nood at ipods, so im just wondering how to get the slbum art, because it seems to look real cool. Ive tried getting the manuals and what not, but they wont load on my PC! Any kind of help will be great!! PLEASE HELP ! ! !

    You select the file(s) for a specific album, then choose File > Get Info, then click on the "Artwork" tab. You have two options, paste it in from the clipboard or click "Add" to select a JPEG/etc file to use.
    iTunes doesn't automatically add it. You'll have to find an image from the web, like from Amazon. There might be software for the PC which will find it. The Mac does.

  • Need urgent help! How to check if the generated number is a whole number

    Hi,
    I have a simple issue but I need some assistance. I am
    calculating a number and the result number sometimes a whole number
    but in some cases decimals are present. Decimals do not need change
    but whole numbers need to change. So for example if the end result
    is "6" I need it to show it as "6.0" in a field beacuse that is the
    way the calculator should display it according to request.
    How can I check that the result number is a whole number and
    then add ".0" to it?
    I just included a simple script below.
    if (outputnumber == ?) {
    resultNum = Number(String(outputnumber+".0"));
    } else {
    resultNum = outputnumber;
    Thanks,
    Attila

    Hi reinhat,
    That means that "outputnumber" wasn't something that can be
    converted to
    a number. When you trace this value, what do you see?
    Regards,
    Patrick Bay
    BAY NEW MEDIA
    "reinhat" <[email protected]> wrote in
    message
    news:fndgeh$484$[email protected]..
    > The above mentioned example returns "NaN".
    > How can it return numeric value?

  • Help C# Hi, i have studying for 3 weeks and i need some help. How can i sort case 2 and display that with dinamic array?

      //Meny
                Console.WriteLine("\n HÄNGA GUBBE\n");
                Console.WriteLine(" 1) Lägg till ord");
                Console.WriteLine(" 2) Lista alla ord");
                Console.WriteLine(" 3) Spela");
                Console.WriteLine(" 4) Avsluta");
                int valet;
                Console.Write("\n\tVälj 1-4:  ");
                valet = int.Parse(Console.ReadLine());
                switch (valet)
                    case 1:
                        Console.WriteLine("\n lägg ett till ord! ");
                        break;
                    case 2:
                        Console.WriteLine("\n Lista med alla ord :\n");
          char[] array = { 'lev', 'skratta', 'gledje', 'gråt', 'njut'};  
                Array.Sort<char>(array);
                foreach (var c in array)
                    Console.WriteLine(c);
                Console.WriteLine("\n");
                        //List<string> list = new List<string>();
                        //Random r = new Random();
                        break;
                    case 3:
                        string guesses, bokstäver;
                        Console.Write("\n Hur många fel får man ha? ");
                        guesses = (Console.ReadLine());
                        Console.WriteLine(" Utmärkt, då spelar vi!\n");
                        Console.WriteLine(" Felgisningar :" + "0/" + guesses);
                        Console.Write(" Gissade bokstavär: \n" );
                        bokstäver = (Console.ReadLine());
                        Console.WriteLine("Aktuel ord");
                        Console.WriteLine("Gissa bokstav : "+bokstäver+" \n");
                        break;
                    case 4:
                        Console.WriteLine("\n  HEJ DÅ! \n");
                        Console.Beep();
                        break;
                    //avbryter while loopen, avslutar spelet

    You can do it like this;
    var text = Console.ReadLine();
    if(array.Contains(text)) // if exists do what ever you want
    Please mark it correct if you find the answer helpful and please start  a new thread if you have another question. Thanks.

  • HT1199 I need your help, PLEASE. How can to fix "NO MOUNTABLE FILE SYSTEM" error of my back up hard drive on Mountain Lion OS?

    I need your help, PLEASE. How can to fix "NO MOUNTABLE FILE SYSTEM" error of my back up hard drive on Mountain Lion OS?

    Did you format the drive for Mac use before you tried to use it as a backup drive?
    Are you using Time Machine on the drive? You can't view the contents of its backup database and the only way to access the info is directly from the Time Machine app.

  • Please help me. I just cleaned the disk and, when I clicked to install new OS X mavericks a screen with apple id popped up and said that I need to put apple id that purchased the OS X.

    Please help me. I just cleaned the disk and, when I clicked to install new OS X mavericks a screen with apple id popped up and said that I need to put apple id that purchased the OS X.

    How did youobtain OS X?

  • HT1937 my apple iphone 3g.unlock iphone,i need you help me how to back normal ios

    my apple iphone 3g.unlock iphone,i need you help me how to back normal ios...pls answer me urgent.thank you

    Sorry, but your post is unclear. I don't know what you mean by "back to normal iOS". Do you mean that you jailbroke your iPhone? If that's what you mean and you now wish to remove the jailbreak, you can try putting the iPhone into DFU mode and see if that will let you restore and remove the jailbreak:
    http://osxdaily.com/2010/06/24/iphone-dfu-mode-explained-and-how-to-enter-dfu-mo de-on-your-iphone/
    Some jailbreaks cannot be removed and in some cases will permanently disable your iPhone. If that happens to you, then you will have to buy a new iPhone; Apple will provide no support, warranty or out-of-warranty, for a jailbroken iPhone. You're on your own from here. We can provide no further help with a jailbroken iPhone in these forums.
    If that's not what you mean, please post back and clarify. You may wish to try posting in your native language so that your question is more clear.
    Regards.

  • HT4623 I. Tried many time to install my apple to update software but can't fix I need your help please and Thanks.

    How i fix and software update i was tried but cant i need your help please and thanks.

    "but cant"
    That doesnt tell us anything useful. You need to post EXACTLY what you did and EXACTLY what happened, including any error messages.

  • Remote App on iPad connects but drops after about  20 mins. Need to turn  off wait about 1 minute then turn on wifi on iMac before it can reconnect. Need some help please.

    Remote App on iPad connects but drops after about  20 mins. Need to turn  off wait about 1 minute, then turn on wifi on iMac before it can reconnect. Need some help please.
    Already gone through troubleshooting guide a zillion times. Thanks.

    This worked for me... A little time consuming but once you get rolling it goes GREAT... Thanks....
    I got my artwork and saved it to my Desktop
    Opened up Microsoft Paint and clicked on "File" and "Open" and found it to get it on the screen to resize it
    Clicked "resize" and a box for changing it opened up
    Checked the box "Pixels" and "Unchecked maintain aspect ratio"
    Set Horizontal for 640 and Vertical for 480
    Clicked on "OK" and went back to "File" and did a "Save As" and chose JPEG Picture
    It came up "File Already Existed" and clicked "OK" (really did not care about the original artwork I found because wrong size)
    Went to iTunes and on the movie right clicked on "Get Info", clicked on "Details", then "Artwork"
    Go to the little box on the top left that shows your old artwork and click on it to get the little blue border to appear around it and hit "Delete" to make it gone
    Click on "Add Artwork" and find it where you put the one from above on your Desktop and hit "Open" and OK and your new artwork is now there and all good.
    Sounds like a lot of steps to follow but after around 5 or so you will fly through it. This worked perfect on my iPhone 6 Plus and I have artwork on my Home Videos now.

  • Hi, my iphone its in recovery mode and when i restore my iphone 5s loading show the blue screen and show note on itunes (unknown error 14) please i need your help please . thanks

    Hi, my iphone its in recovery mode and when i restore my iphone 5s loading show the blue screen and show note on itunes (unknown error 14) please i need your help please . thanks

    In the article Resolve iOS update and restore errors this is what it says about error 14:
    Check your USB connections
    Related errors: 13, 14, 1600, 1601, 1602, 1603, 1604, 1611, 1643-1650, 2000, 2001, 2002, 2005, 2006, 2009, 4005, 4013, 4014, or “invalid response."
    If the USB connection between your device and computer is interrupted, you may be unable to update or restore.
    To narrow down the issue, you can also change up your hardware:
    Use the USB cable that came with your device, or a different Apple USB cable.
    Plug your cable into a different USB port directly on your computer. Don't plug it into your keyboard.
    Try a different computer.
    If necessary, resolve any further issues with the USB connection, then with your security software.
    If you're still seeing the error message, check for hardware issues by following the next section.

  • Hi! I got movies on my external hard drive that are AVI kind and won't play on my macbook pro? need some help please!!

    Hi! I got Movies on my external hard drive that are AVI kind and won't play on my macbook pro? When I start playing the movie a message pops up and says "a required codec is not available". I tried flip4mac, xvid, divx already and still not playing my video. need some help please!! thanks.

    Although vlc mentioned above is a much more powerful and better player you could try installing Perian if you insist on using the quicktime player.  It may supply the codec it needs.
    Not sure why you wouldn't be able to play straight avi files though in quicktime.

  • HI, I need your help. How can I delete all data, when I do not have the special security code, which I didn´t remember ? I also think, that I never create this code before. But I cannot put my settings back.

    HI, I need your help. How can I delete all data, when I do not have the special security code, which I didn´t remember ? I also think, that I never create this code before. But I cannot put my settings back.

    You must remember the code, if you can't then take the phone and proof of purchase to an Apple Store.

Maybe you are looking for

  • How to capture System Error in XI?

    Hello All, 1. Can any one tell me , How to capture the system error , Adapter Error and send the alert to make sure the guarenteed delivery from Source to Target via XI ? 2.I have done the configuration for to capture the mapping error in transaction

  • How could it be possible to completely restrict other users to view any sites through firefox browser with the help of password ?

    I want complete control of firefox browser for my computer. For example: There is a similar feature in Internet Explorer which is called 'Content Adviser'. To restrict others for viewing sites through Internet Explorer here is what has to be done: 1.

  • How to include manual config to TR?

    Hi Experts, I have a question about transportation. I assigned a new partner type to a partner function, when I tried to save it,  the system did not ask me to provide a TR number, instead the message popped up u2018Please process table entry transfe

  • Createing Hierarchy Node Variables in BI-7 Query Designer

    Hi Gurus, When I try to create a hierarchy variable in BI-7 Query Designer, Iam getting the following error; has anyone ecountered this problem... Pl let me know. Terminate: System error in program SAPLRRI2 and form FAC_VARIABLES-03- (see long text)

  • Re:Short cut Homepage Icons

    On the night of 1/11, I shut down my computer and went to bed, everything was fine. Got up this morning 1/12 and turned on the computer before I left house. When Verizons home page loaded all the icons appeared only they are all 4 or 5 times the size