Convert Agilent 34972A command to labview program

Hi,
I'm using labview to remote control Agilent 34972A. 
i need to read from one channel at a higher frequency,and write the result in a file. I think the following command would do that, but I couldn't make it work in labview program.
CONF:RES  70000,1(@101)
ROUTCAN(@101)
TRIG:COUN 1000
INIT
FETC
I attached the program that I'm using right now to get data from different channels with lower frequency.
Thanks.
Attachments:
VI.jpg ‏190 KB

It was suggested at http://forums.ni.com/t5/Signal-Conditioning/readin​g-from-one-channel-without-mechanical-opening-and-​... that you use the monitor function but I guess you didn't read that or bother to try.

Similar Messages

  • How to batch convert bmp files into jpg by dos command or c# program language?

    How to batch convert bmp files into jpg by dos command or c# program language?
    Many thanks for replying.

    Try
    GraphicsMagick.

  • Labview programming to convert weight measurement into mass flow

    Hello,
    I have continuous analog input measurement from weight scale. I want to convert the weight measurement to mass flow measurement.
    E.g.:
    1st minute weight measurement: 200kg
    2nd minute weight measurement: 300 kg
    3rd minute weight measurement: 350 kg
    and so on.
    I want to convert those weight into mass flow which is
    1st mass flow300-200)keg/1min = 100kg/min
    2nd mass flow: (350-300)kg/1 min = 50 kg/min
    and so on.
    So the weight and should be updated every minute, whatever the time value of while loop iteration.
    Can somebody give solution of this case with labview programming? (structure in block diagram)
    Thanks,
    Eko

    Hi Eko,
    is this some kind of homework?
    Well I suggest to use two shift registers to hold mass and time, then two subtract nodes to get the difference of current and old vlaue for both and finally a simple divide to get the mass flow...
    Look here to get the basics!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How do you convert labwindows programs to labview programs?

    Is it possible to convert a labWindows/CVI developed program into a LabView program?

    No. Maybe once NI releases the LabVIEW scripting tools, someone will create such a tool but for now, the only thing you can do is create a DLL from the CVI code and use the Call Library Function Node. This is done all the time with CVI/IVI instrument driver and there is a tool to do this type of conversion.

  • Using SQLplus command in LabView Database toolkit

    Hi ,
    I would like to ask something but before that this is my set up background
    OS          : Win 7,
    LabVIEW : 2012
    I have successfully connected with Oracle database using Labview Database toolkit.
    The problem now is since I need to query the data from the database,
    it will takes time for the labview to process it (since there is so much data in a specific table),
    let say that the table in database is "Serial Number", and the data that I want from that table is "SN123"
    if I query the data from that table, the labview will process it in a long time since it will not only give me "SN123" but also other data inside the "Serial Number" table.
    (Refer to attachment)
    but if in SQLplus, there is a command that can be execute to specifically call the "SN123" data,
    For the SQLplus, the steps to retrieve the data is like this:
    1. Key in the command to get the ID of the "SN123"
    2. Key in the command "SN123" ID to retrieve the data.
    I wonder if there is a way to put this command on labview database so it will be faster to retrieve the data.
    Attachments:
    Database.png ‏84 KB

    An  instrument driver written in Labview, is not the same as a instrument driver used by say Windows. A Labview instrument driver uses standard Labview functions to send SCPI commands to the instrument. You can learn a lot about the instrument by looking into the Labview instrument driver, and how it sends the commands to the instrument. But having the instrument programming manual at hands is also important.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • How to run labview program in debugging mode in windows 95 version

    Respected all,
    I am facing probelm while running probe.vi.
    I received this command "connection to acquisition board was not found" when i run labview program.
    I  am using labview 5.1, fieldpoint FP 1000, NI-DAQ 6.5, Field point explorer version 1.6, Measurement and Automation Explorer 1.0.1.
    I would kindly request you please help me how to run my program probe.vi in debugging mode in windows 95 version, so that i can locate where error occurs.
    Thanking You
    Yours faithfully
    M.Vijay

    Respected Norbert,
    Thank you very much to for your help.
    Norbert : Possible reasons are e.g. wrong IDs for measurement devices. If the error is connect to the FieldPoint, it is possible that it isn't configured correctly.
     I am using Field point explorer 1.6, The Field point instrument FP 1000 and RS-232 port is using. It is confirmed that the field point instrument is working properly by LED light indication test.
    Norbert: It sound like you are using DAQ devices (like PCI MIO 6952E) in the application. Are you sure that you select the correct device ID for this?
    I am asking you to know, If i using Labview and  Fieldpoint instrument FP 1000 to monitor my parameter interms of All, Channel 0, Channel 1, Channel 2, Channel 3, Channel 4, Channel 5, Channel 6, Channel 7 for my measurement.
    But now i need to solve the command connection to acquisition board was not found, The expert say this command is due to there was no AT-AO-10 Analog Output board was present in CPU.
    I do not find AT-AO-10 Analog Output board in my CPU, Previously the instrument was worked perfectly by other person who assembled everthing to measure temperature.
    The only aswer know send by previous person is if my task does not imply the use of a DAQ you probably have to locate where the DAQ driver is called and exclude it from the program. try to run the program in debugging mode so that you can locate where the error occurs.
    I do not know how to proceed his instruction. So i would kindly request you to please help me to solve my probelm.
    I also removed AT-AO-10 software from device manager >> Data Acquisition system >>  AT-AO-10 just now.
    I also find GPIB version 1.30, when i remove in add or remove program, it say that Error removing the GPIB.
    I am eagerly waiting for your help.
    Thanking You
    Yours faithfully
    M.vijay

  • I have some software problems of running matlab script node in the LabVIEW program.

    Hi there,
    I wrote a simple matlab code, like x= 1, y = x*2. Then I tried to put them into matlab script node in LabVIEW.
    However, when I ran the program, I couldn't run and Labiew show some error. 
    Then I tried the method talked before on this forum. Please see the following link.
    http://forums.ni.com/ni/board/message?board.id=Mat​hScript&thread.id=571
    I followed the instruction and open the "command prompt," type some commands then I could run the program, and simultaneously, the LabVIEW program open "Matlab command line window" and run my labview code. However, if I didn't use the command prompt, the  "matlab command window" will not be opened by running the labview program. It would just show some error. And even if I turn on the matlab program in advance, I still couldn't run the labview program.
    Is there any effecient way to deal with this problem without using "command prompt?" Because I try another PC with both matlab and labview installed on it, I "can" run my simple matlab script node on it, and it will open the matlab command line window automatically by running my code. Therefore, I thought there might be some software linking problems in the previous PC I used . Do you have any ideas?
    Thanks in advacne.  

    This board is for Mathscript, but you seem to have a matlab problem. You should probably post in the LabVIEW forum instead.
    What is your LabVIEW version? What is you matlab version?
    LabVIEW Champion . Do more with less code and in less time .

  • LabVIEW Program not running if i lock my PC (using an EXE made from LabVIEW)

    Hi everyone 
    I observed some odd behavior when I was running my program on a PC. I prepared an EXE for a LabVIEW program, this am running on another PC. Purpose of the program is to read a text file and follow the command given in that text document, we are accessing parallel port, calling third party EXEs in this. It is not running when I minimize the window or lock the PC. Do we have any property in VI properties for this?
     Please help me in this.
    Thanks
    Anil

    Hi Anil,
    Minimizing the application or locking Windows should not stop the executable from running. Can you reproduce this behavior on the development PC?  Also try to create an executable with a simple VI that counts the number of iteration and check for this behavior ?
    Tunde.

  • Desperate user need help. My GPIB instrument get stuck with my labview program frequently

    Hello to all labview users,
    i am a beginner in using labview. I am currently writting a labview program to automatically control a digital control rotator HD201e and a network analyzer 8720a to work with the anechoic chamber. The program receives an initial position, amount of increment and # of steps. My program will then ask the controller to rotate to the initial position and at the meantime, the program will monitor the position of the rotator to ensure the requested position is reached. After that, at the position, the program will ask the NA to perform a reading of the measurement. Once the reading is done, the program will ask the controller to rotate to the next position and does a reading of the measurement and so on.
    My program seems to be able to perform the tasks; however, the dig.controller part seems to get stuck around 50% of the time when running the program. Sometimes, even the controller receives the requested position (can be seen from the lcd screen of the controller), the rotator just simply would not rotate; also, sometimes, the controller just simply does not respond when sending the command of moving a position, as in the debug mode (the one with a lightbulb), i see that i got "ok" on all the blocks in the writing portion ofthe program, but the controller just doesnt seem to receive the position (as seen no new position received from the lcd screen) and the cursor on the lcd screen blinks weirdly, due to that problem, my program will then get stuck in an infinite loop.....
    Usually, that problem occurs after few positions have been reached.....
    so, when that happens, i have to stop my program and re-run it. that means the program will have to re-do the measurement that were read previously....
    sometimes i have to stop and re-run my program several times to get all the measurement of all the positions done.....so...that bug renders that program to be an unefficient program.
    I have been trying to resolve that bug for weeks...but no success....i have tried to put some wait time between each block....result is not much different...
    I have also tried putting "clear" block before and after the "write" block.....same problem.....
    I have heard that the serial GPIB "flush" block may help...but i tried..but it seems the controller doesnt recognize/accept flush....
    i have also tried using the "Visa open" and "Visa close" block to see if ithat reduces the stucking thing....but seems that the controller can still get stuck....
    i have also even tried using "lock asyn" and "unlock asyn" block...but didnt seem to work....
    Has anyone experienced such problem.? Is it a known problem with some gpib instrument?
    Is there any discrepancy or bugs in my program that i am unaware of that causes this problem?
    Any advice and or opinion would be greatly appreciated....
    PS: i attached the controller part of my program and the overall program
    desperate happyguy......
    Happy guy
    ~ currently final year undergraduate in Electrical Engr. Graduating soon! Yes!
    ~ currently looking for jobs : any position related to engineering, labview, programming, tech support would be great.
    ~ humber learner of LabVIEW lvl: beginner-intermediate
    Attachments:
    HD201_Controld.jpg ‏231 KB
    AChamber_Measurements_v1d.jpg ‏857 KB
    AChamber_Measurements_v1d3.jpg ‏463 KB

    hi xseadog
    i got what you meant about the gpib reference
    actually, that final frame works because the gpib reference is already done inside that subvi.
    but my problem doesnt arise from that. most of the time ive seen, it arises between the writing frame and the while loop frame. as i mentionned, sometimes. the controller just simply doesnt rotate even i can see the requested position display on the controller lcd screen; also sometimes, just the controller is stuck without acknowledging the write position command. but in labview...while in debug mode. it is shown ok on the block.
    Happy guy
    ~ currently final year undergraduate in Electrical Engr. Graduating soon! Yes!
    ~ currently looking for jobs : any position related to engineering, labview, programming, tech support would be great.
    ~ humber learner of LabVIEW lvl: beginner-intermediate
    Attachments:
    HD-201 RPosd.jpg ‏39 KB

  • Embedded Labview exe in a LabView program

    Is it possible to integrate an exisiting LabView *.exe file in another LabView vi or LabView project?
    The existing LabView *.exe does output some measurement data on the front panel, but I would need this data written e.g. to an Excel sheet. So I thought it must be possible to embed the LabView *.exe file into another LabView vi, that reads data from the *.exe file and writes the data into a data file.
    I don't have access to the original LabView program, before it was converted to an *.exe file and I don't know the settings used to built the *.exe.
    Toodles,
    Optimike

    Without testing I'm not sure if it is working.
    Maybe you should be able to open an application reference to the application. You should add the entries for VI Server in the configuration file to listen on a specific port. In LV 8.6.1 you can open the application with this port. With this reference you can try to open a VI reference for the VI from which you want the data. Use Get CTRL Value to read the data from the control.
    The application must be running before you can do this. For the final solution you must make any error handling on errors by the Open Application Reference primitive.
    The thing I'm not sure about is if this will work across different versions of LV.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Connecting hardware(c​onnected to myDAQ) to my labview program

    Hi,
    I have a labview program that will send an email (Gmail) when you click the " Button " in the program but 
    i need to modify it so that when i press a switch button at my hardware(connected to myDAQ)  the email will be sent ; meaning to replace the " Button " with my hardware 's switch button.
    Consulted with my lecturer and she says something like inputing logic 1 into the mydaq/labview to run the process.
    I have attached my program below.
    Any help is greatly appreciated!
    *I'm using NI LabVIEW 2013 SP1 (32-bit)
    P.S : i know this is the 2nd thread i created but i'm not sure how to close that one(i have already selected a solution) 
    Attachments:
    Basic Sending email program.vi ‏341 KB

    In order to use your signal input instead of your button, you need to read in the signal as a boolean. Digital inputs are already in the form of booleans (just like how your digital outs are set up), but if you are pulling in the trigger through your analog inputs, you'll just have to add some threshold logic to convert from an analog value to a boolean.
    If you have digital inputs, just set it up the same way you have that DAQ Assistant in there already reading in analog inputs and wire the boolean trigger to the same case structure as your button.
    Your teacher probably means channel 1 is your trigger input when she says "logic 1". This just means if you're pulling in multiple channels, that you use channel 1 as your trigger (which is actually the second channel becauce indices in LabVIEW are base zero).
    Actually, after thinking about it, maybe your teacher is pointing out that you need to add logic to read in a value of 1 as True? This makes me think you're reading an analog input as your trigger and you need to use logic so that a value of 1 is True.
    James
    LabVIEW Professional 2014

  • Run a cmd command in LabVIEW with parameters

    I have an executable program, for example myprogram.exe, located in "C:\Documents and Settings\myname\myprogram.exe" (I use windows xp 32 bit)
    When I run the program (by running cmd and type "myprogram.exe > to_text.txt" on the command line), the program will print out the result to that text file.
    But when I try to run the whole thing on LabVIEW, I can't manage to do so. LabVIEW only supports using the "Run Command" of Windows, not the cmd. (using the SystemExec vi)
    So how can I run "myprogram.txt > to_text.txt" on LabVIEW as I run it in cmd? Moreover, how can I send the break event (by pressing Ctrl+C in the cmd) by LabVIEW to stop the program?
    With my appreciations!

    I made this a while ago and haven't tested it too much but it should do what you want.  Provide the application path, then the switches in the array.  It does work with built in commands like dir and copy.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
    Attachments:
    Execute Command Line With Switches.vi ‏24 KB

  • I want to convert my source code in Labview 5.1 to labview 2011

    HI
    I want to convert a labview program which is in labview 5.1  to labview 2011 version
    i am not able to open the program in the 5.1 version.
    if there is no way to convert it ,then can you tell me if 5.1 version is avialable online that is compatible with the windows7 .?
    thanks
    Attachments:
    plant.vi ‏31 KB
    PID.vi ‏104 KB
    integration3.vi ‏18 KB

    Post your request in this Version conversion Board
    The best solution is the one you find it by yourself

  • Password for labview program

    Hi all,
    I am developing a labview program for a high
    power microwave device. The final program will
    be running stand alone on a pc attached to the
    microwave device in a laboratory. To ensure
    safety, I am wondering if I can set up a password
    to the labview program at start up so only
    authorised people can use it? Or if there is
    other way to do that. Any comment will be
    greatly appreciated.
    Thanks.
    Regards
    Hank
    Sent via Deja.com
    http://www.deja.com/

    In article <[email protected]>,
    [email protected] wrote:
    > Hi all,
    >
    > I am developing a labview program for a high
    > power microwave device. The final program will
    > be running stand alone on a pc attached to the
    > microwave device in a laboratory. To ensure
    > safety, I am wondering if I can set up a password
    > to the labview program at start up so only
    > authorised people can use it? Or if there is
    > other way to do that. Any comment will be
    > greatly appreciated.
    >
    > Thanks.
    >
    > Regards
    >
    > Hank
    >
    > Sent via Deja.com
    > http://www.deja.com/
    I am pretty sure that you can do that by using a case loop outside of
    your main program. You can set it up so that user(s) will have to
    enter a string (which would be password) before he/she can get to the
    front panel of the main program.
    Within this vi, you can have an array of strings such that users can be
    given different passwords (or level of authority) for more security.
    After the user enters the password, you can compare the user input by
    using equal function in the comparison palette (make sure the password
    list is case sensitive or stuff like that or you'll have to convert all
    the user input string to either upper or lower case if you want to save
    some trouble). If the result of comparison is true, then they can get
    into the main program, or else the program will quit.
    You can also put in looping structure to make it more fancy such that
    each user can be given say 3 chances to enter the correct password...
    If you want to go really fancy, you could also try to put in a data
    file that stores all the passwords in binary format (requires a little
    conversion, of course) in a directory of the target machine that you
    know exist (say WINDOWS or WINNT), and include the data file as part of
    your instalation disk content, point the installation destination to
    that directory. In your password program, find the target machine
    operating system and then look for the file from there.
    Hope it helps. If you have any questions, please e-mail me at
    [email protected], and I'll try to e-mail you a copy of my code.
    Sent via Deja.com
    http://www.deja.com/

  • Goto command in LabVIEW

    Hi
    I was wondering if there's anything like a "goto" command in labview. For example, if I am in a for loop (and the for loop hasn't reached it's number of time to loop yet) and need to exit the loop and jump to somewhere else in a code because I encounter some error condition. I know I can use a while loop for this if there isn't any goto command, but that's my last choice because it's kinda complicated for a nested loop with many procedures.
    Thanks

    I too would like to find a way to mimic a "goto" function. 
    In my program, I have a VI that determines if temperature (T1) is stable to within a certain limit for a certain amount of time. After I've found that it's stable, I need to check if another temperature (T2) is within a certain range of a set temp. If it's not, I need to raise T1 so that T2 will also rise to be within range. Then I need to use the aforementioned VI again to check when T1 is stable again. I wish I could just do something like loop the error cluster wire back on itself, making a sort of "goto" command. Otherwise I need to make a very complicated nested While Loop structure. Perhaps I can figure something out with an Event List. Anyone got any suggestions?

Maybe you are looking for