LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ClipboardGetTableVals not working with CVI 7.0

I have upgraded from CVI 6.0 to 7.0. Now ClipboardGetTableVals doesn't seem to be working. The function returns 0, but no data shows up in the table. ClipboardPutTableVals seems to be working fine.

Usage is as follows:

i = ClipboardGetTableVals (MainPanel, PANEL_TABLE, VAL_TABLE_ENTIRE_RANGE, 0);

Any info is appreciated
0 Kudos
Message 1 of 13
(4,199 Views)
Hi,

I've created a small example using the ClipboardGetTableVals(...) and I was able to get it to work in CVI 7.0 with no problem. Make sure that you give the table a change to redraw; you may want to add a call to ProcessDrawEvents() right after you read the values fromt he clipboard.

I hope this helps.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 2 of 13
(4,195 Views)
It seems that I can create a new project using CVI 7.0 and ClipboardGetTableVals() works fine. However when I try to run my applications which were created with CVI 6.0 ClipboardGetTableVals() will not work. Even if I recompile my older CVI 6.0 project it still does not work. Again, the function does not return any errors. ProcessDrawEvents() has no effect.

Any further info or suggestions are appreciated.
0 Kudos
Message 3 of 13
(4,195 Views)
Try deleting and reinserting the table control. It could be a corrupted object causing this problem. I'll try to replicate the problem here writing some code in CVI 6 and porting it to CVI 7.

I'll let you know my findings

Regards,

Juan Carlos
0 Kudos
Message 4 of 13
(4,198 Views)
I deleted and replaced the table. It works fine now. Thank you for your help.
0 Kudos
Message 5 of 13
(4,198 Views)
This problem has reared it's ugly head once again.

My customer re-installed my application, which I developed with CVI6, on a brand new PC and ClipboardGetTableVals is not working (it was before).

I also have WindowsXP freshly installed with CVI7, but if I run the customers application ClipboardGetTableVals does not work.

It is as if our systems are missing some component or object required to make ClipboardGetTableVals work.

Deleting and re-inserting a table into the gui and rebuilding the entire project and runtime engine would work, but that is the less desirable option at this point.



Any suggestions?
0 Kudos
Message 6 of 13
(4,173 Views)

Hello djp,

Are you seeing this problem when you run the executable and/or when you run the program within the development environment? You mentioned that you tried recompiling the program in CVI 7.0. Do you still see the same behavior?

I was unable to reproduce the problem using the sample code Juan Carlos posted. Would it be possible for you to post an example demonstrating the behavior? Also, I tested this in CVI 6 and CVI 7 with the 7.1 runtime engine. You might try installing the latest runtime engine to see if this helps the situation.

Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 7 of 13
(4,143 Views)
The behavior is the same whether I run the executable or debug from the development environment. The problem persists after recompiling the program with CVI 7.0 and after installing the latest runtime engine.

I cannot recreate the behavior with a new project though.

Here is my application which has been stripped down to only the one function. If you build and run the executable you will see that the table remains empty, but the data is available on the clipboard.
0 Kudos
Message 8 of 13
(4,132 Views)
Hello djp,

I tried running your attached program in CVI 6, 7, and 7.1 FDS and saw the same incorrect behavior with the table. Let me get some more clarification on when this problem occurs.

When you upgrade from CVI 6 to CVI 7, do you see this behavior?
When you reinstall your OS, then install CVI 6, do you see the same behavior?
When you reinstall your OS, then install CVI 7, do you see the same behavior?

You mentioned that you previously recreated the table, which resolved the issue. Did you recreate the UIR in 7.0 or in 6.0?
If you recreated the UIR in 7.0, did you distribute your application as a 7.0 application? If this is the case, then is the problem that your UIR built in 7.0 stops working when you reinstall CVI 7.0?
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 9 of 13
(4,090 Views)
I noticed this when I upgraded from CVI 6 to 7, but I don't recall if that was in conjunction with reinstalling my operating system. I know the customers application, developed and distributed with CVI 6, stopped working after purchasing a new PC.

I do not have CVI 6 installed.

When I recreated the UIR in CVI 7 it worked. I distributed the application to our test lab and it worked.

If I reinstall CVI 7 or reinstall my operating system and use the newly created uir, it works.

So it's just the uir developed with CVI 6 that will not seem to work under any circumstance on our PC's here since we've moved on to CVI 7. Even the Windows2000 computers used for calibration which have not been changed or upgraded for a long time exhibit the same behavior.
0 Kudos
Message 10 of 13
(4,084 Views)