How can I connect "Get Date/Time String.vi" to "Write To Spreadsheet File.vi" ?
How can I connect "Get Date/Time String.vi" to "Write To Spreadsheet File.vi" ? I want to write 05/06/2008 to spreadsheet for example. I tried many conversions in vain. I am using LabVIEW 8.0 now.
Trying to fit a square into a circle? That VI uses a 1D/2D array of numbers, so why are you trying to feed a date?I suppose you can do this:<img src="http://forums.ni.com/attachments/ni/170/321560/1/Example_VI_BD4.png"> If that actually means anything.Message Edited by smercurio_fc on 05-06-2008 05:15 PM
I want to store not only data of measurement system, but also date, time, commment, etc to one excel file.
Thank you for your advice. I tried what you propose, but it did not work. I attached the image of the error message.
right click on the "Write To Spreadsheet File.vi" select, select type -> "string" or "automatic". :smileyhappy:
Thank you for your advice but no function of selecting "string" or "automatic" on LabVIEW 8.0.
I found that no problem connecting two vis on other PC installed LabVIEW 8.2. So I installed LabVIEW 8.2 on my PC, too, and now have no problem connecting these two vis.
The ability to adapt the Write to Spreadsheet File function..."re-entrant" "file I/O" "QSM_State Machines"
I have trouble with writing (appending) to text file in a QSM that is in an "occurence mode" of operation whereby the queue waits for outside engueue to go ahead and do a task. The task is simply to write to a file a line of text.
Outside producers give the queue its go ahead and data is sent along etc...
WHat I am seeing in the logging functions are multiple errors (Error 1)
Somehow Labview is not noticing that the reference is valid or it is invalidating the reference.
Q is Should I just let the QSM loop to keep it alive and would that work?
What is the rule concerning queue waiting for an event? Does the VI get flagged as idle and is that why the ref appears to be dropped? THere is no reason I can think of for the ref to be dropped. It is opened in the init frame then kept in a shift register.
and available at each iteration in the QSM.
The example works in a simple loop but not a loop that is waiting on an occurence. Why?
The only work around I can manage is to use the path and open the reference when it is not valid which feels kind of silly if you get my drift
Anyone seen this before?
...write in 2 columns using a "write to spreadsheet file" if I have 2 strings which are in columns
I have tried, but I don't know how to do it
Duplicate <a href="http://forums.ni.com/ni/board/message?board.id=170&message.id=249412&jump=true" target="_blank">thread</a>
Please stick to one thread
...How can I give the new files from "write bmp file" automatically a series-filename?
Hello, I have this node - "wirte bmp file" in a loop, with each running of the loop creates this node a new bmp file and save it in a order.How can I give these new files automatically a series-filename? for example in the first run it creates automatically a file called "File0001.bmp"; in second time a file with the name "File0002.bmp"; third time "File0003.bmp", etc.Can you help me? Maybe with a example? Thanks a lot.Regarts,Johnny
You've <a href="http://forums.ni.com/ni/board/message?board.id=170&message.id=321044#M321044" target="_blank">already asked</a> this question, and it has been answered!
..."Save measurement to file"-VI doesn't obey the "Use next avaible file name" setting
I'm using this express VI to store data. In it's properties, there's the "If a file already exists: Use next avaible file name" radio box which does not work. Instead, it appends everything to the one file it created on the first run.
My VI has a while-loop with an embedded flat sequence with the writing-VI being in the last frame of the flat sequence.
LV 8.5, Linux
Could You make a screendump of Your VI?
I tried using the Express VI on both LV7 Express (Base,Win), and LV8.5 (Base, Win) , and it works perfectly....
I've attached my VI. Currently, the save-VI gets it's file name from some other VIs, but I do that because it doesn't work otherwise. When I clear the "Filename"-input, it starts appending.
Messapplikation ganz anders.vi:
http://forums.ni.com/attachments/ni/170/313764/1/Messapplikation ganz anders.vi
I think i've found the Source of Error......When You generate the filepath You use a Concatenate strings with a Constant stating "Files/file" the problem her is the "/". It might be that it should be a Backslash "\"......
Best Regards BCL
No no, everything's fine as it is. The problem starts when I remove the Filename-input from the Save-VI. Then the Save-VI refuses to take the next avaible file name. However, I'd like to be able to remove all this filename-code and let the Save-VI handle all the file naming.
how...How to define "byte stream type" for "open file"?
I created some numbers (type "double") in Matlab and stored in a file. What value should I use to specify the "byte stream type" for "open file" in Labview? Should I put something like "DBL" or "I32". I don't know where to find the list of legal "types" in Labiew help.
Thanks so much!
Looks like 7.1:<img src="http://forums.ni.com/attachments/ni/170/347924/1/read%20file%207.png"> The Matlab "double" is 64 bits (8 bytes). It doesn't make much sense to use an integer datatype to read a floating point value, so you would use DBL in LabVIEW. The numeric data types table can be found <a href="http://zone.ni.com/reference/en-XX/help/lv/71/lvhelp/Numeric_Data_Types_Table/" target="_blank">here</a>. By the way, this assumes you saved the file as raw binary, as opposed to a .mat file, which is something different. Message Edited by smercurio_fc on 08-08-2008 11:21 AM
read file 7.png:
http://forums.ni.com/attachments/ni/170/347924/1/read file 7.png
Thank both of you!
I'm using Labview 6.1 base "Read File", just like the picture above. I've specified the byte stream type as DBL; however, the output is an array of string. What should I do with the string? I've tried to use "Decimal String To Number" but I got an output of "0".
I've also tried the "Read From SGL File" in Labivew and ...why my "write to measurement file" did not work in my program?
pls kindly see the attached file that is my project. In my project, the "write to measurement file" didn't work that means didn't save in the .lvm file. :smileysad:Could you give some advices for it ? Thank you so much. I am looking forward your kindly reply.
Are you trying to write to the CompactRIO locally? If so try writing to the C: drive instead of the D: drive, as that is the local storage for the cRIO.
i have tried ur suggestion but it doesn't save the data yet . Do you have any other idea ? Thank you .
When you say that the file is not saving, where and how are you looking for the file that is being created?
Are any error codes being generated when you are running the host vi (create an indicator from the "error out" ternimal of the "Write to Measurement File"vi)?
Which cRIO controller are you using for your project?
Just to clarify that this method of creating a file will save the file to the cRIO's flash memory and not your computers D: drive.
I have attempted to replicate your issue using your original code and it worked successfully by creating a folder in the cRIO's memory called "d" and the text file was stored within this folder.
&...Is it right to use the "sound file write simple.vi"?
I had a problem to use the Sound File Write Simple.vi that is it can not save the data.The links are shown in the following picture.I wonder is it right for me to use that vi like that shown in the picture?And why I can not save file as *.wav while I can save it as a *.txt?Thank you!
...How to add strings to the "Write to measurement file Express Vi"
Is it possible to add strings to the "Write to Measurement files Express VI"?
Basically, I'm using the "DAQ Assistant" express VI and The "Write to
Measurement files "Express V... Nonetheless I want to add some input
strings (i.e The Operator's name, Oven ID, program file, etc)...
is it possible to do it? I think it can be done I just don't know how.
Please advice. Thanks
...How do I disable the Dialog Box Pop Up when using the "Open/Create/Replace File" VI?
I would simply like to write data in real-time to a file without the operator being prompted by a Dialog Box.
Please see attachment for the code I used.
LabVIEW_Write To File Code.doc:
http://forums.ni.com/attachments/ni/170/243833/1/LabVIEW_Write To File Code.doc
Try putting the entire path including the file name (and not just the folder) as a path constant (and not use the string to path function) to the file path input.
<img src="http://forums.ni.com/attachments/ni/170/243916/1/Open_Create_Replace.PNG"> Message Edited by Dennis Knutson on 04-25-2007 01:37 PM
Dennis Knutson wrote:
Try putting the entire path including the file name (and not just the folder) as a path constant (and not use the string to path function) to the file path input.
Good lesson for me ! :smileyhappy:
I m also not familiar with this thing of putting the entire path of a file, even if I wire a False to the Advisory Dialog inout.
I thought that it is the maximum feasibility in LV. You opened my eyes & brain. :smileywink:
...Installer "Source file settings", "VI Settings" problem in 8.2
I have just upgraded from LabVIEW 8.0 to 8.2 and it seems the Installer "Source file settings", "VI Settings" check boxes no longer have any affect on the built application.
For example, if I un-check the "Show Menu Bar" boxes for my Main.vi and build, when I run the built application the Main.vi Menu Bar is visible.
It seemed to work as expected with 8.0 though.
Any help and suggestions are much appreciated.
Thanks for that and I look forward to hearing from you again
...Files in "file view" but not in Explorer
I reorganized my Project repository on my harddisc. I created subfolders and moved some of my files into them. I used "Move on disc..." option in files view in the project explorer. In windowws explorer all looks fine now.
But in files view I have a total of 5 files and 1 directory which are now duplicate in the project but in diffrent folders. This leeds to confilcts in the project because LV doesn't know which file version to use, although there is only one version on harddisc.
I hope the picture brings some light in my issue. (BTW: I use LV 8.5.1 on WinXP SP2)
Does anyone have an explanation?
I will try to resolve the conflicts manually, I think this will work. But still this behavior is strange to me.
Message Edited by UliB on 07-18-2008 09:18 AM
Somewhere in the VI/controls that are located in the right spot, their is a reference to the old path location. You could locate these by selecting the missing file, switch to project view (ctrl-e) and find use right-click, find callers.Ton
The location within your project explorer may not point to the same (relative) location on your PC's hard drive.
Hello Ton, hello JoeLabView,
thank you for your answers.
I resolved my ...Re: I have to raed a "text file" with numbers that was seperates by commas & linefeed, how can I split them into an 1D-array of float numbers
I have a similar situation. Instead of displaying all the data at once I want to step through the data and compare each number with another number. Here is an example of what i am talking about. Lets say my text file contains the following
I want to go through each of these line and compare each number to a number inputed by a user. How would I step through the array?
Use a For Loop with auto indexing enabled.
<img src="http://forums.ni.com/attachments/ni/170/233162/1/array.JPG"> Message Edited by AndrewAlford on 03-02-2007 12:13 PM
...Re: "File not found" when starting LabVIEW
hello, i would ask about why a ni zone example code problem. i try to run on LabVIEW and it says file not found...(as attached by picture) the link on the ni zone is: http://zone.ni.com/devzone/cda/tut/p/id/6037#softwarethanks.zull azymresearch assistantRF department,UTHM, malaysia
file not found.JPG:
http://forums.ni.com/attachments/ni/170/292574/1/file not found.JPG
...Adding an "IMAQ Image.ctl" to the "Display State.ctl" of an XControl prevents LabVIEW from creating a probe of "Display State.ctl"
I am working on an extended IMAQ Display control using LabVIEWs XControl capabilities.
I need a copy of the original image passed to add some overlays which must not affect the original image. To achieve this I am creating a backup image in the "Init.vi" and deleting it in the "Uninit.vi". I am storing the reference of this image in the "Display State.ctl" which is part of every XControl.
As soon as I am adding an "IMAQ Image.ctl" to the Display State cluster, it is no longer possible to generate a probe of the Display State cluster for debugging purposses. I am always getting the message: "Failed to load or create probe."
Deleting the "IMAQ Image.ctl" from the cluster makes the probe working again.
Is it a bug or am I doing something wrong?
I am working with LabVIEW 8.5 and Vision 8.5.
Hello Mr. Bartsch,
is it possible for you to post a small example to reproduce the behaviour? It would be helpful to get a description in which way you use the typedef files.
I found a example/knowledge base where some informations were included to XControl and LV but not with Vision.
<a href="http://digital.ni.com/public.nsf/allkb/1DC1ADD2A136DA298625712C00635758?OpenDocument" target="_blank">http://digital.ni.com/public.nsf/allkb/1DC1ADD2A136DA298625712C00635758?OpenDocument</a>
Ja...Using "file dialog" box to select several files
Hi! I'm using the "file dialog" box to get the path of several files (set to not be limited to one file). If I select only one file, it works fine. If I select several, it says that it can't find the path of the first selected file (see pics).Anyone has a solution ?
if i use it like you i get no error. See my attached example.
MikeMessage Edited by MikeS81 on 05-26-2008 10:44 AM
Thanks for that fast answer. Observing your VI, I noticed that the only difference is that in your code you do not precise the "start path"... i removed it in my application, and it works... So it looks like the dialog box doesn't like when the files to select are not in the same folder described by "start path"... weird...
i�m not sur about that. If i connect a start path and change the path where i select the files a get no error.
...Re: Help, rather stuck: Should it take 22 ms to (via Visa) write "ISET 2" then "ISET 0" to an instrument? (to a Kikusui electronic load if you're curious)
I hope you are able to gime a hand with KIKUSUI PLZ-30F electronic load.
1. I'm talking to the instrument via GPIB and it communicates.
2. It doesn't respond on a settings commands - change from CC to CR mode, etc.
3. There are 3 modules in a frame - one master and two slaves.
4. I'm suspicious I'm missing something, and... this company does not have techsupport...???
5. Their drivers have entirely different format from SCPI and I have no use to them.
6. There is an IVI driver - but I didn't try it yet.
...Re: "File not found" when starting LabVIEW #2
sorry, this the program that i take from this link, http://zone.ni.com/devzone/cda/epd/p/id/5146
...plug-in "not installed" in my LabVIEW project's "Build Specifications"
I moved my LabVIEW project from one computer to another, now when I click on any item under the project's "Build Specifications", I get an error reading "The plug-in for the selected item is not installed on your system." Does anybody know how to fix this? I have no idea what this "plug-in" is.Attached is a screenshot.
...Remove "zeros" form a txt file created by Labview
I got a problem with my txt data and I hope somebody will help here.
I'm doing measuremnts and I'm saving the data in a txt.
The saved data look like that: 0.000000
...Converting "big" 1D array to 10 dimensional matrix&save to file
I have a ~6000 digit long 1D array that I must convert to 10 dimensional matrix and the save to file.
So I have array of 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21....~6000
and I want
Reshape array-function could do the trick but it seems that I'd have to insert manually the dimension for every row? And I really don't want to do it 600 times.
And array to matrix-function works only for 2D matrixes etc.
So are there any functions/existing VI's that could do that conversion automatically? I know one unix-fortran-program that does that but running it in labview/windows is..well...
Thanks in advance
Thanks for the quick reply, but could you clarify the scetch a bit.
And I must point out that the 6000 numbers in the array was an estimate, not really precise number.
Though I might be able to trim the 1D-array to spesified lenght.
And in this case the number 6000 refers to the input array? (because at least it didn't work with the actual array)
The important part of the data is in the middle so it really doesn't matter whether the "un-even" numbers might be left out.
Ok,now it works. I was little hasty (&eager to start enjoying weekend) when trying to figure out the sketch.
Thanks for the help.
..."Check if file or folder exists" returns TRUE for invalid path
The 'Check if file or folder exists' VI returns a TRUE when the path is invalid. It seems like it should return FALSE. Here are some examples:
c: TRUE (okay)
e: TRUE (this drive not present on my PC)
\\SomeServer TRUE (non-existent server)
//SomeServer FALSE (okay)Any suggestions?Thanks, Mark
Can you show your code? Either attach an image or the actual code.
Which version of LabVIEW are you using? It returns false for me on the current beta for paths of all the kinds you've shown.
I thought you weren't allowed to talk about the beta in a public forum. :smileywink:
Here is the file (LV 8.2)
It looks like a bug to me. If you just provide a drive letter (i.e. x:\), the File/Directory Info function returns an error which causes Get File Type to be called. This returns a value of 'Directory'. The test of file or folder exists is if Get File Type does ...Is "write to digital line.vi" compatible in LabVIEW 7.0
I developed a LabVIEW program to change the logic state of a digital line using the "write to digital line.vi". This was first done in labVIEW 6.1. The version was later upgraded to LabVIEW 7.0 later and the VI doesn't seem to perform the function correctly, meaning when I tried to change the line state from "low" to "high", it doesn't seem to be doing anything. Is this because of compatibility issue of "write to digital line.vi" with LabVIEW 7.0? Thanks!
There should be no problem using the traditional DAQ driver in 7.0. After installing 7.0, did you reinstall traditional DAQ? Does the traditional DAQ driver show up in MAX? Do you get any error when you run the VI?
Yes, the traditonal NI-DAQ still shows up in MAX under software as well as the Devices and interfaces (because I have traditional NI-DAQ (legacy) devices). Can I have both the traditional NI-DAQ and the NI-DAQmx on my computer? When we first ran it, it did come up with a error message. But after we installed the legacy NI-DAQ (I guessed it is the traditional Ni-DAQ), the error goes away. Could you read anything from it? Thanks a lot!
The two can coexist though it has been quite a while since I've had to do it. The thing to make sure is that if the card is supported by both drivers, that the driver you want to use is the active one. You can check and reset it in MAX.
I have multiple loops/parallel tasks with various communication buses in an RT system which need to write data to its own individual log file which is using an Binary format. What kind of benefits will I get in terms of performance by using the TDM Streaming? The only benefit I foresee is the consolidation of data into an XML type structure and store data into an universal file versus 4 individual ones.:smileysurprised:
Are TDMS being handled differently in RT for disk IO management? because each write will take upto 8-9 ms.The goal is to reduce disk IO and improve performance.:smileyindifferent:
Ashm01Message Edited by ashm01 on 10-30-2006 11:46 PM
Is your application in RT? I would appreciate if you have some benchmarks on this. I am about to convert the binaries to TDMS and was wondering if anyone had any favorable performance gains.
The TDMS API was developed to facilitate streaming data to disk at high rates, while maintaing the same descriptive information you would find in a TDM file. You might find the following information interesting from an article on Developer Zone (<a href="http://zone.ni.com/devzone/cda/tut/p/id/3539" target="_blank">Introduction to LabVIEW TDM Streaming VIs</a>):
Unlike the TDM files, which have a strictly required XML-based header file, T...