problem with loopback test base with NOR-6008

I recently started to use DAQmx in c# .NET 4.0 with NOR-6008 USB DAQ. I tried a loopback test by connecting output to an analog input analog and tried readign the signal from the output to the entrance but did not send the signal (or maybe a problem with the code). The analog input readign reads a random value rather than the value entered by the user for the output. I connected ao0 and ai3 on data acquisition. Here's the code.

private void button1_Click (object sender, EventArgs e)

{

Task analogOutTask = newTask();

AOChannel myAOChannel = analogOutTask.AOChannels.CreateVoltageChannel ("Dev1/ao0", "myAOChannel", 0, 5, AOVoltageUnits.Volts);

AnalogSingleChannelWriter writer = newAnalogSingleChannelWriter (analogOutTask.Stream);

Double analogDataOut;

analogDataOut = Convert.ToDouble (AnalogOut.Text);

writer. WriteSingleSample (analogDataOut, true);

}

Private Sub button2_Click (ByVal sender As Object, EventArgs e)

{

Task analogInTask = newTask();

AIChannel myAIChannel = analogInTask.AIChannels.CreateVoltageChannel ("Dev1/ai3", "myAIChannel", AITerminalConfiguration.Differential, 0, 5, AIVoltageUnits.Volts);

AnalogSingleChannelReader reader = newAnalogSingleChannelReader (analogInTask.Stream);

Double analogDataIn is reader. ReadSingleSample();

AnalogIn.Text = analogDataIn.ToString ();

}

Hello

I built an application using your code (with task.verify) and it works beautifully.

Have you tried different channels of inputs/outputs?

Curt

Tags: NI Software

