dimes1827
-
Posts
15 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by dimes1827
-
-
QUOTE(alukindo @ Mar 21 2007, 04:51 PM)
Dimes1827:Just before I sent the code I added code to close the recordset. I later determined that the <Recordset Close> Method makes the data disappear from the grid. So I revised the code as shown here. The block diagram also has additional & corrected info on location and contents of ADODC.UDL File
Anthony
thanks for making this possible..
this will be a great help.
but im using the LabSQL vi's..
i'll try it there and make some modifications..
i'll let u know later in my progress..
thanks a lot alukindo!
-
Hi to all,
has anyone tried using the activeX for Datagrid and Adodc Control in LV 6.1 or 7.xx ??
(MSDataGridLib.IDataGrid and MSAdodcLib.IAdodc)
im converting a VB6 & SQL code into labview SQL..
(e.g
SQL = SQL & " WHERE tester = '" & LCase(Tester.Text) & "'"
Adodc.ConnectionString = "Provider=MSDASQL.1;Password=password;Persist Security Info=True;User ID=postgres;Data Source=database1"
Adodc.RecordSource = SQL
Adodc.Refresh)
but i got this problem of specifying the datasource in the datagrid at the design time.
i usually cant edit the property browser at the design time.
the msdn noted that in vb.. it's only in the design time that the datasource is
set to.. not during runtime.
this is the only problem that i cant solve this time..
i tried accessing the Datagrid.datasource property - i set it to Write
then wired a Adodc.recordset.datasource property into it (with additional variant data conversion for the datasource type).
but still the datagrid is not binded to the adodc control..
any help/comments/suggestions pls??
thanks..
-
Hi avid LV users!
I want to verify if it's possible to run a top level vi
with notifiers and 16 parallel while loops? and the control to stop the
while loop is a global bool var...
however the while loop can only be activated by a notifier.
After the notifier is fired, it can run the loop, til it the Global Stop Var is
clicked
thanks!
-
You can use the NET USE command, using System Exec to execute the command line.
Thanks! i did it.. like this n the command line of system Exec
NET USE \\COMPUTERNAME /USER:DOMAINNAME\USERNAME
then iterated the system exec with the Password input text
to its commandline
-
-
Well, I would suggest using an event structure to capture the arrow down keypress. Use the event on the VI panel called Key Repeat. From this you capture when the arrow is pressed and held down.
thanks! i haven't explored the Key repeat event..
-
For the colors it is very convenient to use the 'Framed Color Box' (last item int the FP Numeric pallette) or the 'Color Box Constant' (first item in the BD 'Numeric--Additional Numeric Constants' pallette), since you can use the color selection dialog to select values.
nice! thanks for the tip regarding the COLOR BOX CONSTANTS!
i had it manually derived using the paint brush and then shown
its value to the numeric indicator
and then placed in a [4]array of cluster[2]..
whew!nice! color box constants! hehe
transitional states -
this is the FALSE to TRUE (LOW to HIGH in pulse)
or TRUE to FALSE (HIGH to LOW)
change of boolean values..
-
Try to set the string to "limit to single line". When that is set the string will lose focus and its value updated when receiving \n (or maybe also\r)
thanks!
i had the string control set to UPDATE VALUE WHILE TYPING then
i'd checked it is already the required STRING LENGTH.. (since the serial numbers were equal
in number of characters..)
then i had a case wired with Boolean control to switch
if the string input
*<would enable checking of number of characters> or
*<would wait for the keypress enter>
after the string control loses focus
basically that's what i did so i need not to check the carriage return character at the String
value EVENT CHANGE..
-
Hi!
i want to simulate a simple drag racing tachometer in a labview 6 or maybe 7..
like when pressing the up arrow (being detected thru events), the RPM goes higher..
something like that..
do i need an equation for this for gauges to act/behave like a real RPM meter (like using the
equation of an acceleration or any engine performance of a vehicle)?
or
i just have to use the detection of the time the UP arrow(for acceleration) is pressed and increment
the value for the gauge? and when the UP arrow is released the gauge should slow down gradually??
Thanks!
-
I assume you are looking for a way to "release" the processor during a loop to allow other processes to run - correct? If so, the standard solution recommended is to wire a wait(ms) vi with zero for its input and place it inside the loop. Each time through the loop the wait will release the processor to other tasks if there are any waiting.
yes, like allotting some CPU thread to another possible interrupts, or process..
that's awesome..thanks a lot!
i think it's a WAIT FOR FRONT PANEL ACTIVITY.VI?? not a wait.vi?? because it has an error
if no input value is wired to the WAIT.VI..
but in the WAIT FOR FRONT PANEL ACTIVITY.VI it got a wait indefinitely ( when it is not wired)..
-
Are there any means in unlocking the password in show diagram, in case u forgot ur password?
-
Just want to add question regarding wait functions..
what's the similar structure of DoEvents of the VB in Labview??
-
Thanks!
In that case, the "UPDATE VALUE WHILE TYPING"
is like an MSCOMM EventReceive in VB..
that will do if i will check for the last character receive if it is a carriage return.. like 0x0D or \r\n
i tried it but i cant detect the match if there's a carriage return.. i also tried using WHITE SPACE vi..
maybe i should try other alternatives,, IN the UPDATE VALUE WHILE TYPING i'll count the characters.. if it's equal to the length of SERIAL numbers... then i will set the boolean value of a Button = TRUE (SOFTWARE KEYPRESS)..
but it will be efficient and generic for the VI, if i can utilize the carriage return to do a SOFTWARE KEYPRESS..
This is my simple code and front panel..
-
hi labview gurus,
im working on a module of searching a filename thru the serial numbers that is included in the filename itself.
I use a barcode reader for entering the serial numbers... i configured the
barcode reader to automatically include it's CR LF suffix every scan..
and in the string control, i used the keyfocus to be set when search button is pressed..
then read barcodes...
however, i dont make my code enter into the VALUE changed event of the string control..
since the keyfocus is still at the string after a barcode is scanned...
hence, i still have to press <ENTER> to make it go to the VALUE CHANGED EVENT
that's how it goes.. instead i would want the way that after the moment of Reading Barcode, pressing the trigger of the Barcode reader...
it should enter the VALUE CHANGED EVENT so that i dont have to press enter anymore..
i tried it in CODE 128 and it works.. but on some barcodes.. it doesnt..
any ways that i can try to make the KEYFOCUS lost after Barcode reading? (without pressing enter)...
Thanks a lot..
This issue is the one holding me from releasing my application..
Control Temprature
in Hardware
Posted
QUOTE(Nullllll @ Mar 21 2007, 04:07 PM)
Hi!
are u working in a test station with couple of instruments like
Hp/Agilent Switch control, powersupplies... mechanical/solid state relays? AC/DC fan?
u need a PSupply for the fan and the Heater(usually use an AC adaptor)
the Switch control (u can use Agilent 34970A or 3488/3499) will control the Heater's Adaptor to ON and OFF..
the Switch CONTROL will first access ur RELAY(maybe OMRON). and the RELAY is the one responsible for accommodating the
high current/load of the heater thru the Adaptor.
USUALLY:
**the switch control will just have to send OPEN or CLOSE (0 or 1) signal to the relay to turn on or off ur Heater (usually in Kilowatts)
and on the FAN side..
u need a Programmable POWER SUPPLY
(the one that u can control voltage thru GPIB/RS232 or other communication protocol)
u can control the Voltage that is set to the FAN if it's cold or Hot..
e.g it's like, FAN on but with the heater on blowing HOT air or just COLD air with the FAN turned on only.
u need to use to use those off-the-shelf power supplies/or switch controls to ease ur automation.
if u got them i can share to u how the project that i did similar to that.
if not u can buy a single product for controlling ur fan and heater.
or find an alternative device that will do the same process as stated above..