06-30-2010 11:34 PM
Hi Kevin,
Attached are screenshots of the DLL checker for the cvi_lvrt.dll and the chr52912.dll. The chr52912.dll is not calling into the cvi_lvrt.dll but rather the cvirte.dll (CVI Run-Time Engine versus the CVI LabVIEW Real Time dll). If the DLL has bad imports then the DLL is not going to run on RT target.
Can you double check about the Real-Time application that was build using the chr52912.dll? Perhaps can you post a very simple VI that works on your real-time target? When I try to run a VI with a Call Library Function node setup to call into the chr52912.dll I get this screen:
Maybe I am doing something incorrect?
07-01-2010 07:22 AM
Oh yeah, sorry. That was my mistake. I've actually got the whole thing working now--I'm not sure of what all I did to fix it. The major mistake was during the process of developing the custom device I switched the RT version of chr52912.dll with the desktop version of chr52912.dll. They have identical names so I didn't notice it, but yesterday I discovered that there were two versions because they had different file sizes.
I also discovered how you can add the chroma library to <LabVIEW program files>\instr.lib\chr52912\ instead of incorporating it in the project, and LabVIEW takes care of all the dependencies, which made the project file a lot cleaner.
So, thanks for all your help. I've sorted the whole thing out and have a working custom device now.
One question I might add is, can data channels be a different data type than a double? I want to send it a boolean value to enable/disable the power supply output because right now the voltage output just follows the channel input for the voltage in. And, in the future I could see wanting a channel to be an array or a cluster or something.
Thanks,
Kevin Key
07-02-2010 03:41 PM
Hi Kevin,
Sorry, channels are doubles only. You can use booleans on the Workspace and they will be corrected to 1's and 0's in the actual data. In the custom device you will have to cast them to Booleans again.
07-12-2010 07:12 AM
03-01-2011 10:58 AM
Kevin,
Where did you find the RT version of chr52912.dll? I am trying to use the same power supply and I have only been able to find the windows version of that dll. Could you possibly post the RT version for download?
Thanks
Eric Beaty
03-01-2011 11:38 AM