6008 USB channel power for specific times

Hello

I am new to Labview, so I don't know if it's easy or hard to do.

I have an attached VI who writes exits Digital 12-channel.

What I´d wants to be able to write each channel for a specified time (avoiding the is fine - it doesn´t have to be super accurate, but he needs to turn off automatically after a certain time).

For example:

When I click, channel 1, I want him to be for 1 second, then turn automatically cut and wait for the next command.

When I click, channel 2, I want it turn on for 0.5 seconds, before turning automatically turn off and wait for the next command.

When I click, channel 3, I want him to be for 5 seconds, then turn automatically cut and wait for the next command.

etc.

So when I click Run, I could click on channel 1, wait a few seconds, channel 1 still once, wait a minute, then channel 3, wait 10 minutes, then channel 2, etc, in any order.

Is how easy it to do? Is this possible?

Thanks in advance for any advice.

Jon

Hi Jon,

If you want to set the time separately, my guess is it would be easier for you to create the channels separately. It's more manual work, but I think it's better to come up with an algorithm of time-supervision to all channels at once.

To trigger the output, I think that it is better to share entries, then perhaps it would be good to get out them of the matrix as well.

In a loop, you can check the value of the button and then just write 1 to the port, wait for the timeout with time delay vi, then wrtie 0 again.

If you create tasks separately and do not merge error, the process for each channel will work in parallel, so a delay will not affect the actions of the other channel.

Kind regards

Mariana.

Tags: NI Software

