Bruno Costa
-
Posts
26 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by Bruno Costa
-
-
Hi,
I'm developing a application thats need read and log a large tag database at period of 1 second. My system have actually 1200 tags and when I try to increase the number of tags my system slowdown and not update at requested period anymore.
I'm using NI OPC Servers to read data of 4 different PLC's. In the SVE I've created an IO Server to bind variables and all variables are located in a single process.
All variables are logging alarms and data. The Log Deadband and Update Deadband are set to 0.
My machine is a DELL Precision T5400 with Dual Intel Xeon Quad Core with 4GB of RAM and Windows XP Sp3 installed.
LabVIEW 8.6.1
Bruno Costa
Automation Enginner
-
There's an Application class method called Data Type Color which receives a variant and returns a U32.
Note that this won't be relevant for class wires.
Also, there should be a KB article on NI's site with an exact list of the colors.
Many thanks Yair
Bruno
-
Hi,
I`m building a xnode like bundle function and I need to know the respective color for all data types to draw the image of xnode.
I know string data type is pink, integer is blue and etc. But i don't know the exact colors.
Bruno
-
Can you upload a video demonstrating the use of this Xnode? Screencast seems to be a popular site for doing these recordings.
Hi
I make a small screencast to demonstrate this component.
Bruno
-
- Popular Post
- Popular Post
Name: Advanced Database Query
Submitter: Bruno Costa
Submitted: 01 Jun 2010
File Updated: 03 Jan 2011
Category: *Uncertified*
LabVIEW Version: 8.6
License Type: BSD (Most common)
Description:
This component automatizes the work of: format sql statement, execute sql query and build a cluster with data output.
This function accept a sql statement with parameters like format into string and you can resize this function to the number of input parameters.
The output data can be a cluster or an array of cluster defined double clicking on function.
How to use:
Wire db connection input.
Wire sql statement with parameters like format into string function.
Resizes the function with the number of parameters into sql statement,
If the sql statement produces data output, double click on function to Edit columns of data outuput.
Requirements:
Database conectivity toolkit
Scripting tools
This function isn't 100% complete. It's need to complete some abilities and code improvements. If anyone want help me, be welcome.
My email is bitcosta@ig.com.br
- 3
-
QUOTE (i2dx @ May 30 2009, 11:39 AM)
Although I never have tried this with mySQL I think it should work, if you pass the data as plain string (use the flatten to string primitive e.g.). You should read the mySQL documentation and find out what the "special characters" of the DB-Server are, which need to be "escaped" in the SQL-Statement.I assume that you need to insert a large amount of data, because you use a BLOB field? If not, and the data size is about "a few kilobytes" you could use a trick and convert the binary data to a string, then to an u8 array and the u8 array to a hex-string, which can be inserted into a text field without any hassle but almost doubles the size of the data. If you need an example you could download the ADO Toolkit, there is a function which exactly does this ..
Hi
You can use this VI to escape special caracters
Download File:post-15666-1243732790.vi
I use it for storing XML data
Bruno
-
Hi, again
Its possible intercept the messages sents to the app and send a response without app known
See this article on CodeProject Site:
http://www.codeproject.com/KB/dialog/messagehandling4.aspx
Bruno
-
QUOTE (clementgirod @ May 11 2009, 12:23 PM)
Hello,I'm using LabVIEW 8.6, I would like to give an unusual behavior to a subVI window when opened: I'd like the window to be activated without giving focus to it. What I mean, is that I would like the window to be able to catch even on the front panel like keystroke or mouse click without giving focus to this window. I'd like the focus to stay on another window.
A good example of what I want to do is the microsoft visual keyboard installed with Windows: when the visual keyboard in open you can press any button without giving focus to the window. I'd like to reproduce the same behaviour with a labview window.
I don't think it's possible with properties or invoke node, I think there might be something to do with the use of user32.dll. If anyone as already done that, or knows how to do it, it would be great.
Thanks for helping.
Clément
DAM
Hi,
You must be able to handle windows messages,
Whe a window is inactive and you click inside it, the OS sends to the window the message WM_MOUSEACTIVATE and the window
must reply this message with MA_ACTIVATE, MA_NOACTIVATE or MA_ACTIVATEANDDEAT.
In your case you must use MA_NOACTIVATE.
I dont know how to disable alt+tab too.
Bruno.
-
Hi,
If you are using MS Windows you can do this. You must make 2 Windows API Calls
First, you will get the handle of the window with the function FindWindow
And after, you call the function SetWindowPos with thew option TopMost
See on MSDN for the parameters of functions
What I do to configure DSC to read and log 5000+ tags?
in LabVIEW General
Posted
I want say read tags from PLCs and log in database. This operation isn't tima comsuming because i use only 2% of CPU time.
Wich version of LabVIEW are you using? Update rate, deadband ... . I want know what you doing different, to make it work.
In attached image you can see the system layout.