-
Posts
299 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Downloads
Gallery
Everything posted by Thang Nguyen
-
Programamtically editing typedef enum or ring strings and values
Thang Nguyen replied to Tomi's topic in VI Scripting
Hi, I would like to replace an enum control in a cluster programmatically. This cluster is on the GUI and is also controlled though reference. I would like to know if I can do that by this solution? What I worry about is the ref is pass to sub VI. When I modify anything in the cluster, the reference contant also change and need to be replaced. I still not try this but is this true I can change the control at the path and it will update immediately in the program? How it happen with excutable and install version? Thang Nguyen -
QUOTE (gleichman @ Mar 4 2009, 03:22 PM) Thank for your information.
-
Hi, After having CLD and working for a time, I am thinking about going to next level with CLA. Cause this is kind of essay test so I know that my working experience is not enough. I would like to know which material I should read or is there any good resource I should reference to? Best regards, Thang Nguyen
-
Hi, I have an issue with control panel which I still cannot find a reasonable way to solve it. I have two number controls which allow user to input value. These controls can only be updated when after inputting the value you click somewhere else or click on "OK" button. The issue is after inputting the value, user will hit enter key, then the last nummeric control will not be updated. If you have experience with this please tell me how to solve this problem. Thank you so much, Thang Nguyen
-
Hi, I don't sure if Window allows two software programs write to the same TCP/IP port at the same time or not, but currently my system has two programs (1 LabView and 1 C#) having to write data to the same device by a same port. I would like to know which VI I should use to check if that TCP/IP port is busy or not and how I should do to wait on that port. Best regards, Thang Nguyen
-
Need help to create a steering wheel control
Thang Nguyen replied to Thang Nguyen's topic in User Interface
QUOTE (normandinf @ Nov 10 2008, 11:26 PM) Thank you so much for your example. It helps me a lot. :thumbup: -
Kirit, I don't really sure what you mean when you say you can acquire data from thermocouple. Did you have a device to get the data from the thermocouple yet? You need to use a device to get data from thermocouple such as compact FieldPoint (not too fast <200 samples/sec)or compact DAQ (> 200 samples/sec). Then depending on the device you use, there is specific VI as well as specifi method to read the value in. From that point you just store data like a floating point value. To write data into the file such as Excel file I usually use the .csv file which can open with Excel. To write data into file you can use the "write to spreadsheet file.vi" or "read from spreadsheet file.vi" to read data out. All of the methods to use these VIs can be found in the example finder. You can start from here to look for the appropriate device: http://www.ni.com/dataacquisition/. Take care.
-
Hi, I am trying to create a steering wheel from a knob but I still not have any luck. I did make the value from 0 to 360 and the value is spreaded around the circle already. But I have problem with the moving part of the control. The only moving part is the needle but looks like I cannot replace it. Do you have any suggestion for this one? This part is really important with the GUI of my project. I highly appreciate your helps.
-
Paul, Thank you for your answer. I guess I did something simular which is a class with a private thread created by a dynamic call VI. This VI has a state machine which the state is designed base on the input data. This class is a call by reference and the data communication is implemented by a queue name. What I wonder is the state machine itself will affect to the real time requirement. I just worry about the performance of this pattern. I did use this pattern in a data acquisition system and when the rate requirement is high, the performance of this pattern will be limited. Best regards, Thang
-
Hi, Could anyone please give me an example of a OOP template with dynamic process? I created one but I don't think that it is good enough. It has a queue to send data to the dynamic VI which is a private function of the object. This dynamic VI have a state machine and a dequeue VI in the default state to get data which include a command message. Depending on the command message it will drive the state machine to the correspondent state or just waiting at the default state. The issue is the time frame is not fashion in this VI. It based on the command and the data. What I want is the dynamic VI always run at 200ms rate with a certain task and other option tasks. Best regards, Thang Nguyen
-
QUOTE (Phil Duncan @ Oct 30 2008, 11:42 PM) LOL, it's cool. I am using two picture control now. Thanks.
-
QUOTE (jdunham @ Oct 28 2008, 01:21 PM) The dynamic VI is actually a Map with an image of vehicle which the position is updated continously from the Main VI. The user can interact with this VI also. That is the reason why I need to use the event structure as well as receive the data continously from another VI.
-
Hi, In my project I have one Main VI called A, and a dynamic VI called B. To pass data continously from A to B I use set variant control value node. To generate event from A to B, I send a reference of a boolean and use the register event node connect to event dynamic registration in B and set the value(signal) in A. To generate event from B to A, I also send a reference of a boolean and use the register event node connect to event dynamic registration in A and set the value(signal) in B. Do you think I did right or not? Is there any better way? Thanks,
-
LVOOP wrapper around picture functions
Thang Nguyen replied to eaolson's topic in Object-Oriented Programming
QUOTE (Aristos Queue @ Aug 18 2007, 01:58 AM) Hi, Is there anyone discovered the format of the string pattern or the array pattern of this picture string? I can recover the picture from the string but I failed to recover the picture with a modified string. Thanks -
QUOTE (Minh Pham @ Oct 27 2008, 06:39 PM) @ Minh: Thank you for your recommendation. What I am talking about is the picture of the vehicle is drawn in the same picture frame with the map. I did talk about that I am using a pixel. But I think it's a good idea to use 2 picture controls. I just wonder if I put the second picture control overlap the 1st picture control and using the transparent color, I don't know if I can still catch the event with the 1st picture control or not. I will try with it. About the OOP, I also had some experience with them. I used GOOP Developer of SciWare and LVOOP . But sometime, in some projects, I think it will be too complicated to use them. @Aristos: Currently my project is only 2D. But maybe in the future I have to work with Altitude, so 3D will be used in the next step. Currently it's overkill for my project. Thank you for your suggestion anyway. :thumbup: @Philip: It's maybe a worth try. I have never thought about this. Wow. But we cannot do much change with this solution I guess.
-
Hi, I am trying to simulate a vehicle moving on a map. In this project I use picture frame to draw the map and the vehicle. What I want is the position of the vehicle is updated and redrawn continuously without redrawing the whole map. Currently my vehicle is just a point. I would like to know if there is anyway I can erase the old point and draw a new point without redraw a whole picture? For furture extension, is there anyway I can do that with an object like a circle or a rectangle? Thanks,
-
QUOTE (raymyster @ Oct 17 2008, 12:59 PM) I guess you are talking about the DSC controls, aren't you?
-
QUOTE (robijn @ May 14 2008, 09:29 AM) Hi, I did take a look in the example with the Joystick. Beside the buttons, could you please tell me how we can get the data of the potentionmeter? Best regards, Thang Nguyen
-
How to catch event with Shared Variable in DSC modbus?
Thang Nguyen replied to Thang Nguyen's topic in Database and File IO
QUOTE (neB @ Jul 17 2008, 06:00 PM) I think about storing the values in a shift register and compare with new value to find out which one is a change value one. -
How to catch event with Shared Variable in DSC modbus?
Thang Nguyen replied to Thang Nguyen's topic in Database and File IO
QUOTE (neB @ Jul 17 2008, 01:37 PM) There is not this property. I tried to use the front panel data binding, but these shared variable control didn't generate the event when they are changed value through the modbus. I stuck T_T