Need multiplt file select in LabVIEW 6.1
I would like to select multiplt files at a time using shift key. I upgraded to LabVIEW 6.1 this feature is not available.
We have an example program in our database that does this:
Multiple File Selection Dialog Box
You can either select file(s) (select multiple by holding down the shift key while selecting) and click on the Add button to add them to your selected files list, or you can double click any individual file to add it.
Ray Kong
Applications Engineer
National Instruments
Similar Messages
-
Close excel programmatically after user cancels file selection
Greetings all. I apologize but I incorrectly posted this question on the wrong board originally so am posting it again here. I have a VI that I wrote with some help from this site that reads in as many user selected Flat Data Files as desired into Excel. The VI opens Excel, places each Flat Data File on one row and ends, allowing the user to manipulate the Excel data as desired. I have tested it without problems with up to 100 files at a time. The VI minimizes Excel at startup so that it will not block the Select File(s) dialogue. MY problem is this: If the user cancels the file selection, it returns an error and leaves Excel open. I understand how to handle the error, but have been unable to make Excel close automatically if the action is canceled. I have tried to invoke the Close without saving node with no luck... probably because I don't understand how to apply it. Ideally, I want to take the error number to a case statement, and if it is anything other than zero (0), meaning no error, I want Excel to close down. This will eventually be an executable so I need to make this right. Can anybody help? I have attached a zip file with the VI's and some sample Flat Data Files.
Thanks
Attachments:
RTS Flat File Data.zip 103 KBIf you want anything to run after an error you must clear the error status boolean from the error cluster. To do this use the bundle by name and set the status value to FALSE, take this output cluster into the function you wish to run.
Andrew Alford
Production Test Engineering Technologist
Sustainable Energy Technologies
www.sustainableenergy.com -
Right, so I have a windowsform with lots of Textboxes, where the user can type in Information, and then hit "Save", once its saved it goes into a sortof XML Format
<?xml version="1.0" encoding="utf-8"?>
<!--Database-->
<Case>
<Person>l<Driver></Driver><License-Holder></License-Holder><Address></Address><Phone></Phone><Date-of-Birth></Date-of-Birth><Registration></Registration>
Like that.
Now, on my Startup Form (The main form) there is a Listview that I gave the name Objectlist1. This list displays ANY file located in a specific folder on my computer. This is also where the Saved files appear.
The list also updates every 5th second so after you save it appears quickly.
Now, the Files are saved using the content or Value of the first Textbox:
Dim XmlWrt As XmlWriter = XmlWriter.Create("C:\Users\USER\Desktop\TESTFOLDER\" + Firsttextbox.Text, settings)
So it appears in the folder and on the list with the value inserted in the first Textbox.
My problem comes when I want to load this back (Or reverse the function if you will)
Where I can go to the Objectlist1/Listview, either doubleclick a file or Mark a file, and hit my button "Retrieve"
I want the Form where you could input all the values to show - which it does
And the information from the XML/File saved to appear where it once was typed or inserted.
Here is an example of the code used to save the values from the Textboxes;
Private Sub Savebutton_Click(sender As Object, e As EventArgs) Handles Savebutton.Click
If IO.File.Exists(Pholderbox.Text) = False Then
Dim settings As New XmlWriterSettings()
settings.Indent = True
Dim XmlWrt As XmlWriter = XmlWriter.Create("C:\Users\USER\Desktop\TESTFOLDER\" + Pholderbox.Text, settings)
With XmlWrt
' Write the Xml declaration.
.WriteStartDocument()
' CLIENT
' Write a comment.
.WriteComment("Database")
' Write the root element.
.WriteStartElement("Case")
' Start our first person.
.WriteStartElement("Person")
.WriteString(Textbox1.Text)
' The person nodes.
.WriteStartElement("Driver")
.WriteString(Textbox2.Text)
.WriteEndElement()
I've tried multiple codesamples but they all give either "XML Not found" or such Overloads.
This is the current code I used when trying to make it work
Private Function ReadSettingsXML(ByVal path As String) As MySettings # On Debug It marks here and tells me it wasn't found.
Dim thisSettingsInfo As New MySettings
If My.Computer.FileSystem.FileExists(Objectlist1.SelectedItems.ToString) Then
Dim settingsInfo = XElement.Load(Objectlist1.SelectedItems.ToString)
If settingsInfo IsNot Nothing Then
For Each mainGroup As XElement In settingsInfo.Elements
If mainGroup.Name = "<Database>" AndAlso mainGroup.HasElements Then
For Each subGroup As XElement In mainGroup.Elements
If subGroup.Name = "<Person>" Then
thisSettingsInfo.Textbox1 = subGroup.Value
ElseIf subGroup.Name = "<Driver>" Then
thisSettingsInfo.Textbox2 = subGroup.Value
ElseIf subGroup.Name = "<Address>" Then
thisSettingsInfo.Textbox3 = subGroup.Value
End If
Next
End If
Next
Else
thisSettingsInfo = Nothing
Throw New Exception("The settings XML file is corrupt and cannot be read.")
End If
Else
thisSettingsInfo = Nothing
Throw New Exception("The settings XML file could not be located.")
End If
Return thisSettingsInfo
End Function
Private Sub LoadXML_Click(sender As Object, e As EventArgs) Handles LoadXML.Click
Dim settings As New MySettings
settings = ReadSettingsXML(Objectlist1.SelectedItems.ToString)
If settings IsNot Nothing Then
Dim sb As New System.Text.StringBuilder
With settings
Caseworker.Textbox1.Text = .Person
Caseworker.Textbox2.Text = .Driver
Caseworker.Textbox3.Text = .Address
End With
End If
End Sub
Also, the "Caseworker" is the form where all the textboxes are located.
Been stuck on this for two working days, so any help is highly appreciated
Codesamples are also highly welcome so I can see what the heck you did and find and answer to my problems.I found a code that might be close to what I'm looking, but as of this code used here, it looks for a static document that already exist and is located in the code.
See this one here, checks for the XML file, and since I can't link one program to 1 file, when its gonna have and use 100's of files.
If (IO.File.Exists("MyXML.xml")) Then
Same here with the static document.
Dim document As XmlReader = New XmlTextReader("MyXML.xml")
While (document.Read())
Dim type = document.NodeType
'if node type was element
If (type = XmlNodeType.Element) Then
If (document.Name = "FirstName") Then
TextBox1.Text = document.ReadInnerXml.ToString()
End If
If (document.Name = "LastName") Then
TextBox2.Text = document.ReadInnerXml.ToString()
End If
End If
End While
Am I at least close here, people?
Can anyone help with the now critical issue I got?
I basically need to change these two;
If (IO.File.Exists("MyXML.xml")) Then
Same here with the static document.
Dim document As XmlReader = New XmlTextReader("MyXML.xml")
To whatever value, so they read from the file SELECTED in my Listview
Cos the program saves files according to the info inserted in textboxes, so it can have whatever name you can think of, I need the program to "find and load" that file, once its selected, and then once I hit Retrieve or LOAD or whatever button, it
injects the info from the File to the correct Textboxes.
And I think this will work to get the info in the right boxes;
If (document.Name = "FirstName") Then
TextBox1.Text = document.ReadInnerXml.ToString()
End If
If (document.Name = "LastName") Then
TextBox2.Text = document.ReadInnerXml.ToString()
Any good advise? I'm stranded here. -
How do i get the path of the file selected for opening in JFileChooser
hi
I need to get the path of the file selected for opening or saving in the JFileChooser dialog box.Is there any method available.if not how do i get that?
Thanks and Regards
Saminathan.don't know if its the best/only way, but you could use the getSelectedFile() method in JFileChooser which returns a file and then use the getAbsolutePath() file method
-
How to read a binary file written in LabVIEW 6.1 using VB ?
How to read a file saved in binay forrmat in LabVIEW 6.1 platform through VB.
Is there any code ?
ThanksHello,
LabVIEW files stored in binary can take on just about any format that
you choose, so there will not be a single piece of code that will give
you what you are looking for. You can use VB's standard file
operation functions to read in a binary file created by LabVIEW, just
as you would read in any other binary file. See this page
on Microsoft's web site for more information on the binary file read
operation. How you stored the data in the binary file will
determine how you need to extract it from the byte array. So, if
the first element stored in the file was a 32-bit integer, you could
extract an int from the byte stream to recover that piece of your
data. You would need to know in advance how the file was
formatted in order to successfully retrieve the information. If
you need a reference for the VB functions, the microsoft link above
will get you to some good information.
Cheers,
Matt Pollock
National Instruments -
I just downloaded trial version -- don't see iPhoto library in Aperture and need to import selected photos to edit, not entire i Photo library! I read manual and it says:
Browsing and Selecting Images in Your iPhoto Library
You use the Aperture iPhoto Browser to review iPhoto images and import specific images into the Aperture library. The iPhoto Browser gives you a handy way of looking for certain images without having to import your entire iPhoto library.
So, where do I review the iPhoto images...there is nothing in there that says "iPhoto Library" Everything I see pertains to Aperture Library which of course is empty since I haven't imported (or dragged) any photos in there yet.
Also is tech support available for Aperture? I have Apple Extended Support and I sure would love it if I had individual help. I have a deadline --3 days to edit 300 photos and I'm a complete amateur. iPhoto doesn't have the capability to erase parts of a face (I need to contour the neck of a mannequin to make it proportionate to the separate head I put on top of it. I'm sure Aperture must have a tool to help me do that! At least I hope so.where do I review the iPhoto images
File -> Import -> Show iPhoto Browser
I have a deadline --3 days to edit 300 photos and I'm a complete amateur. iPhoto doesn't have the capability to erase parts of a face (I need to contour the neck of a mannequin to make it proportionate to the separate head I put on top of it. I'm sure Aperture must have a tool to help me do that!
Sounds more like a job for Photoshop to me
if I decide to import entire iPhoto library into Aperture will it delete my iPhoto library?
No.
Regards
TD -
DAQMX vi files missing in Labview 2013
I try to open this file slinger-logger.vi [see attachment], but I can't open it, because it is missing files such as DAQmx Clear task.vi
I already tried to install several versions of DAQmx (14.1, 9.9, 9.4):
http://digital.ni.com/public.nsf/allkb/B0D5630C0A50D5C6862578E800459248
But I couldn't get the file working without those missing vi errors. Can anyone get this file working in Labview 2013? Or Labview 2012?
Attachments:
Slinger-logger.vi 70 KBkihans wrote:
I already tried to install several versions of DAQmx (14.1, 9.9, 9.4):
http://digital.ni.com/public.nsf/allkb/B0D5630C0A50D5C6862578E800459248
But I couldn't get the file working without those missing vi errors. Can anyone get this file working in Labview 2013? Or Labview 2012?
Why do you install random version of DAQmx, especially since 9.4 does not even support the LabVIEW 2013 or 2012 versions you mentioned. You even show the link outlining that! Pick the neswest one only!
Tell us exactly what you did:
Did you install DAQmx after installing LabVIEW and did you select support for the installed LabVIEW version?
Did you reboot after installation?
LabVIEW Champion . Do more with less code and in less time . -
Need a File Parameter with Browse Functionality in ABAP
Hi
I Need a File Parameter with Browse Functionality in ABAP.
Can anyone help me with logic.
Regards,
SreeCheck below code:
PARAMETERS: p_file TYPE localfile.
DATA: l_path TYPE string,
l_fpath TYPE string,
l_fname TYPE string.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL METHOD cl_gui_frontend_services=>file_save_dialog
EXPORTING
window_title = 'Save to...'
default_extension = '.txt'
initial_directory = 'C:\'
CHANGING
filename = l_fname
path = l_path
fullpath = l_fpath
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
not_supported_by_gui = 3
OTHERS = 4.
IF sy-subrc EQ 0.
MOVE l_fpath TO p_file.
ENDIF. -
rying to install photoshop elements 12 File Archive part of adobe premiere 12 is missing. You need all files in the same folder
It is actually a link from Tech Soup to a special link on Adobe. But no
chance to put in my serial number get that error message after I download
the exe. Tried to copy page I would select the correct file
Welcome TechSoup Customer of TechSoup Global!
Product Download
Adobe Photoshop Elements and Premiere Elements 12.0 for Windows (English)
* <javascript:void(0)> Files
<javascript:itralib_popup('dload_serialNum?item_key=5001111&plne=101791&cert
Num=135338281','info','560','400')> PAC, Serial Numbers & Credential Files
<https://adobe.subscribenet.com/control/adbe/certdlog?plne=101791&item_key=5
001111> Download Log
<https://adobe.subscribenet.com/control/adbe/certnotes?plne=101791&item_key=
5001111> Notes
* <javascript:itralib_popup('downloadpagehelp','EULA','495','600')>
Download Help
Adobe recommends you use the Akamai Download Manager for large files. You
can enable the download manager by clicking on the Download Preferences link
to the left. If you are using Microsoft Internet Explorer as your browser,
then the HTTP option will not work for files larger than 4GB due to the
browsers download size limit.
If there are multiple files for your products, please be sure to download
ALL files prior to attempting to install.
The software you are about to download is subject to export control laws and
regulations. By downloading this software, you agree that you will not
knowingly, without prior written authorization from the competent government
authorities, export or reexport - directly or indirectly - any software
downloaded from this website to any prohibited destination, end-user, or
end-use.
Note: All Adobe products require a serial number for installation. If you
are having difficulty with the serial number, please
<https://adobe.subscribenet.com/control/adbe/manualsupport> contact us.
* 6 Files
Top of Form
Select All
<https://adobe.subscribenet.com/control/adbe/download?element=5001111&orderB
y=ORDER_BY_DESCRIPTION&ascending=true> File Description
<https://adobe.subscribenet.com/control/adbe/download?element=5001111&orderB
y=ORDER_BY_FILE_SIZE&ascending=true> File Size
<https://adobe.subscribenet.com/control/adbe/download?element=5001111&orderB
y=ORDER_BY_FILE_NAME&ascending=true> File Name
The download limit for this file has been reached
<https://adobe.subscribenet.com/control/adbe/download?element=5001111>
Expand All / Collapse All
Adobe Photoshop Elements 12.0 for Windows 32 bit Installer (English, German,
French, Japanese)
1.5 MB
<https://adobe.subscribenet.com/control/adbe/download?element=5001111>
PhotoshopElements_12_WWEFDJ.exe
The download limit for this file has been reached
<https://adobe.subscribenet.com/control/adbe/download?element=5001111>
Expand All / Collapse All
Adobe Photoshop Elements 12.0 for Windows 32 bit Installer Package (English,
German, French, Japanese)
1.1 GB
<https://adobe.subscribenet.com/control/adbe/download?element=5001111>
PhotoshopElements_12_WWEFDJ.7z
The download limit for this file has been reached
<https://adobe.subscribenet.com/control/adbe/download?element=5001111>
Expand All / Collapse All
Adobe Premiere Elements 12.0 for Windows 32 bit Installer (English, German,
French, Japanese)
1.5 MB
<https://adobe.subscribenet.com/control/adbe/download?element=5001111>
PremiereElements_12_WWEFDJ_win32.exe
The download limit for this file has been reached
<https://adobe.subscribenet.com/control/adbe/download?element=5001111>
Expand All / Collapse All
Adobe Premiere Elements 12.0 for Windows 32 bit Installer Package (English,
German, French, Japanese)
1.1 GB
<https://adobe.subscribenet.com/control/adbe/download?element=5001111>
PremiereElements_12_WWEFDJ_win32.7z
The download limit for this file has been reached
<https://adobe.subscribenet.com/control/adbe/download?element=5001111>
Expand All / Collapse All
Adobe Premiere Elements 12.0 for Windows 64 bit Installer (English, German,
French, Japanese)
1.5 MB
<https://adobe.subscribenet.com/control/adbe/download?element=5001111>
PremiereElements_12_WWEFDJ_win64.exe
The download limit for this file has been reached
<https://adobe.subscribenet.com/control/adbe/download?element=5001111>
Expand All / Collapse All
Adobe Premiere Elements 12.0 for Windows 64 bit Installer Package (English,
German, French, Japanese)
1.2 GB
<https://adobe.subscribenet.com/control/adbe/download?element=5001111>
PremiereElements_12_WWEFDJ_win64.7z
Bottom of Form -
Vision Builder AI import inspection error "Invalid Inspection file selected."
I am attempting to import an inspection into another and get an error
Open Inspection:
-Invalid inspection file selected
I have been able to successfully import other inspections in the past but for some unknown reason these two inspections that I am trying to merge are having trouble..
Thank you
PeteHi Pete,
-Is it possible to upload the inspection file for which you are getting this error?
-Can you explain more on this inspection file? What it does?
-From where did you get this or you created this file? If so, from what version of VBAI it is created and what version you are using?
Thanks
uday,
Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
Certified LabVIEW Associate Developer (CLAD) Using LV13 -
Where can I find an example of a vi which reads a xml file using the Labview schema (LVXMLSchema.xsd)?
�Unflatten From XML� is of little use in parsing because it requires the data type. So it seems that the user has to parse each data value, and then �Unflatten From XML� can help a little.
I would like to see NI provide a VI for parsing it�s own schema.LabVIEW's XML functions are another way of saving data from controls and indicators that is in a more standardized format. If you look at the Unflatten From XML shipping example, it shows taking the data that you would normally send to a Digital Wveform Graph and converting it to XML instead. This data is then unflattend from XML and wired to the graph. Since you know what you wrote to the file, this is an easy thing to do. If what you are looking for is a way to look at any data in any LabVIEW XML file, then you are right, there is not a VI for that. However, I do not believe that that was the intention of the XML functions in the first place.
By wiriting data in XML, this allows other applications outside of LabVIEW to parse and recognize the dat
a. In LabVIEW, you would already know the types and can place a generic item of that type. The issue of knowing the type is that you need to know the type of the wire that comes out of the Unflatten function so that the VI will compile correctly. You could always choose a variant value to unflatten and then do some parsing to take the variant a part. Maybe this will help you out.
See this example for using the Microsoft parser for XML. (http://venus.ni.com/stage/we/niepd_web_display.DISPLAY_EPD4?p_guid=B123AE0CB9FE111EE034080020E74861&p_node=DZ52050&p_submitted=N&p_rank=&p_answer=)
Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask -
File dialog crashes LabVIEW 2014 on Mac OSX Yosemite
I know that Mac OS 10.10 (Yosemite) is not technically supported by LabVIEW 2014. If that's the only answer to this question, then so be it.
The following causes LabVIEW 2014 to crash on Mac OSX 10.10 (Yosemite):
1. Run the native File Dialog in LabVIEW 2014 (Express VI) , using "New or Existing File" as the selection mode
2. Select "New File..." when the file dialog appears
3. Enter anything as the file name and click OK
4. LabVIEW either crashes immediately, or hangs indefinitely and must be force quit.
Is there an update for LV 2014 (and the RTE) that does support Yosemite?
This bug makes deploying apps to the Mac basically impossible, Yosemite is the latest OS. Does anyone have a workaround for the issue?
Thanks.LabVIEW 2014 SP1 seems to solve that problem here on my Mac OSX 10.10 system.
Now Apple may be nice for end users, but all those Apple fan boys sure would think a little different about it, if they had to write programs on the Mac. Apple keeps changing its APIs and their behaviour continously, inventing new APIs (which is fine) in a rapid pace, only to depreciate and remove older APIs at almost the same speeed!
Microsoft sometimes goes to the other extreme with maintaining backwards compatibility but working with Apple systems surely isn't easy as a programmer (unless maybe when one uses their high level click and point together web design applications, but I don't know that).
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
Opening a File Selection window from VBA
I am working on a vba sub-routine that will create a project file that we can send to our customers. The procedure will remove any confidenital information from the plan and save it a local file.
I would like the user to select the destination using a standard windows file selection window.
How can i do that?
Is there a function I can call? Do I need to create a form?
Thanks in advance for your help,
Craig
Thanks, CraigThis is the simplest solution (with a training component). To get a file save as local file dialog you will need to use a windows API. Try the following code:
http://access.mvps.org/access/api/api0001.htm
It's for Access, but does work in Project.
Rod Gill
The one and only Project VBA Book
Rod Gill Project Management -
Check out all files of a LabVIEW-Project
We are using LaV 8.5 and Visual Source Safe in a large project.
How can I easy check out all files in my LabVIEW-Project (.lvporj) direcly in LabVIEW, without using Visual Source Safe.
Do I've overseen a simple solution for that?
Actually I have to open al folders /structures, select all files the chcek out.
Message Edited by zav on 07-22-2008 01:39 AMIf you select a (virtual) folder sub-items will be checked out as well.
This is not valid for library folders (lvlib/xcontrol/lvclass) where only the library itself will be checked out.
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be! -
I need this file to be editable
I need to edit this file, how do i get it to do that?
Hi,
Are you trying to export your PDF file to Word or Excel file so that you can edit the content?
If so, follow the below steps:
Using Web UI:
Log into https://exportpdf.acrobat.com/signin.html with your Adobe ID and password
Select “Export from PDF”
Click “Select Files” button then choose your PDF file
Select the format from the list below
Check ON “Recognized text in” if your PDF file is scanned images to recognize the image to text
Click “Export” button
Click “Download” button in the progress bar after completion of exporting to download the file to your computer.
Using Adobe Reader:
Launch Adobe Reader X or Reader XI
Select “Tools” and click “Sign In” link to sign in with your Adobe ID and password
Select “Export PDF” then click “Select PDF file” link
Click “Convert”
Click “Download Converted File” link to download the file to your computer after the process is completed.
Hisami
Maybe you are looking for
-
Thunderbolt ethernet not working after upgrading to Yosemite
After a very long and frustrating 2 days I have managed to upgrade my MacBook Air (13 Inch, Early 2014) to Yosemite. I have the official Apple thunderbolt to ethernet adapter but System Preferences/Network reports that the cable has been disconnected
-
Is there a way to import a indd CS4 file with its Data Fields names and properties into CC?
I have to convert numerous files from CS4 to CC. The CS4 files are using external data from a CSV file. When I open the file in CS4 I can enable the preview and see the data from the CSV file. But when I save the file as indd or idml and try to open
-
Why do I need to be connected to itunes to authorize and play videos I already downloaded?
I downloaded some episodes of Sherlock but I have to be connected to the internet to authorize my account to play it every time. Isn't the point of downloading it so you don't have to be connected to the internet?
-
Good Morning, I'm running Mountain Lion on 7 different machines. Our workhorses are our iMacs...2--2011 core i5 (2.7GHz/12GB RAM/1TB HDD) and 2--2010, I believe core i3 (3.2GHz/12GB RAM/1TB HDD). As well, we have 2 17" MBPs (2011 Core i7 2.5GHz/8GB R
-
I frequently send links from Safari, and as my Yahoo is my default email, it obviously sends from Yahoo. However, since installing iOS 7.1.1, those messages end up in my outbox, and I get a message saying "a copy of the message has been placed in you