Similar Questions

  • How do I set the power for different time?

    Hello everyone,

    I try to set the different value of RF power for different time as shown in the figure. To do this, I tried using the timer 'Elapsed time '. A counter that counts each time is an array index, as shown in the attached VI. But, the meter does not not.  I didn't know what went wrong. would you lelp me please?

    I thank very you much.

    I would like it.

  • Reminder for specific times

    When you set a reminder for a specific at 22:00 day, I get a notification at 12:00. I get reminded to 22:00, but why he reminds me prematurely, I asked...

    When you set a reminder for 22:00, I want that he warn me at 10 pm, not 10 hours before!

    Callbacks parameters

    Go to settings > reminders, where you can:

    • Define a default list for new reminders
    • Synchronize reminders

    Keep your reminders to update on other devices. Go to settings > iCloud, then turn on the reminders. To stay abreast of recalls on OS X, turn on iCloud on your Mac, too. Other types of accounts, such as Exchange, also support callbacks. Go to settings > Mail, Contacts, calendars, then put reminders for the accounts that you want to use.

    Regular reminders

    Regular reminders let know you when they are due.

    Ask Siri. Say something like: "Remind me to take my pill at 0600 tomorrow."

    Set a reminder. Slide a reminder to the left, press more, then turn "remember a day". Type to set the date and time of the alarm. Press Repeat to set the reminder for regularly occurring intervals.

    Don ' t bother now me. You can disable notifications of reminders in settings > Notifications. To temporarily stop notifications, turn on do not disturb.

  • Time for specific dept record display by adding 10 minutes

    Hello
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    /****************************************************************************/
    
    create table dept(
    dept_id number(14) primary key,
    c_id number(14) constraint dept_fk references centers(c_id) NOT NULL,
    deptName varchar2(50)
    );
    
    create sequence dept_seq
    start with 1 increment by 1;
    
    create or replace trigger dept_trig
    before insert on dept
    referencing new as new
    for each row
    begin
    select dept_seq.nextval into :new.dept_id from dual;
    end;
    /
    
    create table shiftManager(
    s_id number(9) primary key,
    dept_id number(14) constraint shiftManager_fk references dept(dept_id) NOT NULL,
    title varchar2(110), /**e.g. Morning, After noon, Evening **/
    startTime date,
    endTime date
    );
    
    create sequence shiftManager_seq
    start with 1 increment by 1;
    
    create or replace trigger shiftManager_trig
    before insert on shiftManager
    referencing new as new
    for each row
    begin
    select shiftManager_seq.nextval into :new.s_id from dual;
    end;
    /
    
    select to_char(startTime,'HH24:MI'),to_char(endTime,'HH24:MI')
    from shiftManager where dept_id=1 order by startTime asc;
    I want to choose startTime adding 10 minutes to the end for dept_id specific for example time

    Dept1
    =====
    startTime = 09:00 and 14:00 = endTime

    POWER required:
    ================
    09:10
    09:20
    09:30
    09:40
    09:50
    10:00
    ..
    ..
    ..
    ..
    ..
    13:40
    13:50
    14:00

    Thank you in anticipation

    Best regards

    Raakh wrote:

    I am not able to understand especially startTime + (level - 1) / 24 / 6<= endtime="" +="" (600="" -="" 1)="" 600="">

    Oracle date arithmetic unit is day. So 1 / 24 represents 1 hour and 24 1/6 represents 10 minutes. You start by startTime and continue to add 10 min and startTime + (level - 1) / 24 / 6 impeccable (level starts from 1). Now we must stop when meet us or exceed the end time for the first time. Therefore, we can add add 9 min 59 s to endDate and use it as the end. And (600 - 1) 3600 / 24 represents 9 min 59 sec.

    In fact, we can simplify and use the following logic: difference between current 10 min. and end must be< 10="">

    connect by startTime + (level - 1) / 24 / 6 - endTime< 1="" 4="">

    SQL> select * from shiftManager
      2  /
    
       DEPT_ID STARTTIME ENDTIME
    ---------- --------- ---------
             1 01-JUL-11 01-JUL-11
             2 01-JUL-11 01-JUL-11
    
    SQL> select  to_char(column_value,'HH24:MI') tm
      2    from  shiftManager,
      3          table(
      4                cast(
      5                     multiset(
      6                              select  least(startTime + (level - 1) / 24 / 6,endTime)
      7                                from  dual
      8                                connect by startTime + (level - 1) / 24 / 6 - endTime < 1 /24 /6
      9                             )
     10                     as sys.OdciDateList
     11                    )
     12               )
     13    where dept_id=1
     14    order by column_value
     15  /
    
    TM
    -----
    09:30
    09:40
    09:50
    10:00
    10:10
    10:20
    10:30
    10:40
    10:50
    11:00
    11:10
    
    TM
    -----
    11:20
    11:30
    11:40
    11:50
    12:00
    12:10
    12:20
    12:30
    12:40
    12:45
    
    21 rows selected.
    
    SQL> 
    

    SY.

  • Apple Watch magnetic charging Dock is compatible with the adapter USB 12W power and if so, is the adaptor 12W shorten the charging time?

    Apple Watch magnetic charging Dock is compatible with the adapter USB 12W power and if so, is the adaptor 12W shorten the charging time?

    Yes and no.

  • Design practice nor 6008 USB DAQ

    Hello

    I have a few question, I'd like to introduce. I need some sort of indication on how to better perform a timed cycle of acquisition driven by WSF.
    I'll send my VI (conceptual, not one currently working one) and ask for explanations.
    The goal

    I need to acquire a battery voltage. Load current consumption is driven by a couple of transistor.  I drive the hollow transistors two digital i/o for USB data acquisition.

    Because I need to have a power for a given time cycle, I need to have some sort of time control on the output.
    So I wrote a simple state machine whose States are updated when a timer reaches zero. Each State has its own queue time.
    Moreover, I differentiate between acquisition and control operations using two all in cycles.
    First question: is this a correct way to a timed WSF of construction?

    and now:

    The problem (s):

    I need to connect and establish a correlation between the input line for the internal of the fsm States. So I madesome digital indicator on the face before of the VI and created a local variable (I know that local variables are BAD, but I had no other idea everything) to pass values for some time to the other.

    I also want to select State sequent of the FMS based on the input value, I get a channel. I can stil use a local variable?

    Are the two related tasks?

    Second question: are local variables, something that I can use for this task?

    Last but not least: I need to filter on the values.
    In this vi I perform a filtering operation and then I get the I use for control of local variables.

    will be this filtering desync the two cycles while? will I run out of control before running the filtering?

    The same question is valid for the purposes of registration: the unfiltered data record, I guess is unnecessary. But based on this 'architecture' I know the country reports and the recorded signals are out of sync (as happens in many game data acquired with this vi).
    Is this a problem of logging (perhaps given by different buffers for data acquisition and internal State or something similar) or the whole WSF will be out of sync, then all acquired data is more useful because it is out of sync?

    Any advice would be much appreciated.

    Best regards

    Luca.

    Luca,

    Question 1: This is a reasonable start but need some things to make it a good WSF. There is no waiting or delay in the loop so it will run as fast as possible. U.S.-6008 outputs digital software timed so that the DAQ Assistant can take a long time, but the amount of time is unknown and not necessarily consistent from iteration to iteration. Since the DAQ Assistant Analog Input in the other races of loop to<= 10="" iterations="" per="" second,="" a="" wait="" of="" 100="" ms="" in="" the="" fsm="" loop="" seems="" like="" a="" good="" starting="" point.="" waiting="" 3000="" ms="" is="" not="" a="" good="" idea="" because="" the="" loop="" becomes="" unresponsive="" to="" the="" stop="" button="" for="" long="">

    Do you need to write on the lines on each iteration, even when the data has not changed? Add a write state that is called only when the data changes.

    The DAQ Assistant has a Stop input and an output of Stopped. When you are ready to stop the loop, the stop signal must be wired to these inputs so that the DAQ Assistant can delete tasks. The output of the order can be connected to a Terminal to stop the loop.

    Problem (s):

    It seems that you want to link the two loops.  Local variables are usually a bad way to do it. The best way is to use queues.  A queue can send the current state of the file loop. (More comments later if that's really what you need). Another line can send data, or better, the commands, the loop of the file to the loop.

    I think you want digital output values rather than the State. Especially if you add a State writing as I suggested above, the current state will not always represent the condition of the power of your test.  To make this work with the additional state Boolean matrix must be moved from one iteration to another via a shift register.

    It seems that you have at least two controls to be sent from the loop of the file to the loop. One is the stop command. The other went to the higher power level control.  You should probably have a command to set off power level which can be used if the battery voltage becomes too low and before stopping.  How your program is currently configured, the last level of power will continue as long as the power of the computer is on and the USB-6008 is always plugged. The cessation program does NOT reset the lines.

    When you use anti-parallel to the queues, you must be careful on the definition of wait times and the timed out case management.

    The benefits of the queues are that it is easy to ensure synchronization at the level you need, the data can be stored according to the needs, and there are good examples. It also avoids the possibilities of race conditions, often introduced by local variables.  This program could be based on a variation of the design producer/consumer model.

    Filter questions: any filter introduces a time delay. In your case when you filter 100 samples 10 times per second, it is likely that the filter will do well until the next data set has arrived. The delay of the filter is not affecting your synchronization. The above lines will solve problems.  Since you are looking at time of cycle seconds and the minimum interval on the order of 100 ms, the exact chronology (to tens of milliseconds level) is probably not too important.

    The real question about filtering boils down to this: does the control work better if the signal is filtered?

    - - - - -

    I'd probably all this a little differently. Given the slow speeds and the small amount of data, a simple loop with an improved state machine is all that is needed. Get rid of the DAQ Assistant and learn how to use DAQmx screws.  States could include: Init THE Init, Init File, Idle, read, write, DO, Analyze, filter, adjust the power, wait, Save, close file, DO, AI Shutdown Shutdown, error and exit.  No variables. No indicator fake just to allow the creation of local variables. Very little code outside the structure State case. None of the queues.

    Lynn

  • 6008 USB differential measure of floating resistance source &amp; bias

    Hello

    For some time now, I have been measuring the sources of floating signals such as transducers of linear speed (LVT) in differential mode by plugging directly into the differential inputs.  The sensors have an impedance source of usually 1 k or less.  I read recently that if you want to measure a floating source in differential mode, you must use polarization resistors, as recommended in a field here Guide.  But I understand that the resistors are only to prevent entry of bias currents pushing beyond common-mode signals.  The recommended values are 10-100 k.  However, the 6008 already has 140 k input impedance, so I figure it's "close enough".  I have not noticed any problems with the signals that I measured, at least in the sense where it oscillates back and forth between 0V and out don't max.  What other kind of errors I would see in my signals?

    So in this case the polarization resistors are really necessary?

    Due to the input on the box USB-6008 circuits, it is unnecessary to use polarization that are required, resistors ofter on other devices with impedances of entry much higher.  The picture below comes from page 16 of the document specification and User Guide.

    Lynn

  • USB wireless adapter for computer laptop problem

    Hello:

    The HP laptop with XP get "Low" signal every time I'm in the other room that is not too much longer off the router, about 60 to 70 feet away from him.  Then, yesterday, I got USB Netgear adapter in the hope of trying to get more signal.  Because, says a guy in the store of the computer installation USB adapter is 'boost' to get decent and more signals.

    When I installed the Netgear adapter for the laptop, there is no signal at all and to appear the following message appears in the middle of the screen.

    NETGEAR 111v3 Smart Wizard, WEP Passphrase to create WG and the key manually

    My question is;

    How to install the USB Netgear adapter for laptop?

    Thank you for your help in advance.

    Hello

    The general idea that a USB adapter is a bit a booster dose is false. I'm not sure that you will get the USB Ant thing you don't get the laptop.

    According to the physical environment, 60 to 70 domestic feet with walls is probably beyond the capacity of the wireless router.

    As for your specific question, it seems that USB is correctly installed but must adjust its password security to your current wireless network.

    In general.

    My wireless is not working - http://www.ezlan.net/wireless.html

    Basic wireless configuration - http://www.ezlan.net/Wireless_Config.html

    Wireless Security - http://www.ezlan.net/Wireless_Security.html

    Extending remote - http://www.ezlan.net/Distance.html

    Jack-MVP Windows Networking. WWW.EZLAN.NET

  • HP 8150 printer does not print error: Re-installing the printer, unplug the USB and power and re-boot do not solve the problem

    Original title: hade 8150 printer does not print

    Under Vista Home Premium with all updates. The printer is a Photosmart 8150 H - P, which worked well for a few years. Now, when you send a document, for example, a Test page and looking at the queue, I immediately get an error. Re-installing the printer, unplug the USB and power and re-boot do not solve the problem. Grateful for any ideas. Thank you

    Hello

    (a) don't you make changes to the computer until the problem occurred?

    (b) when was the last time it was working fine?

    (c) you use a network printer or local?

    I suggest you try the steps below and check if it helps

    Printer in Windows problems

    http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows

    Hope this information is helpful

  • "unrecognized usb device": error message every time that a usb device is plugged into one of the usb ports

    "unrecognized usb device": error message every time that a usb device is plugged into one of the usb ports

    1. my laptop - acer aspire 5030 - has been having this problem for the last five months.

    2. I tried everything including changing service pack, as we have xp professional, he has recently upgraded to vista business 32-bit with service pack 1.

    3 tried all the methods start the laptop after a few hours, remove the battery, press the power button for half a minute, and so on.

    4. I finally he formatted a couple of times, but the problem is not.

    5. later, I improved the professional system of vista and installed the latest security patches, but the problem remains

    6. now, I started to update its drivers, although the device is identified to be connected, but is not recognized. "the error message" not recognized usb device "appears. I try to reinstall the drivers or upgrade of drivers, it does not. It displays the message "the drivers for this device are to this day.

    7. initially, the connection of the device, the drivers are installed but still the device does not show in Explorer.

    8. I tried to change some registry values by merging a regedit file in the registry - for display devices that are not present; but still, it has failed.

    9. I then tried to delete the file infcache1.inf in c:\windows\system32\inf, but the problem persists.

    10. Subsequently, I tried to create another registry entry to "disable selective suspend" in HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\USB by adding DWORD and assigning a binary value of 1.

    11. I tried later also to uninstall all the system devices including USB controllers, drives and the storage controllers, who must still without success.

    12. I tried to see if the drivers in safe mode, which they did not.

    13. I tried to delete the following registry entries =

    HKEY_LOCAL_MACHINES\System\CurrentControlSet\Enum | USB PORT; HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Class\ {4D36E967-E325-11CE-BFCI-08002BE10318 & HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Class\ {4D36E967-E325-11CE-BFCI-08002BE10200.  The computer does not have alow it.

    14. the BIOS indicates device pnp "disabled", which I also look for the BIOS settings, which do not allow me to change to change existing ones.

    15. I have not found the WINDOWS\SYSTEM32\drivers\USBSTOR file. SYS in my driver store. This affects the system?

    16. I also contacted manufacturers pnp devices that provided me with most recent and versions compatible drivers for my devices - namely an apple ipod & Seagate external HARD drive - but even after that the drivers are installed properly and the system rebooted the problem remains. Is this something to do with the updated playing driver registry entries does not after the update? OR is what registry entries are configured to only read the entries at the time of the installation of the OS?

    17. I also contacted local sellers who have suggested to me to change the "motherboard". This will help as a last resort?

    18. in the meantime I had also installed other operating systems to Linux - Fedora and Ubuntu; Full Windows XP - Home & Professional and Vista Edition. All these have been installed successfully but do not solve the problem of usb.

    19. I have also raised the original HARD disk & replaced by another HARD disk. also checked the power of all ihee and ehee usb ports to be at least 5 V. I also disabled the automatic deactivation of devices usb by the system. physical contact, ports and connecting cable is fine. the distribution of power is set at 10% for the ihee ports and 20% for ports ehee, which is what is should be the physical output is also close to 5V for all ports connected.

    20. all professional (hardware or software) should any solution for the problem of the usb ports on my laptop?

    Something that you haven't tried:

    How to fix USB device not recognized in Windows

    http://www.online-tech-tips.com/computer-tips/USB-device-not-recognized/

    I hope I could help

  • find data between specific times in a date range

    HII all,.
    I'm pretty new in PL/SQL so any help will be greatly appreciated. I'm trying to retrieve data from a set of tables. one of these tables has a field that is a timestamp in the format «dd/mm/yyyy hh24:mi:ss» field asked me to produce data for records that were created between 16:00 and 20:00 between 01/01/2010 and 31/08/2010. I can eat the date of issue, but the question of time is that I'm stuck.

    your help would be appreciated
    SELECT *
    FROM my_table
    WHERE col_date BETWEEN DATE '2010-01-01' AND DATE '2010-09-01'
    AND TO_NUMBER ( TO_CHAR ( col_date, 'HH24MI' )) BETWEEN 1600 AND 2000;
    

    Now something difficult:
    A DATE data type represents a specific time. It's something abstract. There's no format. It is in some cases stored internally, but we know not how (in fact, we know a little). Cannot directly display a DATE value - it is not a text, it is a point in time, it can be established on a calendar and a clock, but not on the screen. DATE FORMAT allows us to tell Oracle how we want it to be converted into a string and displayed. Do we want to day/month/year or year/day/month? Do we want a 24 hour clock 12-hour am/pm or? The same value, the same point in time can be displayed using different channels, produced using different DATE FORMATS. "Friday, September 17, 2010 13:15" is exactly the same point in time as "2010-09-17 13:15" - the only difference is the FORMAT. This allows us to perform several clever tricks with DATE data. Ok?
    (If you do not specify a DATE format, and then there are the values by default for your session and for the database. But the principle remains the same: a point-in-time value is converted to a string using the DATE FORMAT).

  • How we can plan automatic updates app and icloud backup at a specific time and off-peak hours?

    How we can plan automatic updates app and icloud backup at a specific time and off-peak hours?

    It does not work like that. It cannot be scheduled for a specific time.

  • Is there a way to disable notifications for specific people or focus groups, without disabling notifications for everyone? (in messages)

    Is it possible, in messages, the rotation of notifications for specific people or groups of discussion, without disabling notifications for all incoming messages? I sometimes have a lot of messages from my daughter and my phone buzzes away all the time which can be annoying. I don't want to disable notifications entirely or do it on the silence on the other I miss important messages form other people.

    You can enable do not disturb on an individual message, but which will shut down the entire conversation if it's a group. This is not the same as activation do not disturb for the phone, which disables all notifications. Open messages, select the message in question, in the upper right, click details and then scroll to the bottom, you should find the switch to do not disturb.

  • 15 170tu ac: I HAV to press the power button several times to start the laptop...

    I HAV to press the power button several times to start the laptop... works well with the power supply on.

    all My drivers & bios is updated... but when I opened the lid... I HAV poer press several times the button and he then began 4-5 min.

    Hi @Vishalwagh123,

    Welcome to HP's Forums a great way to get help. It's a great place to find answers and advice! Thanks for the post.

    I understand you have questions turn on/off the device and you must press the power button several times for him to start. I'll be happy to help you.

    Please try these steps first. Perform a hard reset.

    • Steps to do:
    • Turn off the computer and unplug the charger. Then remove the battery.
    • Press and hold the power button on the unit for 15 seconds to carry out the static electrical charges inside the machine.
    • Replace the battery and the charger plug it back. Try to turn on the computer.

    If it fires up immediately the issue is resolved. Otherwise, try to turn on the computer without the battery and check that it works immediately.

    In your message, you said that it works very well with the charger. However, I need more clarity here to help you better.

    It works immediately when the adapter is connected and the power button is pushed only once?

    If you again press the power button several times, it may be a faulty power button, and you will need to contact the hotline at the service of the unit.

    Let me know what happens when you try to turn on the unit without the charger?

    Visit this link to contact support phone:

    http://HP.care/2bjG4nE

    Hope the problem is solved without hassle. Please keep me in the loop.

    Take care and have a week Holy.

  • Can I have simultaneous USB and LAN for IX4 connections - 300 d?

    Can you have a USB to PC connection and a connection to the local network (ethernet) at the same time?

    I have not gigabit LAN (yet) and I have a few files that I need to transfer a PC, so I thought using USB 2.0 (not 3.0 yet) would be faster. So, I would just periodically connect the IX4 to PC via the USB port while it is still connected to the local network. Are there problems with it?

    ix4s USB ports are for drives external, printer or connections UPS only (ix4 ports are host ports) and not for connecting another host (customer e.g.PC).

    No luck...

Maybe you are looking for

  • Qosmio F30-112 - how to reset the BIOS password

    Hello Broke laptop Qosmio F30 - 112 with broken lcd screen.Now, I get new lcd monitor and fix it but I can't access the password of the bios. I discovered how to recover passwords of other boards in computers laptop toshiba, but I can't find this.I'm

  • ProBook 4530 s: win 10 results ProBook s 4530 in no Wi - Fi

    Good afternoon, all! I tried to upgrade a ProBook s 4530 on Windows 10.  Everything looks good, until I try to connect to Wi - Fi.  The widget simply says 'Impossible to connect wireless' and there is no showing why Event Viewer entry. The wired adap

  • Pavilion g6: google chrome

    Wonder if anyone can help, I can not access my Google Chrome when my setting to see if it is what I can do from there free access across the page, I get a blank screen can't even. I understand that you can uninstall and re install Chrome but if I do

  • Updates from not not by

    Sun Microsystem updates for Java updated whenever I start my computer.  The program is installed, but the updates take effect. How can I fix it? Thank you.

  • LR 4 export questioned

    I work with a magazine editor that requres JPEG high resolution images in resolution native camera (in my case I work with RAW-3840 x 5760 files) with corrections of base color with a between 3-7 MB file size. High 70 in Lightroom compression quality