Getting a digital change over time value

Hello

I'm trying to control a bunch of relay connected to a NI 6008 and unit 6501. I have a program that can take binary-coded decimal code and turn on the relay suitable for that code, but I would like to automate the system to free me to keep an eye on the clock and change the code if necessary. So, I tried get the program references a spreadsheet with each iteration of the loop, but it returns an array which I can't find a block that will pull the value that I need to get out. I then tried to do a waveform reproducing the cycle start/stop of the relay with no joy to get the value of the waveform at each time out and giving them for microcontrollers.

I don't know there must be a simple way that the program refers to a table/spreadsheet/waveform and spell the value at the moment but I can't seem to find it!

The number is a real type double, 64-bit.

Examples of data would be the number 0 40 seconds, ramp up to 7 in 10 seconds that follow, which hold for 20 seconds then ramp down to 0 in a final 10 seconds.

Clues or suggestions would be much appreciated!

See you soon,.

Stuart

This code snippet shows how use the delay time express vi for the type of operation, I think you are looking for.

You say that you have the data acquisition code working so I left it out my example.  You may also want to OR since the file with a Boolean on the FP to have the control of the ecexution without just depending on the file.   Although you stated that you want to read the file for each "vector" its going to be much more efficient to read the entire file to the time and the Bay of the2D auto-index.  However, you can read a line at a time if your file is change during execution

Tags: NI Software

