hi,
i use cvi 2012 server pack 1 in win7, 64bit.
when i use the TSQ function, i found a bit difference compared with older version(CVI 2010). for example , the following code shows how to write data into a TSQ:
static CmtTSQHandle tsqHandle = 0;
void main()
{
int iActualWriteData=0;
CmtNewTSQ (1600, 1, 0, &tsqHandle);
iActualWriteData = CmtWriteTSQData (tsqHandle, "123456", 6, TSQ_INFINITE_TIMEOUT, NULL);
}
but when i remove the "static",like "CmtTSQHandle tsqHandle = 0;" then CmtWriteTSQData will not excute ok.the result is:
iActualWriteData = 6, but ,,but" tsqHandle" items is 0, this means CmtWriteTSQData already returns the acutual wriring data vaule ,but data not stored in tsqHandle!!
does anybody meet this problem?
thank you.