Turn it on and an Opto SWITCH with USB-6525

The attached photo, a composition of a circuit consists of: Mitsubishi PLC FX series, USB-6525 and OPTO Switch (PNP OTBVP6). In the code, I put under tension of the OPTO then cutting the voltage; power on/off, using the USB-6525.

My problem comes when that at some time in my code, the OPTOMETRISTS remain without electricity (immediately after programmatically, I just

They shall ensure with outputs USB-6525 high level). I already checked the code, in my opinion its seems fine. I have in mind the 6525 isn't a fast DI / DO peripheral, that's why I use delays above 200ms.

The last hope is to change the USB6525 for a brand new, it's what I'll do. But if anyone see a problem with the code or has another explanation why the OPTO not to receive or be (somehow) not powered, I'll really appreciate your help.

I also enclose the .VI

I really need help.

Thanks to all in advance.

I found what was going on. Connectios, common, everything was fine. In the code, between the States (I use a state machine structure) missed me a delay of 200ms. This because I change the outputs to reading entries, so between them missed me a delay, that's all. in any case, thanks for your help!

Tags: NI Software

Similar Questions

  • control solenoids with USB-6525

    Hi, I'm new to Labview and try to use a USB-6525 control six independent valves.  They'll be turning on and off at different frequencies to control a cell infusion system.  I drew a diagram that allows me to program schedules that the CRDD is closed and open.  The routine is inside a while loop to repeat until a given time has elapsed.  I can duplicate this six times to allow each valve must operate independently.  But I would like to trigger all tasks at the same time.  How do I synchronize loops so they all start at the same time?  Simply put all the loops inside a conditional loop, or it will run the tasks in the order?

    Thank you

    your synchronizeyour can while loops with the help of tax filers, please see the attachment.

    Barros (Certified Developer partner)

  • My Dell Vostro 1310 won't start. I turn it on and the black screen with the Dell logo appears and nothing more

    It was working fine and accidentally my phone fell on the keyboard and the computer froze. There was a part of the image of what was on the screen before that happened and blue and red lines/markings or whatever it is. I unplugged and took out the battery. When I turned on it again, the black screen with the Dell logo comes up and just stays there. What should I do?

    Hello

    If under warranty contact Dell

    http://support.Dell.com/

    or ask in the forums Support of Dell

    http://en.community.Dell.com/support-forums/default.aspx

    If it is under warranty, contact a reputable repairman, local computer

  • 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.

  • X 220 and Mini Series 3 with USB 3.0

    Hello

    I am recently received a Mini Series 3 with USB 3.0 for my laptop company ThinkPad X 220 Windows 7 64 bit.

    However, after installation of the USB 3.0 driver downloaded from the Lenovo Web site, I still do not see USB 3.0 in my Device Manager device.

    I have also some test using an USB3.0 external HDD but the USB 3.0 port seems to have exactly the same speed as all the other ports.

    How can I activate USB3.0 on this Docking Station?

    Thank you

    Jeremy

    ThinkPad X 220 with i7 (i3 and i5 has usb 2.0 ports only) has a single USB 3.0 port, but the way it is connected through the motherboard, it is unable to support port additional usb 3.0 from the dock.

  • My windows defender keeps turning itself off and also have problems with Yahoo

    Original title:

    Mr. Ron Irvine * address email is removed from the privacy *.

    My windows Defender maintains itself out of service so I continue to say that

    My windows live says I need much information from my ISP (bt) which they do not understand

    By default, I bring this matter up to quarterly because it causes pain so

    I just write down the address and continue on Yahoo

    But are not Holy smoke in great disorder?

    I wonder what answers I could get!

    Ron

    Oh sorry have a peaceful and happy Christmas

    BUT as a previouis years, Scotland has a major incident in Glasgow involving death

    (Moved from E & C)

    Hello

    If you use Norton, AVG, Avira, Microsoft Security Essentials, McAfee, etc. the default action is for Windows Defender must be disabled, that these AntiVirus programs have their own Antispyware Applications.

    There is nothing to worry.

    Using both programs at the same time can cause system conflicts, etc.

    If you are using one of the above AntiVirus programs, this Information from David O - Support Engineer shows you how to manually enable Windows Defender (disregard information from uninstalling; not possible in Vista):

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-security/how-do-i-manually-start-Windows-Defender-in-Vista/dab845b2-9ba5-47F3-9518-c4c6781e7d5b

    "Go to start, Control Panel, Administrative Tools, Services. Look for Windows Defender.

    Right click and select Properties , ensure that Startup Type is automatic.

    Once modified, click apply and OK.

    Quit and restart your computer. Check the back take the same path to confirm that Windows Defender has started"

    .

    If you want to have additional protection against malware using the version FREE of Malwarebytes AntiMalware:

    http://www.Malwarebytes.org/products/malwarebytes_free

    And for now, change startup Vista programs without using Defender, use one of these methods:

    "How to use MSCONFIG in Windows Vista"

    http://netsquirrel.com/Msconfig/msconfig_vista.html

    Or the program Autoruns for FREE:

    "V11.21 Autoruns for Windows"

    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902

    See you soon.

  • On and off a WiFi with USB adapter

    I bought a new computer. My current computer has Gigaset router for wireless connections. I am able to easily connect with my laptop. I bought a N150 Wireless USB adpater to my new computer so it can connect to the internet via my home WiFi. It connects but he kick a few seconds, then it reconnects, then starts again. It is on and off. Meanwhile, I have constantly able to connect with my other computer (plus one). Is there enough wi - fi seamless adapter?  I don't know what to do. Please notify.

    Hello

    Welcome to the Microsoft community where you can find all the answers related to windows.

    According to the description, it looks like you are facing a problem with the wireless network, he would be grateful if you can answer this question in order to help you further.

    1. have you made changes on the computer before this problem?

    2. you receive an error message or error code?

    I suggest you to see the steps in the following Microsoft article and check if it helps.

    Wireless and wired network problems: http://windows.microsoft.com/is-IS/windows/network-connection-problem-help#network-problems=windows-xp&v1h=win8tab1&v2h=win7tab1&v3h=winvistatab1&v4h=winxptab1

    How to troubleshoot wireless network connections in Windows XP Service Pack 2: http://support.microsoft.com/kb/870702

    If you have any other questions or you need Windows guru, do not hesitate to post your questions and we will be happy to help you.

  • USB printing support is a USB device that is older and may not work with USB 3.0

    Separated from this thread.

    Mahesh,

    I had a same problem, followed your recommendations and everything worked fine for a day and a half. Now I get the same error again.   Are there any additional settings or changes I do that can keep it works?

    Thank you!

    Hello

    Please contact Microsoft Community. I will surely help you this question.

    To better understand the issue, I would need more information on your side.

    1. What is the brand and model of the USB device?
    2. the problem occurs only with a specific USB device?

    3. What is the brand and model of the computer?

    This problem might have occurred because of these reasons:
    1 USB drivers are corrupt.

    2. USB port does not work.

    3. hardware issue.

    I suggest you run the hardware troubleshooter to check if it helps.

    (a) press the Windows key + C on your keyboard to display the bar of charms.

    (b) type of Troubleshooting , and then click solving problems under settings.

    (c) now, type Hardware Troubleshooter in the option Search .

    (d) click on hardware store to run the troubleshooter.

    Hope this information helps. Reply to the post with an up-to-date report of the issue so that we can help you further.

  • Need help with USB-6525 change detection


    6525 support change detection is added in DAQmx 8.9.

    You can download the latest DAQmx since http://joule.ni.com/nidu/cds/view/p/id/2034/lang/en

  • Problems when printing with USB or wireless - offline message

    Hello world

    I use a HP ENVY 4500 with a laptop Acer Aspire laptop and a desktop computer HP Pavilion 500, both with an Intel i7 and Windows 8.1. Initially, I configured the printer to work with both PCs wireless. The wireless network is provided by the modem of my provider (Telenet), so it is not very strong I increased it with Devolo powerline adapters. Print is fine, only when I want to print more pages then 3 print job is stopped in the middle of page 4. I get a message that the printer could not print the document, and the page comes out half print. I connected my printer with a USB cable and configured to work with USB, but also wireless. But that Don t always works, today, I tried to print a document from Mozilla Firefox and it would not start. The printer can be used on both sides without choosing the connection?  Also I get the message that the printer is offline and cannot print the document, even if it's actually printing.

    When I open the doctor print & scanning everything seems to be ok wth the printer, no defects are detected. Wrong me?

    Hello @DenOuwe and welcome to the Forums of HP, I hope you enjoy your experience!

    I see that you run into connectivity errors.  I would like to help.

    I would recommend using this thread on missing/partial prints & printer offline on Windows 8/8.1. by @JERENDS

    Good luck and please let me know the results of your troubleshooting operations. Thanks for posting on the HP Forums!

  • My Ipad air2 does not start.  Tried hold it together switch with on/off switch.  Apple logo appears for about 15 seconds and then turns off again.

    My Ipad air2 does not start.  Tried hold it together switch with on/off switch.  Apple logo appears for about 15 seconds and then turns off again.

    Is there another way to start the IPAD?

    Try the steps here:

    https://support.Apple.com/en-us/HT201412

  • Turn on the mtu on cisco switch and cisco user server

    Hi all

    someone got bad luck turning on the mtu on their cisco switch?  I guess I need to turn it on for all because the command is for all ports on cisco catalyst and my server switch is nearby to my user of switches and a broadband bandwidth 6 G or 6 ports, I need to turn it on for all user ports?

    Thanks for any comments, that you can add.

    I assume you mean Jumbo frame support! You shouldn't have any problems with that. Please take a look at for example http://www.cisco.com/en/US/products/hw/switches/ps700/products_configuration_example09186a008010edab.shtml for more details and the configuration of the different switches. According to the model, the parameters are for dedicated ports only or the entire switch. In the case of the switch everything you will need to reload (reboot) switch, so be careful.

    André

  • Video freezes for second: hardware acceleration turned off (ff and flash), tired uninstallling (all folders with ff and deleted adobe), still no solution.

    Video stops a second time (1 minute to 2), audio custody. Tried to uninstall ff and adobe, by disabling the registry and reinstalling: does not work. Hardware acceleration disabled on adobe et seq. same thing. However, video on chrome and explore works very well. If it will give you more information I would say it started after the upgrade of windows 8 for windows 8.1

    Hello ahoooy, with hardware acceleration turned off (ff and flash) try disabling Flash protected mode by following the instructions on these pages:

    (See this blog post Adobe for more technical details on protected mode Flash.)

    Thank you

  • Hi, I have Internet data in my package and I just switched to iPhone 5 4 s, I have to change my number to my new sim card and all is works well but when I go out I do not receive my internet, No 4 G or 3 G appears in the corner, everything is turned on?

    Hi, I have Internet data in my package and I just switch to an iPhone a 4S 5, I have to change my number to my new sim card and all is works well but when I go out I do not receive my internet, No 4 G or 3 G appears in the corner, everything is turned on?

    Contact your carrier and make sure that your account is configured correctly. Then go to settings/general/to comments and press the network name; This will cause the exceptional carrier updates to install (you will see a dialog box saying if an update is needed). In addition, go to settings/general/reset - Reset network settings if none of these fix. You will lose the WiFi passwords, but nothing else.

  • I lost my iPhone 5 and the "Cell" switch is off. How can I turn on it from another phone?

    I lost my iPhone 5 and the "Cell" switch is off. How can I turn back on from another phone so I can activate "Find my phone"?

    You can not. There is no method to remote turn on/off all the settings on the phone. The only thing you can do is put it in mode lost through the computer and it remains to be seen if the device connects to a known Wi - Fi network. Otherwise, you'll just go out and pick up the old-fashioned way. You have it in Mode plane, or you just disable cellular data?

Maybe you are looking for