Convert VB2005 read routine file for Labview

Hello everyone,

I am very NEW to Labview (using Labview 2010) and I am trying to convert a Net in Visual Basic 2005 dot program to format of Labview.

My question to the group is, I would like to convert the VB code below in Labview.  This is one of the many readings of text file which makes my VB program.

' * Read data from frequency of files and convert them to Double *.
List = 0
oRead = IO. File.OpenText("C:\TPS_Data\PA_Freq_List.txt")
All in oRead.Peek <> -1
LineIn = oRead.ReadLine)
TFL (List) = LineIn
TestFreq (List) = Convert.ToDouble (TFL (List))
List = + 1
End while
oRead.Close)

These files are calibration/offset and rate data for my RF ATE test equipment.  Once the operator selects an amplifier to test, the program loads into memory these specific files in amplifier.  These variables they are whole, double or whatever store them in a table under (ex: TestFreq (0), TestFreq (1), etc.).  Each frequency has its own offset and calibration data which are sent to the test apparatus by each tested frequency.  This line of code is possible, or do I have to find another way to do this?  If so, how to store and retrieve these data at any time during the test.

I appreciate all of the information provided by this group.  Thank you in advance.

Kind regards

Scott

Greetings smercurio_fc,

Thank you for your recent reply.

Between your most recent response and another post that I fell today by searching on google, I was able to accomplish what I wanted to do.  The basic function was to read the text file, which is a list of test frequencies and move a generator of RF signals at each frequency in the list.

Thanks again for your time.

Kind regards

Scott

Tags: NI Software

