LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

database: read NULL values from timestamp

hello

the VI below returns an error when the database field "packaging timestamp" is NULL.

Sans titre.png

the database field is written like "2017-02-16 11:09:20.000"

and the labview timestamp constant has the properties below (sorry about french):

Sans titre.png

 

can you help?

Pierre FCentum TNS, Grenoble
Certified LabVIEW Associated Developer
0 Kudos
Message 1 of 3
(3,663 Views)

@Pierre_F wrote:

hello

the VI below returns an error when the database field "packaging timestamp" is NULL.

Sans titre.png

the database field is written like "2017-02-16 11:09:20.000"

and the labview timestamp constant has the properties below (sorry about french):

Sans titre.png

 

can you help?


Are those openG DB tools?  I don't have them, but it looks like the icon styling.  I suspect that somewhere buried in there is a LabVIEW string parsing VI that uses RegEx and cannot handle a null character.  The fix?  Make sure you don't send it a null timestamp.  😉

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 3
(3,642 Views)

According to the DB engine the timestamp are not always returned as LV formats them (SQL Server and MySQL timestamp are different for example...).

Have you tried replacing the LV timestamp data by a string and then format the string into a LV timetimestamp using Scan from string function ?

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 3 of 3
(3,621 Views)