Similar Questions

  • Problem with NOR-DAQmx Base on Scientific Linux 3.4

    Hello everyone.

    I'm trying to install the driver OR-DAQmx Base 3.4 on Scientific Linux 6.0, but I got these errors:

    On this text said that Scientific Linux 5.4 and 5.5 is supported.

    Can anyone help me or 6.0 is not supported?

    Hello decadence,

    Thank you for posting.  Your post, it seems that the problem occurred while trying to install NI VISA 5.0.  Unfortunately, the only versions of Linux that are officially supported by our pilots and implemented to date are those listed in the Readme of each product.  In the Readme for NEITHER VISA 5.0, Scientific Linux versions 5.x are supported, but Scientific Linux 6.0 is not in this list, nor in the Readme for DAQmx Base 3.4.  I hope this helps.

    Kind regards

    Joe S.

  • Clock and hw external trigger with USB-6210 on Linux with NOR-DAQmx Base?

    I have two devices USB-6210 I need to synchronize so that they both collect data exactly at the same time. I was told by support OR I can send the clock off Dev1/PFI4 and have the two USB-6210 s read the clock in through their own PFI0. I also want to trigger data collected for each device by sending a trigger off Dev1/PFI6 and have two devices to receive the signal on PFI2.

    All my attempts to try this are filled with error messages and my research online seem to say that's not possible with USB devices on NOR-DAQmx Base 3.4.0f2 on Linux.

    I "ve tried using example AI programs and those who do not seem to work either for external clocks. Here is the code I tried:

    #include "NIDAQmxBase.h"#include 
    
    #define DAQmxErrChk(functionCall) { if( DAQmxFailed(error=(functionCall)) ) { goto Error; } }
    
    int main(void){    // Task parameters    int32       error = 0;    TaskHandle  taskHandle = 0;    char        errBuff[2048]={'\0'};    int32       i;
    
        // Channel parameters    char        chan[] = "Dev1/ai0";    float64     min = -10.0;    float64     max = 10.0;
    
        // Timing parameters    char        clockSource[] = "/Dev1/PFI7";    uInt64      samplesPerChan = 1000;    float64     sampleRate = 10000.0;
    
        // Data read parameters    #define     bufferSize (uInt32)1000    float64     data[bufferSize];    int32       pointsToRead = bufferSize;    int32       pointsRead;    float64     timeout = 10.0;
    
    printf("Calling CreateTask...\n");    DAQmxErrChk (DAQmxBaseCreateTask("",&taskHandle));printf("Calling CreateAIVoltageChan...\n");    DAQmxErrChk (DAQmxBaseCreateAIVoltageChan(taskHandle,chan,"",DAQmx_Val_Cfg_Default,min,max,DAQmx_Val_Volts,NULL));printf("Calling CfgSampleClkTiming...\n");    DAQmxErrChk (DAQmxBaseCfgSampClkTiming(taskHandle,clockSource,sampleRate,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,samplesPerChan));printf("Calling StartTask...\n");    DAQmxErrChk (DAQmxBaseStartTask(taskHandle));printf("Calling ReadAnalogF64\n");    DAQmxErrChk (DAQmxBaseReadAnalogF64(taskHandle,pointsToRead,timeout,DAQmx_Val_GroupByChannel,data,bufferSize,&pointsRead,NULL));
    
        printf ("Acquired %d samples\n", pointsRead);
    
        // Just print out the first 10 points    for (i = 0; i < 10; ++i)        printf ("data[%d] = %f\n", i, data[i]);
    
    Error:    if( DAQmxFailed(error) )        DAQmxBaseGetExtendedErrorInfo(errBuff,2048);    if(taskHandle != 0) {        DAQmxBaseStopTask (taskHandle);        DAQmxBaseClearTask (taskHandle);    }    if( DAQmxFailed(error) )       printf ("DAQmxBase Error %d: %s\n", error, errBuff);    return 0;}
    

    When I run the resulting program, I see this:

    $. / acquireNScans-ExtClk
    The CreateTask call...
    Call for CreateAIVoltageChan...
    Call for CfgSampleClkTiming...
    Error-89136 DAQmxBase: route specified cannot be satisfied, because the hardware does not support it.

    For example, a clock and a trigger can be imported via one of the PFI lines by using a USB-6210 on Linux with NOR-DAQmx Base? A clock and a trigger exportable via one of the PFI lines?

    If so, does anyone have the code example illustrating how to do this, or can you at least tell me the names of the lines ("PFI0/Dev1" or other) so I can try again?

    Clues or suggestions would be helpful.

    Thank you

    -Tom

    The clockSource in the example specifies an output rather than an input channel channel. Change source "/ Dev1 / PFI0" solved the problem.

    Please close this post.

  • Need of XLSX files tested to see if there is a problem with the content library

    Hello

    I have a file which causes an error when you use the library of Stellent. The file is a file XLSX and when we open and then save the file again, then does not cause the error. This leads me to believe that the file has been successfully created or something wrong with the library. More than likely it is the file. Is there any tool that I can use to test the file that will tell me what exactly is the problem? The file is automatically generated by a survey company. And so if we can show a problem with the file itself, then they will have to solve the problem in their autogenerator.

    Thank you
    Larry

    Published by: 1000345 on April 16, 2013 06:44

    Published by: 1000345 on April 16, 2013 06:45

    Published by: 1000345 on April 16, 2013 07:00

    Published by: 1000345 on April 16, 2013 07:00

    Which, in my view, that we use it for is to get out of text or metadata files to create an index on the data.

    Yes, it's also OutsideIn. I believe you can use the SDK to export research.

    If I were you, I'd do some testing base of the new version and it doesn't help, create a service request in Metalink so that management can take a peek inside.

  • problem with the base system device

    Hello! I have HP pavilion dv7-2250em, and I have a problem with the base system device. What should I do?

    Hello

    Maybe that's a problem with the card reader driver.  Try to download and install the driver from the link below.

    FTP://ftp.HP.com/pub/SoftPaq/sp45001-45500/sp45046.exe

    Once the installation is complete, restart the laptop.

    Kind regards

    DP - K

  • Minor problem with the New Installation of Windows 7 on my Inspiron E1705/9400 - two entries for "Base system device" under "Other devices" with yellow exclamation point

    Hello

    First of all, let me tell you about my system.   It is of a laptop Inspiron E1705/9400 with the Core 2 Duo T7400 processor clocked at 2.16 GHZ.   It has 2 GB of RAM and a hard drive on the Hitachi Travelstar nine 500 GB (7200 RPM).   It also has the GeForce Go 7900 GS video card.    Previously, it had Windows XP Professional (32 bit) and worked well.   But, I have three computers in my home and Home Office and would they work better together on my wired home network, so I'm upgrading all three to Windows 7.   My two desktops (a Dimension XPS 420 and the other Dimension XPS 430) seem like they will be no problem to upgrade to Windows 7.   But, this laptop was not on the list of Dell Windows 7 compatibility.   However, the Windows 7 Upgrade Advisor that I have downloaded and run seemed to say that it was OK to do a clean install of Windows 7 32-bit and he had only a few minor issues, where it says search the drivers updated from the manufacturer.   Initially, the laptop came with a 100 GB hard drive.   For my use, which becomes very small, so I decided to get the exact same 7200 RPM drive 500 GB size.   This will allow me to do a clean install of the 32 bit Windows 7 OS on the new hard drive and not have to wipe the old disk to do so.   I can just keep the old HD and paste it back whenever I need to get something out of it.

    So, here's my minor problem.   After the transfer of some elements off the coast of the old hard drive, I installed the new 500 GB drive and installed a cleaning of the 32-bit version of Windows 7.    I'm happy to announce that I have not had virtually no problems with installation and everything seems to work fine.   He seems a little more zippy than before and I have not met so far that doesn't seem to work.   I went through most of features and almost everything is superb.   But there is a minor problem, showing in Device Manager.   At least, I think it's a minor problem, but maybe someone can give me feedback to know if she is or not.

    In the Device Manager list, there is a category called "other devices" now and the icon shows a little white circle with an exclamation mark.    When you expand this category, you see two identical entries that say "Base system device" and the icon has a yellow circle with an exclamation mark inside.     I know from experience that it is not a good thing to see items in the device manager that have a yellow circle with an exclamation point.   I clicked on both of them and neither one really tells you what the device is, or who did what is site you would go to a driver.    On the general tab, it has the following information:

    -Device type Other devices

    Reference of the manufacturer- Unknown

                         Location     -         Bus PCI 3, device 1, function 3


    Under device status, it says the following:

                           The drivers for this device are not installed. (Code 28)

    There is no driver selected for the item or a set of device information

    To find a driver for this device, click Update driver.

    Each of the entries seem to be almost the same thing... but not exactly.   The other has the location

    list PCI Bus 3, device 1, function 2... instead of function 1.   This seems to be the only difference.

    I tried the button to update the driver, but that doesn't seem to work.   No matter if you say it looks like your

    computer or to look for a new driver from the internet, it does not find anything.     As I said at the beginning,

    the system seems to work very well... but, given that I don't know what this device is or does, I might be missing something.

    He drives me crazy just have these yellow circles with exclamation point hanging out in my device manager.

    I could really use some help here.    Any ideas or help would be greatly appreciated.

    Thank you

    Bryan Ray (Richmond, WILL)

    BTW, I just downloaded and installed the driver pack from this ftp location and it worked, even for Windows 8.1 - 64 bit.

    Thanks Steve!

    Roger

  • I have problems with my monthly payment of credit card on an individual basis, an annual plan

    I have problems with my monthly payment of credit card on an individual basis, an annual plan

    Please contact support:

    https://helpx.Adobe.com/in/contact.html?step=CCSN_membership-account-payment_account-Setti ngs_stillNeedHelp

    Concerning

    Megha Rawat

  • I bought Adobe Lightroom 5 a month ago. For no reason, the base Panel has disappeared in the development manual. is there a problem with Lightroom, I see that there are similar topics on the internet

    I buy 5 Lightroom a month ago. No apparent reason, the base in the develop module Panel disappeared. I note that there are several references to similar problems on the internet. I have a problem with Lightroom of supplements. Can someone help me solve this problem please?

    Right-click on the header of one of the other panels and check Basic menu drop-down.

  • Problem with Knowledge Base detailed RSS feed

    Hello

    I've subscribed to the Feed detailed Knowledge Base via http://feeds.feedburner.com/vmwarekbfeed.

    Because the power source has moved around Jan, 14 I get the same items over and over again, every day.

    Statistics of Google Reader for the last 30 days, there are 309 new article / per week which is a lot more than before.

    Is it a problem with the power supply itself or with the tag "updated date" items change all the time?

    Any help is appreciated!

    See you soon,.

    Vincent.

    Sorry for all the problems with the RSS feed. We look for ways to solve this problem, as the diff鲥ntes involved pieces do not play well together.

    Here are some alternatives for you that you may want to consider:

    1. KB Digest is published every Monday with a list of all the new articles from the previous week.  The correct URL for RSS feed of this blog is here. The RSS feed of this blog works, we are committed
    2. If you're on Twitter, follow @VMwareCares. This account tweets per day for each new KB article.
  • Problem with the license to test on both machines...

    I'm a developer looking.to.try.anew.development.IDE. I have two Win 7 Machines. On machine 1 install the trial went on a fine and DW, PS and I have been installed. This machine brings 30 days left in the trial when apps to start. He pointed out on machine 2, after installed, adobe application manager apps (I just installed on computer 1) ' day' (cannot be installed yet). FYI - Yes the logins and passwords to connect to adobe are the same for both machines. After researching the topic, I have cleaned with AdobeCreativeSuiteCleanerTool of the Adobe Site and reinstalled manager adobe application. Then the adobe application manager has indicated that all programs were available to 'try' but when I installed PS and started it - he said that "the trial is over - you can open just one more time" and now nothing opens. Therefore, machine 1 says 30 days trial and machine 2 it is expired? What I'm missing here? Your servers don't know my login ID (even) what's happening? It seems that track licenses Adobe has problems, and I fear that I will have problems with 2 machines after I commit to a year of monthly payments... Please don't even think to ask me to reinstall my system, or spend hours to install/uninstall registry tweaking, or trying this or that (in all fairness-ok software is complex I just haven't the time to spend hours to hunt the bugs with your software (I have enough debug with MY OWN CODE...)). I need a solution that I know I can count on the support of Adobe. Adobe's somone please answer this problem and help me to solve it as soon as POSSIBLE?

    Nothing you can do:

    Adobe trial software has expired at the beginning

    There is no support for tests in other...

    Mylenium

  • database stress test - datagenerator problem with import data from oracle

    Hi all

    Today, I'm doing a stress test on my new server. Someone from this forum told me that there is a nice software for it:

    http://www.dominicgiles.com

    I have a problem with Datagenerator. I can't fill my user directly in the database. DataGenerator always has an exception. What ever...

    I tried to generate data on hard drive. It seems to go well. In the file data, I found a large number of files:

    *.dat
    *. CTL
    *. SQL

    N, anyone know how I can import only the files of user oracle?


    see you soon

    Dlugasx

    I do the table drop in the first place, I think it's to be sure, there are no objects before loading.

    Nicolas.

  • Problems with WebCam? YouCam allows to test your WebCam

    Software using YouCam to solve your Notesbook WebCam problems

    Problems with your computers webcam portable? You can use the YouCam software to solve problems with your webcam. It was really only a few questions, which can cause problems with webcam. Driver problems, bad video configuration and software issues. YouCam will be able to identify these two problems for you.

    Troubleshooting with YouCam


    First you want to make sure that all other applications are closed. Other applications can steal the priority of the YouCam software that could interrupt the troubleshooting. Then open the YouCam software. If there are problems with the WebCam, you will be alerted with an error message here.

     

    "Unable to connect to the video device" error:

    Hope this helps to solve many problems of webcam. Again, this is an informational message that should serve as a reference. If you have gone over these steps and are still problems please create a new thread and include your computer model, operating system, and any other information that would be helpful in resolving the issue.

    Thank you!
    Sean S

  • C in XCODE build problems with VISAS / NOR

    Hello

    I'm developing a C program to connect with my oscilloscope Tektronix. I inherited this project from a friend (who is currently in the secret), so I can't talk to him on this subject.

    On my system: I'm running OS X 10.8.4, development in XCODE 4.6.3. Initially, I had problems with NI-VISA 5.3, and they are repeated when I upgraded to 5.4 (I thought the upgrade would solve the problem).

    It's also a position of the cross. I posted on the forum of developers to Apple without success (https://discussions.apple.com/message/22681139#22681139). If my problem is solved it there first, I'll post the solution here as well. I don't take sides.

    In fact, my problem is that my program will not be built because of a linker issue. I use the functions of the NI-VISA 5.4 for OS package X 10.8. However, the linker can't find the correct functions for my system:

    Undefined symbols for x86_64 architecture:

    "_viClose", referenced from:

    _setupVI in oscilloscope.o

    _getData in oscilloscope.o

    _closeInstr in oscilloscope.o

    "_viOpen", referenced from:

    _setupVI in oscilloscope.o

    "_viOpenDefaultRM", referenced from:

    _setupVI in oscilloscope.o

    "_viRead", referenced from:

    _setupVI in oscilloscope.o

    _getData in oscilloscope.o

    "_viStatusDesc", referenced from:

    _setupVI in oscilloscope.o

    _getData in oscilloscope.o

    "_viWrite", referenced from:

    _setupVI in oscilloscope.o

    _getData in oscilloscope.o

    LD: symbol not found for architecture x86_64

    Clang: error: the linker command failed with exit code 1 (use - v see invocation)

    This is all pretty basic VISA functions. I struggled in just, including the appropriate header file

    #include

    did not work. When I went to the detailed shape, it worked:

    #include "/ Library/Frameworks/VISA.framework/Versions/A/Headers/visa.h".

    However, then the problem began to occur that I have now - links in the object editor cannot find the code for the functions of the VISA. I tried to change build architctures x86_64 for only x 86, without success. I am currently building in i386 x 86. I also tried (to the title of the Phases of construction-> link binary with libraries) to link the VISA.framework to the project, but this simply gives the error of the linker 'not found VISA framework '. I also tried option-clean.

    I feel I am missing something very obvious. I'm still operating under the notion that either NI-VISA has not been installed in the correct location, or that my configuration settings are incorrect.

    Does anyone have any idea to lend? I searched through various forums for help for almost 2 days now, with nothing doesn't.

    resolved cross wire https://discussions.apple.com/message/22682742#22682742

    copied settings from: Instruments/NI-VISA/Examples/C/ExamplesProject.pbproj National

    done with:

    I ended up using the final settings:

    Architectures

    Architecture: $NATIVE_ARCH_ACTUAL

    Build the Active Architecture only: No.

    Valid architectures: i386, x86_64

    Search paths

    Unframed search paths

    No library search path

    Build Phases

    Link binary with libraries: VISA.framework

    I think it's now/Library/Frameworks in the search paths, what was causing my problems when you try to link binary.

    Thanks to xnav and Frank (had the idea of original law, which I tried but just the wrong way).

  • Problems with Vista for the bases of x 64 systems (KB2753842) updated

    After the Vista (KB2753842) to update my sidebar and the task bar bottom turned white.  They were clearly before the update.
    I rolled back the update and the return to a light background.
    The next time I turned on the computer, auto update installed (KB2753842) and the white background returned.
    Then I disabled the update of the automatic system and uninstalled the update (KB2753842).
    The taskbar and sidebar are back to normal. (clear)
    Is there another way to solve this problem?

    PA bear,

    I have successfully completed the list, except article 11 c. For good measure, clear your Java cache by http://www.java.com/en/download/help/plugin_cache.xml I was unable to search and find the Java Control Panel by the link above.

    The KB2753842 is listed in the list of installed updates and my problem with the white background in the sidebar bar and the stain was gone!

    Of Kudo and thanks a lot for your advice and help.

    I now intend to start the automatic update of the window.

  • GPIB-ENET/100 problem with NEITHER 488.2 v2.5 under Suse 10

    Hello

    I installed "NOR-488. ' 2 (Linux) Version 2.5 for Linux - 32-bit ' under Suse 10. Now, I try to add the GPIB-ENET/100 with gpibexplorer but failed:

    1. I have connected the GPIB_ENET/100 directly to the computer (eth1) with a crossover cable.

    2. as a result of gpibexplorer guests, I observed the PWR/RDY LED is orange flick so configured IP address/hostname as 192.168.1.2.

    3. then I clicked on the button 'search for GPIB-ENET/100', I had 'no device to display.

    4. I configured the IP address/host name as 'NIENET', which is the default hostname printed on the rear side of the unit and got the same result at step 3.

    5. one thing I need to mention is that I installed nienet-linux - 1.2 before and the ENET box didn't work with it either. I put

    192.168.1.2 NIENET gpib0
    

    in the file/etc/hosts and I have deleted all the files of this facility.

    The State of the network types arenetstat - rn)

    Kernel IP routing table
    Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
    192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
    134.105.192.0   0.0.0.0         255.255.248.0   U         0 0          0 eth0
    169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
    127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
    0.0.0.0         134.105.192.1   0.0.0.0         UG        0 0          0 eth0
    

    and the Ethernet card type isifconfig)

    eth0      Link encap:Ethernet  HWaddr 00:0A:5E:52:48:51
              inet addr:134.105.193.25  Bcast:134.105.199.255  Mask:255.255.248.0
              inet6 addr: fe80::20a:5eff:fe52:4851/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:54226 errors:0 dropped:0 overruns:1 frame:0
              TX packets:15248 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:17829035 (17.0 Mb)  TX bytes:3468412 (3.3 Mb)
              Interrupt:177 Base address:0x6000
    
    eth1      Link encap:Ethernet  HWaddr 00:11:2F:AE:5D:55
              inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::211:2fff:feae:5d55/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:5 errors:0 dropped:0 overruns:0 frame:0
              TX packets:285 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:2950 (2.8 Kb)  TX bytes:12186 (11.9 Kb)
              Interrupt:185 Base address:0xb000
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:489 errors:0 dropped:0 overruns:0 frame:0
              TX packets:489 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:44592 (43.5 Kb)  TX bytes:44592 (43.5 Kb)
    

    My questions are:

    1. in GPIB, will I set of Configuration IP address AND host name or IP OR hostname? If it is "OR", they must be linked in what file?

    2. "NIENET" is the default host name. How to change?

    3. What is the problem with my setup?

    Thanks in advance and best regards,

    Weining

    Hi Weining,

    to be able to set up a NEW ethernet device, it must be connected to eth0 - otherwise the GPIB Explorer won't be able to find it. Which is clearly described in the referenced article, and there is no work around for this need.

    You can only configure devices on eth1 if they already have an assigned static IP address.

    Then please follow the steps below (summary of the article that you and I already linked):

    (1) connect the new ENET/100 to eth0

    (2) open the GPIB Explorer, select "New Devce" and click on the "Search" button to find the box.

    (3) select the found device and change its IP settings to keep the network connection on eth1 and leave the Explorer GPIB

    (4) now unplug the eth0 device and connect it to eth1

    (5) restart the GPIB Explorer, choose 'New' and enter the static IP address you gave the ENET box.

    Best regards

    Sebastian

Maybe you are looking for

  • Unable to install KB936330. Any ideas?

    Have tried several ideas in microsoft solutions, but couldn't find one that treats the error code 80070057 both not to install the update for windows KB936330. Have you tried windows update, tried stand-alone installations.  I'm almost out of my mind

  • HOla buenas

    Tengo el problema what I the Máquina traba sell me an error cuatrio

  • Power button blinks orange Dimension 5000

    I was using my Dimension 5000 when it stopped unexpectedly. The power button is now flashing orange unless I have press and hold when it does not. By pressing once again does not produce light flashes. I have an important work on what I need to trans

  • HP LaserJet Pro 200 color MFP M276nw - duplex automatic

    I want to print on both sides of the page, but printer gives only the opportunity to do it manually. Is it possible to do it automatically, because even the old HP printers are supported it? Thank you in advance.

  • Send a mail with photos multiple SO5.0

    So far, I see an email with an attachment but not with images and I couldn't find useful for this information. public void sendMailFolder() { try { // create a multipart StringBuffer sbFileBody = new StringBuffer(); Multipart mp = new Multipart(); Te