Similar Questions

  • can I create a DLL file for labview that has DLL library with inside?

    Hello everyone,

    I am developing an application for the cards PCI devicenet in labview (beginner to labview) environment.  Is there a DLL file for the PCI card from the provider. But it's too complicated for a beginner to call each function in the DLL of labview. Therefore, I'm trying to re - use a VC ++ program (working properly) that calls some sellers DLL library functions.    To do this, I created the DLL file which includes all headers and libraries the provider DLL, as indicated in the attached figure. But I couln can't see the effect on the device. is it possible to create a DLL file for labview that has DLL library with inside? If this is not the case, how can I implement the program shown in figure?

    I would like to wish a huge as to advance.

    It is not something I have a lot of experience in so I don't know all the details of the restrictions or requirements etc - but it is certainly possible to create wrappers for the dll and then use them in LabVIEW - this is sometimes necessary to convert some native types/data structures in C/C++ into something that you can switch to your other DLL LabVIEW.

    There is a link here: http://digital.ni.com/public.nsf/allkb/06ECDC689DDA0F3D862574440074CD95

  • LabVIEW: The file is not a resource file. The file is not a valid file for LabVIEW

    Hello.

    I used labview to make an assignment of the University. As part of the im supposed to transfer the .vi file to my teacher, but all .vi files sent using the e-mail system are corrupt. When I try to open mine it gives this error

    LabVIEW: The file is not a resource file. The file is not a valid file for LabVIEW

    Unfortunately, I also lost my backup as I was working on a lab computer and didn't upload my files on the storage server.

    So I was wondering if someone can help out me. Thank you very much.

    The problem is that the email system dealt with the file as a text file. All thesequences have been replaced as . You can see this opening of VI in a hexeditor. Each VI begins with "RSRC".". Your VI begins with "RSRC.

    I replaced the two occurrences of "RSRC"with "RSRC"."and he opened in LV 8.6. Missing just a few controls and subVIs.

    I did this on Windows.

  • Error when you try to play audio files: Windows Media Player has encountered a problem reading the file. for further assistance, click web help

    8007007E tips

    There is also another number which is C00D11B1, but both have to do with the lock of the music in windows media player, the message said:-"Windows media player has encountered a problem reading the file; for help click web help. ""- and that of all, but when ' web help ' click on the show numbers that are 8007007E and C00D11B1 and average music, not Windows media player, y at - it someone with the same problem that has been able to solve? Thank you, let me know, if you don't mind, thank you again.

    I suggest re-download you WMP 11 from the following link and install it on top of the current installation:

    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=1d224714-e238-4E45-8668-5166114010ca

    Who help me?

    If this isn't the case, please report the file type (extension) of the file you are trying to play. For instructions on how to make Windows Explorer shows the file types, see this link:

    http://www.windowsreference.com/Windows-XP/how-to-view-all-file-extensions-in-Windows-XP

  • Reading Configuration files using Labview RT in a Compact RIO

    Hello

    I am very new to Labview RT/Compact RIO development platform and happen to have a question. I will develop an application in Labview RT / FPGA that will make several simulations. However some these simulations can produce different results depending on the configuration settings. Our systems generally run in a Windows application, were there is a configuration (usually in XML format) file that the application reads and analyzes the given parameters. I was wondering if there is something similar, that I can do it, in which I have a configuration file that can be read before my Labview RT/FPGA application initialization, to change the simulation.

    Thank you

    Mario

    Hi Mario,.

    That's right, there are screws for the files .ini on real-time targets.

  • How can I remove a file for LabVIEW does not keep a copy in memory?

    After I use the command "Delete" files Advanced features, and then create a new file with the same name, LabVIEW must have the original in memory because the file continues to grow and is not what I want to do.  I tried the deallocation "request" for the control of the Application--> control of memory, but it does not work either.

    Your help is appreciated and thank you.

    Vince

    I never saw a 4 d picture in before real employment.

    You're not erase your data.  In the second excerpt that you posted, you continually add new 3D you berries table 4 d.  You manage this 4 d with the feedback node table.

    What you need to do, when you want to delete this table 4 d, for wire table 4 d vacuum in this feedback node rather than the result of the function Array construct.  You can use a function of selection or a structure deal to choose between the results on the cable and an empty table 4 d constant according to some Boolean condition allows you to determine the table needs to be emptied.

  • Read/write file in Unicode (UTF-16)

    Hi, I have a problem to write a file in Unicode (UTF-16)

    I have to read a file with LabView, change some settings and write the new data in the same file. The file uses Unicode UTF-16.

    I downloaded a few library here: https://decibel.ni.com/content/docs/DOC-10153

    I can read the file, convert the data to ASCII/UNI/UNI and then write the file. But when I open the new file with an editor like Notepad ++ there is some unexpected characters at the end of the line.

    Even read the file and write exactly the same doesn' data not work.

    I've attached an example.

    Thanks for you the kind of support.

    Right click on your functions read and write text files.  There is an option to "Convert End Of Line".  Who turned off the two functions.

    As a side not, you need not close file functions.  The functions Read and Write Text File will close the file that reference output file is not connected.

  • How to split audio data in images after reading a file

    Hi im a student of final year done my project in speech recognition using labview. could someone help me with how to split an audio data in image file for further processing.

    You could read wav files in LabVIEW using these VI: http://zone.ni.com/reference/en-XX/help/371361H-01/lvpict/sfilevis/ once you've read, divide the waveform in the picture of your choice.

    Before you return to the report on not enough memory, please read this: http://forums.ni.com/t5/LabVIEW/not-enough-memory-to-plot-wav-file/m-p/754592

    Search results: http://search.ni.com/nisearch/app/main/p/bot/no/ap/global/lang/en/pg/1/ps/30/q/wav%20file/

  • Read/write file binary change greater than 128 bytes.

    Hi all, maybe a strange question, but I'm scratching my head on this one. There is undocumented behavior in the function of read/write binary file, where U8 a value greater than 128/0 x 80 get automatically converted to 0x3F value?

    I try to use LabVIEW to generate a binary file custom that we'll load in an EEPROM, so all data in the binary file is stored as values of U8. I have a "template" file, and eventually I'll take the logic implemented to replace the fields with the data from the true value. However, I am struck by the anomaly that when I just read the file in LabVIEW and then réécrirait, all the values 0x80 and more are truncated to 0x3F value. Has anyone seen this before, and is there a solution?

    I noticed writing the value 0 x 80 directly to one generates a binary file (such as a U8) 0 x 90, 0 x 70 being written in the binary file. It is also rather undesirable, as it adds additional bytes in the bytestream, and the bytes of EEPROM must be in exact locations.

    Join your data file.

    This program is to give the images below?  Are you sure that LabVIEW is to write the bytes differently?  I really doubt that.

  • You want to read binary files in some parts of the 500th row in the 5 000th row.

    I have files of 200 MB of 1000561 lines binary data and 32 columns when I read the file and sequentially conspire full memory of the generated message.

    Now, I want to read the file in pieces as the 500th row 5,000th row with all the columns and it draw in the graph.

    I tried to develop logic using functions file advanced set file position and the binary file reading block, but still not get the sollution.

    Please, help me to solve this problem.

    Thanks in advance...

    Hi ospl,.

    To read a specific part of the binary, I suggest to set the file position where you want to read the data and specify how many blocks you must read binary file for reading binary file.VI

    for example, if you write table 2D binary file, and then mention you data type this 2D chart and make your account (5000-500). Then together, you produce position. If you have 32 DBL data type and column then it is 256 to the second row and 256 * 500 for line 501th. Use this number as input into your position.vi file get.

    I hope you find you way through this.

  • Get an error 'he cannot read the file' in Windows media player after the recent bios update

    * Original title: windows media player cannot play the files after the recent bios update

    I installed the latest update of the bios on my Hewlett Packard Windows 7 and now windows media player comes up with an error message saying that it cannot read the file for each file that he used to play.  Is it possible to uninstall and reinstall windows media player separately from windows?  or y at - it a file update or repair that I can download to make it work again.  I don't get a codec error.

    Hello

    1. What is the full error message?

    2. What is the number of KB of the update of the Bios?

    Please follow the steps below and get back to us with the results.

    Method 1: Open the troubleshooting Windows Media Player settings Troubleshooter

    http://Windows.Microsoft.com/is-is/Windows7/open-the-Windows-Media-Player-settings-Troubleshooter

    Method 2: Uninstall and reinstall Windows Media Player.

    Step 1: Uninstall Windows Media Player.

    a. go to start and in the search type 'Turn Windows has or not'.
    b. click on "Turn Windows features on or off".
    c. find multimedia and uncheck the brand in the face of Windows Media Player.
    d. restart the computer

    Step 2: Reinstall Windows Media Player.

    a. go to start and in the search type 'Turn Windows has or not'.
    b. click on "Turn Windows features on or off".
    c. find the multimedia functions and place a check mark in front of Windows Media Player.
    d. restart the computer and check with the question.

    Turn on or off Windows features

    http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-features-on-or-off

    I would say that you can download the last packs of codec for Windows Media Player to the Internet and check out them. Make a search using your favorite search engine.

    Warning: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Let us know if it helps!

  • How to convert the file with VI for LabView .lib to CVI?

    Hello

    I have the .lib file for my lock in the amplifier. The lib file is written for labView and already contains a visual interface (like ActiveX). The point is that I need this file for programming in CVI (8.5). How can I convert a LabView ICB .lib?

    Thank you.

    Denis.

    You said that you had a .lib file and in fact you have an llb file. There is a huge difference between an "i" (eye) and a 'l' (ell).

    There is a LabVIEW Instrument Driver Export Wizard but it's only for new pilots of project lifestyle and you need LabVIEW. There is no other way to convert a LabVIEW driver to a driver of the CVI. If the LabVIEW driver uses methods and properties of the ActiveX, you will need to write the same thing in CVI.

  • How to read the EDF of LabVIEW files?

    Hi all.

    I'm reading a file (signals from the brain, EEG) FED in LabVIEW but I can't understand how do. I would like to respond to this challenge without converting the file EDF before the treatment.

    Is there anyone out there who can help me? I'm using LabVIEW 2010

    Kind regards

    Hi all.

    Thank you for your help. It finally works now!

    I tried uninstalled and reinstalled the file use of edf. And now it works fine, so the FED + and EDF.

    -Clausny.

  • Convert file communication labview vi file

    How convert on design communication Labview in Labview .vi file and vice versa?

    Hello Joseph,.

    Thanks for joining the community!

    There is a Code Conversion utility that converts the screws in this.

    http://www.NI.com/download/code-conversion-utility-for-LabVIEW-communications-1.0/5093/en/

    This is not a conversion opporuntiy. We recommend that you test your code after conversion to confirm its operation. This is because currently LabVIEW Communications support all LabVIEW features, such as event Structures.

    Unfortunately, there is no method to convert this screw is because the LabVIEW Communications has a different set of functions that are not supported in LabVIEW, such as the diagram of multiple rates.

    Kind regards

  • How to read the date and time of a file by labview information

    How to read the date and time of a file by labview information? for example, time created and updated time.

    The similar question had already spoken here (this is the old thread but still seems topical):

    http://forums.NI.com/T5/LabVIEW/file-date-created/TD-p/109836

Maybe you are looking for

  • M300 update Bios v1.2 or v1.3?

    I was just downloading a driver for "Call display for external monitor" for my M300 (http://tinyurl.com/7ble8) that mentions this part of the correct action is updated to v1.30 BIOS. However, the update to the newest BIOS listed on the page files dow

  • Safari fake gel update Flash Player

    When I try to open Safari it keeps opening on a blank page with a notice stating that "the latest version of Flash Player is ready to install" and has an OK button to push. There is also a Web site listed as 5softwaredr (dot com). I can't spent and I

  • Re: Satellite L510 - shortcut keyboard does not work on Windows 7

    Hello I have problem with my Satellite L510 + windows 7.FN + F8 key may not work. Can someone help me? Thank you

  • My 5 d mrk ii does not illuminate

    Hello I turned on the camera of my brother, and now it won't turn. When I remove the battery and put it back in the first times, the red flash. Now, he does not blink. I'm sure that the batteries are full. I read that if you remove the batteries, clo

  • CC Lightroom RAW support

    HelloWhat version of lightroom is the CC version?I have a Nikon D3400, who needs of 6.7 Lightroom and camera RAW 9.7. I'll be able to use my RAW files in the CC version, and if not you have no idea how long it will be until I can...?Thank you.