Similar Questions

  • Hi, I have two decimal strings, each of them contains the numbers change over time. I want to plot them on the graph XY, a string for each axis. Can you show me how do?

    Hi, I have two decimal strings, each of them contains the numbers change over time. I want to plot them on the graph XY, a string for each axis. Can you show me how do?

    This is not a formula, but a constant simple schema of a table complex. Wire remains, then do a right click of the terminal of the initializer of the feedback node and select "create constant. That should do it.

  • Get information from change of color over time

    Hi all

    I am new to LabView and on this forum, so I hope I'm in the right subforum. If this isn't the case, it would be nice if a mod could move this thread.

    My problem is the following:

    Let's say I have a white spot I want to observe with a camera. The color of the spot turns green over time and I want to acquire the photo, as well as to get the color intensity of green increase developing countries over time. I do not know what features I need to use to get there. Can someone me hint in the right direction? I think that it is at least possible in LabView.

    Thank your all for your help.

    Best regards

    Tresdin

    I don't know what the best resource for IMAQdx pilots, I think that the examples that provide OR are pretty useful. Here's a simple VI which will tell you the average value of green of all the pixels in your image.

  • Since the installation on my Windows 7 64 - bit installed, Firefox has constantly gotten slow that hour passes, hangs for 10-15 seconds at a time and just gets worse over time with updates and all.

    Since the installation on my Windows 7 64 - bit installed, Firefox has constantly gotten slow that hour passes, hangs for 10-15 seconds at a time and just gets worse over time with updates and all. It was fast when I installed first, but of the six latest mos has slown to a crawl.

    upgrade your browser Firefox 8 and try

  • How do we change closing time of a screen, that I am working on automatic or reading? It closes and I can get it by pressing the key, but it's boring. Thank you

    How do we change closing time of a screen, that I am working on automatic or reading? It closes and I can get it by pressing the key, but it's boring. Thank you

    Hi TommieZook, I see that this is your first post here.  Welcome to our community!

    As for your question, there are few parameters that you might need to check.  #1 is the most likely:

    1. Power settings for your screen
      Press + W to find settings, and then type power to find and open Power Options.  On the left, click "choose when turn off the display" and set the timer accordingly.
    2. Sleep for your PC settings
      On the same page of the Power Options, click 'choose when the computer sleeps' to set the timer as well.
    3. Screen saver
      Windows 8 is not the screensaver on initially, but you can see these settings too.  For easy access, go to the desktop and right click, then choose Customize.  Choose screensaver downstairs and make sure that the setting of the timer is to your liking.
  • How can I get the hour (24-hour format) stored time value

    I have a field called start_time in a database mysql and all I have to do, but unable to do so far is part time 24-hour (without leading zeros) in this field.  I tried all the date functions, including date('G'), getdate and start_time table [hours].

    I get either today's date & time, or just first digit of he in time.

    What follows is the closest, he came to work, but it's the ethat on is back just the first digit of the hour if there are two numbers in 24-hour format (ex: 14:00 = 14, it returns oly 1)

    <? PHP

    ;

    ;

    ;

    $start_time = $row ['start_time'];
    $hour = $start_time [h];

    ;

    ;

    ;

    ? >

    Help, please!  I spent too much time on such work of subordinate.  According to me, part of my problem is that I am under PHP 4.

    Thanks in advance,

    Marcus

    marcusinfla wrote:

    Do you mean similar to the following?  I don't seem to get a value

    No, it should be part of the SQL statement:

    $lookup = "SELECT *, HOUR(start_time) AS start_hour FROM $tbl";
    
  • I get a message saying that I don't have privileges to change the time system.

    I use Windows XP Professional as an administrator. The message is that I have enough privileges to change the time system?

    original title: time system

    As you probably understand, setting is translucent because your IT Department at work has controlled this configuration in the field (which is why I have inserted the caveat "unless the domain policy changed that").  When you exit your laptop from work to home, the domain policies remain in place.  If you do not have the administrative rights on the computer, you should always be able to change the policy by using KB266280 of my previous post... but as soon as plug you it into the network of your domain to work, the policy will return.

    HTH,
    JW

  • Change the default value for the field selection at run time

    I would like to know how can I keep persistent information in Sib. My problem is I want to change the default value of the choice field when running so that when the user starts the application again, it can retrieve the new default value.

    store values can be done using the persistence framework.
    See Persistable, PersistantObject and PersistantStore in the API.

    You can call setSelectedIndex on an objectchoicefield.

  • Digital control over several orders of magnitude

    Hi all,

    I'm trying to get a digital control with a suitable addition to the order of magnitude.

    For example, I have a front panel for an osziloscope, sometimes that samples on some ns, sometimes a few seconds, sometimes a few milivolts, sometimes a few volts, who knows, right
    I was playing around with the digital control units, but it doesn't quite fit my needs. I can't change the prefix of a unit on the duration, for example of microseconds to seconds, but then I change the issue as well, because on change the prefix, the previous number is only multiplied by the factor according to, for example, 1000, so 5 became US 5th-6s. So change the record length of the default value of 500 ms to 100 ns would require two klicks type, and I can instead just type "100th-9', which is good too."

    However, I would like to have a digital control from 0 to 1000 combined with for example a button for prefix i.e. nano, micro, mili etc. and combine this values internally, i.e. of mulitplying accordingly. But I couldn't set the increment to "3 orders of magnitude" even with the option to log scale.

    I know, I could use an enum with the names and values according to, but this is not very satisfactory.

    So perhaps the question would be: is it possible to combine two digital controls or the value for the prefix, in a suitable and easy way? Or how do you manage the digital values over several orders of magnitude in a case like mine?

    Thanks for your replies in advance.

    Best,

    bastlwastl

    Display format is SI units

    It helps in these situations

  • Advice on the restructuring of code to avoid the downturn over time

    Hi, I am a new user of LabView, you want some advice on how to better structure the program I wrote and which is used to perform a hydrostatic test arrangement. Data are collected on a module of AI cDAQ 9207 and a cDAQ 9474 module is used to control the two valves that subsequently controls pressure in and out of the test Chamber. I enclose my first version of the reference code.

    What the VI is supposed to do when the user of the weapon system and strikes then the execution, the program switch will cause a transition of the test chamber through several States corresponding to the levels of different pressure for some time. Time curve vs pressure is written to a file of measures. I built using a state machine structure.

    My problem is, during the initial trial, when the duration of the test was about 5 minutes or so, the program went very well. However, once I started to test the length of the actual test of 2.5 hours, I noticed the program running slower and slower as time progressed to the point where it would take several seconds for each iteration of the loop, then by accident about an hour or two in the test. After scouring the articles and messages, I suspect the main culprit is the diagram of waveform and to a lesser extent DAQ assistant.

    While I need the loop structure data collection and case to run pretty quickly (preferably the order a few hundred s/s) I need the code to be able to react to changes in pressure in the room quickly enough, the actual data, that I need to store and display the graph can be as slow as a sample per second or even longer. My guess is at this point that I have to rebuild the program using some sort of architecture of producer/consumer, I'm looking for some advice on how best to structure the program.

    Data acquisition obviously belongs in the producer loop that will run at a fast enough pace and there will be a consumer loop that will run at a much slower pace for the Bulletin Board writing to the extent of the file vi, but where should I put the case of structure state machine which currently controls the valves? Should put in the loop of the producer since it must run at the same fast pace as the collection of data, so it can react to changes in pressure or should I build another loop of consumer for him? What other indicators (pressure and Boolean) and controls on the front panel, they should be on another loop operating at a medium speed I want to respond to a faster pace than the data to the chart/write the loop, but they do not need to be as fast as the data acquisition loop?

    Finally, I'm not quite sure what would be the best way to reduce the sampling rate of the data that I have in fact appear on the graph and the store in the file, it wouldn't make sense to create another task of measurement that samples at a rate below just for that purpose. Suggestions and advice would be greatly appreciated! Thanks in advance!

    Bob

    My guess is that if you monitor the use of memory over time, you see that going up, Yes? Everything is is always a good idea to get rid of the express VIs, I would look for the problem of slowdown in the structure of the case. You repeatedly open and never close tasks which are created using some DIO channels. Hnece each time that the loop more memory is allocated. Try to move creating channel screws out of the loop, then the tasks are created once before the start of the loop and then written to as required inside the loop - and don't forget to delete tasks once the loop over.

    Mike...

    PS: You are right with your comments regarding the structure of the producer consumer. Basically it break up as things get quickly (DAQ IO) that there is in a loop, while the user interface and the stuff that can take a long time (such as the data record) are in another loop. You can even have three loops with one for the acquisition of input data and the other for the digital output.

    PPS: Finally don't forget that even if the structure of consumption of the producer is usually represented with everything in a single diagram, there no need to be. I wrote a lot where each loop is in his own VI which is run dynamically, then the application starts.

  • Want a ramp of output voltage over time and measure input 2 analog USB-6008

    Hello

    I want to produce an analog voltage output signal that increases over time with a certain slope, which I'll send in a potentiostat and at the same time I want to read voltage and current (both are represented by a voltage signal) that I want to open a session and ultimately draw from each other. To do this, I have a DAQ USB-6008 system at my disposal.

    Creation of the analogue output with a linear ramp signal I was possible using a while loop and a delay time (see attachment). Important here is that I can put the slope of the linear ramp (for example, 10mV/s) and size level to make a smooth inclement. However when I want to measure an analog input signal he's going poorly.

    To reduce noise from the influences I want for example to measure 10 values for example within 0.1 second and he averaged (this gives reading should be equal or faster then the wrong caused by the slope and the linear ramp step size.) Example: a slope of 10 mV/s is set with a 10 step size. Each 0.1 s analog output signal amounts to 1 mV. Then I want to read the analog input in this 0.1 s 10 values)

    Because I use a timer to create the linear ramp and the analog input is in the same loop, the delay time also affects the analog input and I get an error every time. Separately, in different VI-programs (analog input and output) they work fine but not combined. I searched this forum to find a way to create the ramp in a different way, but because I'm not an experienced labview user I can't find another way.

    To book it now a bit more complicated I said I want to measure 2 input analog (one for the voltage of the potentiostat) signals and one for the current (also represented by a voltage signal) and they should be measured more quickly then the bad of the analog signal. I have not yet started with because I couldn't read on channel work.

    I hope someone can help me with this problem

    An array of index. You want to index the columns for a single channel.

  • Plotting the amplitude of a spectral peak over time

    Hello

    I am creating a VI where the acquired continuously DAQ, plots and save a waveform in millisecond delay (which is already done in this case), then takes this waveform, finds a specific pic (probably the first) and trace the amplitude of this pic over time (+ 30 minutes, one point each scan which is obtained). Essentially, I have a detector quickly attached to a chromatograph, and I want to select a single ion and monitor the amplitude of this ion. I can draw the waveforms along with it in post processing, but I want to do is to have the 'slow' constantly plot to update and display when it moves through time. Joined the VI will go in, using IMS software V1.3.vi, the paragraph is the "GC" Mode it seems I should use the "peak detect.vi.", but I'm not familiar with this operation, and so I don't know how to show a constantly updated graphic or remove the amplitudes and draw. Thank you for your help,

    <><>

    Eric-WSU wrote:

    I get an amplitude on plot of time, but it does not appear until after all the iterations are stopped

    I have not watched your VI (because I'm in a previous version of LabVIEW), but it's probably because your graphic is outside the loop.

    Here's how you can get a graph of the peaks (all vertices, by iteration):

    Or if you want to only a certain PEAK (and how this pic changes with the number of iterations):

  • Constant changes of time stamp

    So I select a timestamp and assign a value.  I connect ot a conversion to get the number of seconds.

    Then I change the timezone on my computer and the time constant exchange.

    Why NOT call it a constant if it changes its value?

    The number of seconds remains the same, but the hours value is changed.

    This is not the kind of behavior, I expect.

    Thank you

    Mark

    The time constant is the universal time.  It is displayed as a time for your time zone.  So when you change your time zone, the value does not change, but the value display changes to the new time zone.  You can change the display format to display UTC instead, and time will not change.

    Thus, the time is a consant (which is obvious because the second time remained the same).

  • Laptop HP G62-451SA: cannot read the label for Office 2010 product key as it dissipated over time

    Obliged to restore settings after a total crash.

    Spent the whole day as recommended by HP, including using my recovery disk that has failed.

    Tried to open Microsoft Office 2010 as usual, but said to give the product key to activate it.  Mine is on a sticker on the bottom of my laptop.  Unfortunately it is place to be where it is that some of the numbers have disappeared over time.  Now I can read only the last 15 digits.

    Ages worn on Microsoft support pages and basically they said that the onus to solve this problem since I legally paid for it when buying their product to HP.

    I'll lose more than a year of work, if I can't get this sort.

    Thank you.

    The label on the bottom of your laptop is not for the office. It's your Windows license key. It should say Windows 7 Home Premium above the numbers.

    Most of the HP machines come with a trial of office unless order you it with more full Office and pay extra. The trial usually actually works after the period 60 day trial - unless you do a recovery. After a recovery it will require you to buy a license key to use.

  • I signed on XP Pro SP3 as an administrator but you cannot change the timing of Windows Update to 03:00. All options are not enabled. How can I change the time, updates are made? __

    I signed on XP Pro SP3 as an administrator but you cannot change the timing of Windows Update to 03:00.  All options are not enabled.  How can I change the time that updates are made?

    Hi imoffshore,

     

    Welcome to Microsoft Answers Forums.

    We would like to get some more information from you to help solve your problem. You better, please answer the following questions.

    ·         When was the last time it worked?

    ·         Remember to make changes to the computer recently?

    ·         You have security software installed on the computer?

    ·         You get the error message?

    When you open the tab automatic updates in the control panel or My Computer property sheet, all options of configuration of the automatic updates may be grayed out. This happens due to one of the following reasons:

    1. You are not logged as administrator (or equivalent)
    2. Strategy of automatic updates is enabled
    3. Automatic updates (and Windows Update) access is blocked by group policy

    The options available for automatic updates.

    You must make some changes in the windows registry.

    Important: this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    How to back up and restore the registry in Windows

    http://support.Microsoft.com/kb/322756

    • Click Start, run and type REGEDIT to . EXE
    • Go to this location:

    HKEY_LOCAL_MACHINE-SOFTWARE-policies-Microsoft-Windows------WindowsUpdate------AU

    • In the right pane, delete the two values AUOptions and NoAutoUpdate
    • Go to this location:

    HKEY_CURRENT_USER-SOFTWARE-Microsoft-Windows-CurrentVersion------policies------WindowsUpdate

    • In the right pane, delete the DisableWindowsUpdateAccess value

    Using the Group Policy Editor - for Windows XP Professional

    • Click Start, run and type gpedit.msc
    • Navigate to the following location:

    => Configuration of the computer
    ==> Administrative templates
    ===> Windows components
    ===> Windows Update

    • In the right pane, double-click Configure automatic updates and set it to not configured
    • Next, go to this location:

    => User configuration
    ==> Administrative templates
    ===> Windows components
    ===> Windows Update

    • In the right pane, set to remove access to all Windows Update features on not configured

    Change how Windows installs or notifies you of updates

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-how-Windows-installs-or-notifies-you-about-updates

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for