Mellroth
-
Posts
602 -
Joined
-
Last visited
-
Days Won
16
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by Mellroth
-
-
for your information,i understand i maybe forget the "Set File Position"。
but i’m puzzled because i didn't Close file refnum, its running is ok. so whether i must add “close File”,if i don‘t use it,what will happen?
You should always close references that you open (better safe than sorry), this is true for Files as well as Queues, Notifiers etc..
If you don't close a refnum, and continuously open new references you have introduced a memory leak, that in the end can lead to a crash.
/J
-
when use this vi to write my data,why the data i had written don‘t exist。it just remain the data i just write。what did it happen? why this vi don't need close vi but the key need ?thanks very much
I'm not sure I completely understands your question, but just calling the "Write To Text" method replaces any previous content (see help).
If you want to append new data to the file you'll have to;
- Open the file with "Open/Create/Replace file"
- Move the pointer to the end of file using the "Set File Position"
- Write new data with "Write To text file"
- Close file refnum
/J
- Open the file with "Open/Create/Replace file"
-
Anyone got any comments on the VIs Jim posted? Can it be enhanced?
I would move the Merge Error inside the Error case.
If "error in" doesn't contain any error the output should be the "upstream error", i.e. no need to merge.
/J
-
Is there anything other than a class being loaded in more than one application instance that will cause it to lock? Because I definitely do not have this situation... Will a broken class cause another to lock?
Do you have more than one target in your project? A class that is loaded on more than one target is also locked due to the same reason, i.e. due to "multiple application instances".
/J
-
...
Please excuse me now while I search eBay for a slightly used tantō...
Nice signature ;-)
/J
-
- Popular Post
- Popular Post
The scan from string does support UTC by specifying a ^ in the format string
If I use
%^<%Y-%m-%dT%H:%M:%S%3uZ>T if UTC
or
%<%Y-%m-%dT%H:%M:%S%3uZ>T if not UTC
in your example I think it works as expected.
/J
- 3
-
Just to be clear:
You want Format into String to convert a Timestamp into an ISO 8601 formatted string.
And you want to input this ISO 8601 formatted string (and only this type of formatted string) into Scan Variant From String and have it converted to a Timestamp?
Maybe I'm missing something, but it is possible to scan any type of timestamp format with the ScanFromString.
You just have to specify format in more detail, e.g. if I want to scan ISO format I just specify
%<%Y-%m-%dT%H:%MZ>T
/J
-
I am curious to know what NI Week session discussed this vi.
My guess is that is is designed for RT targets.
I'm sure it wasn't one of the RT sessions, instead I believe it was a tips and trick session with Darren.
/J
-
-
The only thing that concerns with this is that the operation may take a while to complete in very large projects, plus information could be missing.
I would rather have a tool where I can parse the information and format it the way I like in the IDE, then its simply a matter of displaying it to the user in the app.
If the formatting was done in code, I could always just run the tool then re-run the formatting code when I needed to update the license.
I think this would be better?
You are probably right, but I still think there should be a OpenG tool that can create a listing of all OpenG modules and their licencing with a default layout. If you want to change the default layout, use an API to build your own.
For most people that would be enough, but the point is that they will at least be able to correctly give credit to OpenG.
Regarding performance, I don't think that is an issue, we have used a tool to scan pretty big projects for specific strings, and that completed in very short time.
/J
-
Hi Jonas
Can you please clarify - are you saying you would like this tool to run in the Run Time Environment and it would popup a dialog showing the license information after having scanned the VIs for that information?
Cheers
-JG
I would like to have this as an option, i.e. to have the licence information available in the RunTime.
Since most of the licencing states that you have to give credits where it is due, this would be an easy way of including all this licencing text, and never forget a toolkit.
/J
-
I would really like to have a OpenG tool that can scan and create a Licence information file, perhaps also open a Licence dialog.
A tool like this would depend on that the licence information is intact even after a we build an application (where BD's and perhaps FP's are removed)?
/J
-
I could easily implement this via the Key Down? event structure frame, but how do I distinguish what a valid decimal character is? In a North American locale I'd allow a "." character, but in France I wouldn't, for example.
I'm aware of the %.; %,; and %; codes which help with scanning an entire string for a number, but in this case I'm trying to match only a single character and I don't think they are of much help.
Why not check the local decimal point before the event handling, e.g. by converting a number to string and check for the decimal character in the string?
Then use this information to determine if ',' or '.' should be allowed in the Key Down? event.
/J
-
Hmm.. not sure what version you are using but I have used 8.6.1, 2009 and 2010 with static and dynamically called Shared variables, with no problems. I have about 80 of them and 3 or so are read dynamically in the PC Host. The SVE is hosted on the RT PXI target.
Neville.
It was LabVIEW 2010.
The problem was that I used a typedef enum to define the NSV type, and this was not accepted by LabVIEW. The typedef was deployed in the same lvlib as the shared variables and was accessible on the RT block diagrams.
Anyway, I managed to get around it, and I believe NI was able to reproduce the issue with my shared variable setup.
/J
-
-
-
-
...What I am doing wrong?...
My guess is that you are using the same TCP port for both development and application, which means that ExportedVIs is the list of exported VIs from development.
Try to add the following to the application ini-file
server.tcp.port=3364
then specify port 3364 in the ApplicationOpen method.
/J
-
I'm having trouble where some of my data appears to be...corrupt? See below:...
Have you tried putting a always copy node after the unbundle node on the numeric wire?
Right before the unbundle node?
/J
-
This is interesting, and is it due to FP can't update itself?
(LabVIEW8.6, XP SP3)
Thanks.
I can reproduce this in LabVIEW 8.6 but not in LabVIEW 2009.
My guess is that LabVIEW 2009 handles mulitple UI events better than 8.6; if you make sure that the property node is written before updating the indicators, it seems to work in LV8.6 as well.
/J
-
Nope, 0-2999.
I've never been good with FNs
I too tried to replicate the code, but just got a copy of the input array.
I would expect that the loop should be defined as
for( i=0; sizeOfDim(x,0) - 1; i++)
because I think the Formula Node is 0-indexed like LabVIEW.
/J
-
I just loaded NIDAQmx 9.2.1 (needed to support a new DAQ board) and it messed up my existing LV2009 executables. I'm getting the following errors:
"No supported languages intalled"
"Unable to open resource files"
I tried rebuilding the executable, but still get the same errors. What's going on? In the old days you could load new versions of NIDAQ without hosing up your system. I dread every time I try to update something now.
George
You can try to add support for East-Asian languages to Windows.
This solved the issue we had in MAX (it was not possible to configure any RT target after changing to the new MAX built with Silverlight).
/J
-
...but inline+subroutine should be the fastest...
Can inlining and subroutine priority really be combined?
This would mean that the inlined code should run at another priority that the hosting VI.
I have never tried so I don't know for sure.
It looks like I'm getting about 7us per call. Still not sure if that's to slow or not.
1. How many elements are you feeding to your subVI when you get these times?
2. Are you running this on Windows/RT?
/J
-
Hi everybody,
I'm acquiring data and saving that on my disk as .dat.
Now I want to later open and analyse the data.
So I'm busy with writing a VI thats read the .dat file. The VI is going to be a .exe file.
This results in that I can set all my .dat files to that executable.
The problem is:
When I run my .exe, it still want me to select the .dat file I want to open.
But I want it to read the path of the .dat file i'm opening
Hopes my problem is clear
____________
Michael ten Den
Do you want the application that you have written to load when you double click the *.dat file, and directly start processing the clicked *.dat file?
If this is what you want, please checkout the link
http://labviewwiki.o...indows_Explorer
/J
- 1
Feelings on Icons for Terminals?
in LabVIEW General
Posted
+1
The only time I see icon terminals are when someone new to LabVIEW starts programming, but then it is only because icons are the LabVIEW default.
/J