Read channels alternately on the Agilent data logger

Hello world

I'm finalizing a code. I remotely control my Agilent 34970 and I want to read channels one after the other. I have an actuator in the device that is also controlled to close and open channels.

The actuator channels are 201, 202... 220

Channel multiplexers are 101, 102, 103... 121

I want the code to close 201 and read 101, then open 201 before going out to close 202 and read 102... etc.

At the moment what I close all of the cylinder at a time and read all the channels that is not what I want. I know a little long hand to do this is to have so many sequences, but I want to know if there is a shortcut, a little.

A printscreen of the façade of what I currently have is attached.

PS: I'm relatively new using labview. I'd appreciate any help I can get.

Maybe use a loop FOR.  Put all your settings in tables and autoindex berries enter the loop FOR.  Inside the loop, you can close a relay, read a value, and then close the relay.  Repeat for as many channels and samples as you want.

Tags: NI Software

Similar Questions

  • What runtime error of Reader 9 to redirect the Application data is fixed?

    Has anyone heard when Adobe will fix the error Runtime of Reader 9 to redirect the Application data?  It still occurs with 9.1.3 only users who have their Application Data redirected folder via Group Policy.

    It lasts for a while, as evidenced by the following link and my own personal pain, fight against this

    http://forums.Adobe.com/thread/391738?start=100 & tstart = 0

    I also installed Adobe Reader 9.2.0 via Active Directory and I can confirm the runtime error message still appears, and the application closes. However, the suggested workaround solution worked. After you have set the folder list / permission to read the data on the shared folder of HOUSES on the server (only applied to the folder itself) Adobe Reader has started working.

  • Units in the Stimulus Data Logger profile editor

    I have an active Veristand application that uses the data logger built in Stimulus profile editor. Recording data works fine but it does not display the channel units. This becomes a big problem with our client.

    I suggested to change the channel names so that they have units in them. Before we go on changing over 100 names of channel and dealing with the associated benefits of doing this, I would like to know if there is a way to get the units of the string to display in the data logger.

    Before, it was suggested, I already use the recording custom device of embedded data and I hammered him to the gills.

    Has anyone concerned with that? Don't know a good workaround solution?

    Thank you!

    We have a patch for this NI VeriStand 2011 SP1 if you have access to this version. The problem is that VeriStand using incorrect property name for the property units. Channels are registered with a property named 'Units', then it should be "unit_string" so that the other products like the tiara to interpret it correctly.

    You can apply an INI token to change this behavior in 2011 sp1. Add the token following in the file below.

    Win7:
    C:\ProgramData\National Instruments\NI 2011\NI VeriStand.ini VeriStand

    WinXP:
    C:\Documents and Settings\All Users\Application Data\National Instruments\NI VeriStand 2011\NI VeriStand.ini

    [NOR VeriStand]
    LogUnitsPropertyName = unit_string

  • The Eagletree data logger program does not start

    After downloading the software from version 9.13 recorder data (see [http://www.eagletreesystems.com/Support/apps.htm]) on my computer with OS Windows 7 Professional, the program does not start.
    Also try different compatibility settings does not solve the problem.

    An earlier version of the same program open normally, and also on the computer of a friend with Windows 7 there is no problem.

    Someone has any idea how to solve this problem?

    MAYDAY and greetings,

    Eddy

    Hello

    I'm a little confused about your ad Mr. Why ask you this question here?

    Here he s a user to Toshiba user forum where people can discuss on laptops Toshiba and Toshiba software, drivers, etc., but this data logger has nothing to do with Toshiba.

    In this case you must contact directly to the manufacture of the data logger. Guys have to know what you have to do to make it work.
    ?

  • Alternative to the ADF date. MinValue

    Hi guys,.

    We are facing some frustrations with adf date. MinValue. Change to show Monday as first day of week (currently Sunday) and also, we want to implement something like by clicking on the field instead by clicking the icon to display the date picker.

    We try to use JQuery, but there is a lot of work in order to treat all custom validations, etc.

    What would you recommend? Can achieve us this condition by using the original date. MinValue adf?

    Kind regards

    P.S JDeveloper 11.1.1.6

    Try to put this code in the trinidad-config. XML ("en-GB" is to keep the datePicker in English set MONDAY as the first day of the week, but you can change it):

    en-GB
    

    AP

  • Reading of information within the given date range

    Hi all

    Please can u help me to solve this: -.

    I need to get these employees who completed their 18 years within the specified date range.

    For example, If date1 = 2008-10-21 and date2 = 03/11/2008

    Then, I need to display information of all employees whose birthday falls in the range of dates and the date.

    Thanks in advance!

    Hello

    Try this

    SELECT *.
    OF test1
    WHERE (TO_DATE('21/10/2008','DD/MM/YYYY') - bdate) / 365,24 > 18 OR (TO_DATE('30/10/2008','DD/MM/YYYY') - bdate) / 365,24 > 18

    -Pavan Kumar N

  • I can get the data of a hygrometer using the RS232 port with the following T75.2F:H17.0% using a RS232 data logger format. I was wondering if I can collect this data for later analysis using Dasylab. Any help is appreciated.

    I can collect data from a hygrometer in a text file using the RS232 port with the following T75.2F:H17.0% format, these data are collected using a data logger software. I was wondering if I can collect this data for later analysis using Dasylab. Any help is appreciated.

    The setting below causes the error. Change for the second selection, output values of all channels.

  • Fluke Hydra 2625 with NI LabVIEW drivers: can not read the output data

    I work with a Fluke Hydra data logger 2625 have downloaded the drivers from NI LabVIEW, crossed the config., initialize and modes files and now trying to read data from a thermocouple.

    Initially, I was getting an error message ("17" I think) but now, after correcting the port numbers, the recorder data and LabVIEW seem to communicate without error. I would like to know where I should look (in the panels before different drivers) for temperature data output.

    Any advice would be appreciated at this point. Thank you.

    There is a driver not supported here. I have the instrument and you have not used one in quite a few years, but if using the example, the function can be set to temperature temperature with the 751 RTD or thermocouple. The results indicators min/max/last.

    The pilot could really benefit from a full rewrite, but it seems that most of the basic functions are there.

  • Trying to update channels in real time while controlling the Agilent 34970

    Hi all

    I got Aussie help on these forums and I hope that someone will be able to point me in the right direction with this problem. I'm still fairly new to LabVIEW please bear with me.

    I work with the LabVIEW driver for the Agilent 34970 connected on a GPIB-ENET 100/1000. The device was detected and works very well. The reason why I am writing today, what I'm trying to update the list channels in real-time. Currently I need to stop the whole process in order to modify the list of channels, but due to the nature of the tests we will occur, it is important that I can add more channels I want without interrupting the ongoing trials.

    I searched the forums and tried to change control of chain of channel for "Update of the value while typing" and "limit to the only line." The motivation behind the change of the latter was so that I could change the channel list and use the ENTER key to run. I also tried to create a while loop with shift registers but construction ws so clumsy that it does no more.

    I am sure that the change must take place as soon as the control of the chain, but is not certain since the pint is so he can reset which channels to scan and which appears lower in the VI. I have attached the VI I work with; It is a slightly modified version only Advanced Scan example of the driver.

    Thank you in advance,

    Yusif

    You might have added a registry to shift, but you're not actually compare anything. You compare the value of the control to the value of the data coming from the shift register to see if it has changed. If so, change the scan list.

    If you need to have a delay after you change the scan list, then you must add the delay within the business structure that calls the VI to reconfigure the scan list. You can use the late VI period causes the delay occur after you set up the analysis using the wires of the error to force the order of execution.

    P.S. Your naming scheme for screw means that you probably use a source code control system. If so, you would be well served by taking the time to discover the source control systems and installing a. It is very easy, and he has had several discussions in the LabVIEW forum on recommendations of source code control systems.

  • How to read data from OM - 62 temperature/humidity data logger in LabVIEW?

    Hello

    I have an Omega OM-62 temperature/humidity data logger I want to communicate (initialize recording, reading/writing data, stop recording) through LabVIEW 8.6. The OM-62 is connected to the PC via a type B USB-miniUSB connector, and I have provided "Omega Recorder program Interface" on my Windows operating system. I called online DAQ support Omega but I was told that data recorders low level like this have not provided capabilities of LabVIEW, which I fully understand.

    My question is why I have to use their program to communicate to this device? If I knew the syntax program them used to connect to the device, why can't I use through VISA? Do I need to build my own LabVIEW driver from their supplied driver?

    Python is easier to apply to this scenario solution?

    How can I see the code "Omega Interface Progam recorder" on my Windows operating system is using to communicate with the OM - 62 sensor?

    I just want to know how this could or could not work because I think I'm missing some concept in my understanding of programming LabVIEW/novice. It would be easier to run my LabVIEW program and their program at the same time, but I just want to understand it at a deeper level.

    Curosity killed the engineer occupation,

    Zach

    P.S. I have attached a few driver configuration information, but I have no idea if this is useful.

    Unless the manufacturer provides a kind of programming interface or API to communicate with the device that you have trouble with your own software interface to it whether LabVIEW or Python or something else. This could be in the form of a driver dll, Protocol series modbus (etc. etc. etc.).

    If it is not condition / available and you really need to communicate with the device, you will need to look at using something like a sniffer USB/driver (software? hardware?) to try to intercept communications between their software and the device. You can then use this information to try to understand what the commands it sends and the responses received and how to convert data.

    Once you have that until now... I don't know what options are willing LabVIEW for control of USB device, but a proposal, I would say that you would need either a driver USB low level or you have to write your own driver in another language and that call from LabVIEW.

  • How do switch you between multiple channels to indicate which channel to acquire the data from?

    I'm trying to builld a VI where I can have an option to enable or DISABLE multiple channels depending on the modules plugged into the chassis and then acquires the data of the channels which are turned on and where other acquisition parameters do not change. Is there any specific/switch where can I do this? Please answer as soon as possible. Its quite urgent. Thank you

    You use DAQmx?  To change the assignment of the data acquisition channels, you must close the currently open session and then create a new session with the new channel definition.  So the order of execution:

    Create task or virtual channel - read - clear task of triggering and synchronization of the configuration - set new channel list and to create a task - read - clear task, etc...

  • How to analyze the data of 10 bytes encoded in the HH306 of Omegatte data logger/thermometer?

    I am trying to write a simple code for a HH306 of OMEGAETTE thermometer/travailleursduweb.com data recorder.

    That is the problem. I communicate with the device via RS - 232, using Labview 8.5.1 and windows xp. I ask her for "all the coded data", which is actually the only option. He returns 10 bytes of encoded data, the manual describes the meaning of each byte and I understand that. The problem is that I can't analyze the information for use in labview, for example: I want to extract the temperature and simply display it.

    on request, I get: 10bytes (read as a string from the serial port read buffer): display HEX: 02 00 A8 48 FF EF B6 49 B6 03 is perfect, and what I expect.     Display codes: \02\00\A8\B6H\FF\EF\B6I\03 The Normal display is a series of special characters, I don't understand, especially since I don't think they are ascii characters that must match returned hexadecimal numbers!   For the life of me, I can't understand how to extract the information (what are the 48 6 hexadecimal display) of what is returned. All string manipulation functions seem to work only on what is given in Normal view. (The 4th and 5th byte of the data are the codes of the BCD for temperature: for example the temperature was 64.8 degrees farenheight when I took this reading).

    Can someone help me to analyze the data returned by this device?

    Ok... I think that I thought about it. I found this: http://digital.ni.com/public.nsf/websearch/77C8F61D36F5A23086256634005ACB38?OpenDocument.

    I guess the normal display garbled is corresponding to each hexadecimal ascii characters. I'm just not used to seeing characters beyond the decimal number 127 ascii or hex 7F.

    So, basically, to analyze the 10 bytes of data:

    (1) break the string read from the serial port in the 10 ascii characters (using String subset vi)

    (2) son of each output string in the left input of 10 separate Type vi Cast.

    (3) wire a constant U8 in each terminal 'type' VI Type Cast.

    cables of 4) the chain of each Cast of Type vi output to the input of a number hexadecimal string vi.

    (5) concatenate or use as you wish as hexadecimal numbers (now in string format) which cause.

    See you soon.

  • Question about reading the hex data

    Hello! I'm a Novice of Labview and have a problem with reading the hex data.

    Basically, I bytes from the serial port like this: "80100E0E0AB4F646F24A00911267087E032080057FFF."

    It is not encoded in ASCII. What I want to do is to convert a hexadecimal string ASCII of the hexagon.

    so that the chain would become of ASCII hexadecimal numbers.

    I think that the following might be a solution, but I have no idea what the Subvi is in the solution.

    http://forums.NI.com/T5/LabVIEW/hex-string-to-ASCII-hex-string/m-p/886078/highlight/true#M400462 Thanks in advance and I thank you for your kind help!

    coolmatthew wrote:

    What I want to do is actually this.

    You use too much a lot of code for all this. All you need is a concatenate strings, replace your entire and other loop. Same result.

    (See also)

  • the installation of itune + quick time I get a message that reads "no can access network location % data%\ app. »

    had 2 users on the computer with itunes on the desktop. main user itunes has stopped working, but the secondary users still worked. tried to update software with the latest version but get a message that reads "not access network location % data%\ app.

    This problem occurs because there is incorrect entries in the Shell folder of the user who is logged on to Microsoft Windows. When Windows Installer goes to the sale of Shell folder of the user who is logged on to the computer, Windows Installer cannot locate the correct entry. The solution is in http://support.microsoft.com/default.aspx/kb/886549.

    The steps to correct this problem involve editing the Windows registry.  Change the settings of the REGISTRY can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the REGISTRY settings configuration can be solved. Changes to these settings are at your own risk.  I suggest that you first back up your registry as follows: http://windows.microsoft.com/en-US/windows-vista/Back-up-the-registry way to create a point in http://www.howtogeek.com/howto/windows-vista/create-a-restore-point-for-windows-vistas-system-restore/ restoration system just to be on the safe side.

    Here are the steps to fix it.

    1. click on start, run, type regedit in the Open box, and then click OK.

    2. look for the following registry key:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell dossiers\

    3 remove the entries that show the path that is listed in the error message.

    886549 KB http://support.microsoft.com/default.aspx/kb/886549: Regedit open again. In the left pane, click User Shell Folders, point to new, click expandable string value, type the value name that you want to restore (AppData) and then press ENTER. Right click on this value, click change, type the value in the value data for the value name box, and then click OK. The value data must be: % USERPROFILE%\AppData\Roaming. Change it if necessary.

    Step 8 KB 886549 suggests that you also check the values in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders. However, by fixing my problem, I had not to change values in the registry key.  If this does not work without the full procedure, follow ALL the steps in the referenced article.

    I hope this helps.  If not, post back with the results of what you tried.  Rear post anyway so we will know what happened.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Reading/writing data to files in the directory "data" of the application

    I'm trying to write and then read a little data, and it does not work. The size of the file is back by '0' because I wrote the file:

    char* ptr = NULL;
    write_file("./data/test.txt", "testing!");
    read_file("./data/test.txt", &ptr);
    fprintf(stderr, "HERE: %s\n", ptr);
    
    void write_file(char* file_name, char* data)
    {
        FILE* file = fopen(file_name, "w");
    
        if (file == NULL)
        {
            fprintf(stderr, "Cannot write to file: %s\n", file_name);
        }
        else
        {
            fprintf(file, data);
        }
    
        close(file);
    }
    
    int read_file(char* file_name, char** data)
    {
        FILE* file = fopen(file_name, "r");
    
        if (file == NULL)
        {
            fprintf(stderr, "Cannot read from file: %s\n", file_name);
    
        }
        else
        {
            struct stat st;
            int rc = stat(file_name, &st);
    
            if (rc)
            {
                return -1;
            }
    
            long num_bytes = st.st_size;
    
            *data = malloc(num_bytes + 1);
    
            fread(*data, 1, num_bytes, file);
    
            (*data)[num_bytes] = NULL;
        }
    
        close(file);
    
        return 0;
    }
    

    Don't know what I'm doing wrong here...

    No idea, but a few tips:

    • Have you created the directory data?
    • Put an exit if the entry is successful, so you can be sure that your code is executed
    • Close the file only if opened successfully
    • Close the file with fclose. Close may not do and cause it is not emptied, the content can be empty. See http://www.cplusplus.com/reference/clibrary/cstdio/fopen/
    • Add a fflush (normally not used) after writing

Maybe you are looking for