08-04-2006 01:52 AM
08-07-2006
01:25 PM
- last edited on
01-10-2008
11:29 AM
by
Support
08-07-2006 11:51 PM
Hello Nathan,
Thanks for your reply.
I have attached 2 different LV vi's i tried for this issue. Perhaps it will give a clear picture of the error message i receive. Whenever the vi try to execute SQL query it shows error in Conn Execute.vi
I can read data from database if the datatype is string, DT,etc. I only face issue to read object as it always shows datatype not supported.
Looking forward for your valuable comments.
rgds,
Bharat
08-08-2006 07:16 PM - edited 08-08-2006 07:16 PM
Message Edited by NathanT on 08-08-2006 07:18 PM
08-08-2006 07:28 PM
08-09-2006 04:47 AM
Hi nathan,
Thanks for your reply.
Please find the attachment for description of Measure Data. This object is not created by LV & it was created using Oracle SQL Plus. I tried to create similar object using LV but in vain.
Also there should not be any issue related to object names as there is no problem in writing data's to these objects names using the below SQL command
insert into NUMBER_TESTING(LOT_NUMBER,DATE_TIME,TESTDATA) values ('123456',SYSDATE,MESUREITEM(OBJ_ITEM('voltage','100')))
I only face problems to read value stored against these objects. I am not sure what SQL query i should send to read values stored against these objects.
Looking forward for your comments
thanks
Bharat
08-09-2006 01:41 PM
09-28-2006 03:58 AM
Hi Matt,
Using Visual Basic it's possible to read the value from this database table. However, i still cannot find the way to read using LABVIEW. Any good suggestions?
This command works in both Oracle SQL Plus as well as VB but not in Labview.
SELECT LOT_NUMBER,DATA_TIME, (SELECT ITEM_VALUE FROM TABLE(TESTDATA) WHERE ITEM_CODE='VOLTAGE') FROM NUMBER_TESTING;
It is really strange when i can write data using LV to this database table why not retrieve data??
insert into NUMBER_TESTING(LOT_NUMBER,DATE_TIME,TESTDATA) values ('123456',SYSDATE,MESUREITEM(OBJ_ITEM('voltage','100')))
Looking forward for some suggestions
Thanks
Bharat