ni.com is currently experiencing issues. Support teams are actively working on the resolution.
We appreciate your patience as we improve our online experience.
ni.com is currently experiencing issues. Support teams are actively working on the resolution.
We appreciate your patience as we improve our online experience.
10-31-2019 05:37 AM - edited 10-31-2019 05:38 AM
Hi All,
I m facing an issue when using DVR. My code snippet is given below
As shown in the block diagram, I used two different methods for DVR write and Read which are L1&L2 and L3&L4
L1 and L2 is working as expected.
I m getting an error from L3&L4, which is bad type case error (error 1448)
Here I have a class called "Data" and under data I have the child classes , like "SGL Array","Boolean Array" and etc
There is a Communication class and DVR class is inherited from communication class
Can anyone suggest what could be the problem in L3&L4. why is it behaving differently when it is inside a member class VI. I have the same code inside the member class vi which is highlighted in red color rectangle.
Thank you
Solved! Go to Solution.
10-31-2019 06:50 AM
Can't debug a picture.
10-31-2019 10:31 AM
@paul_cardinale wrote:
Can't debug a picture.
Exactly - what's happening in the subvis is where the issue is, and they obviously aren't just what you have outlined as what is in them.
11-04-2019 11:03 PM
11-04-2019 11:37 PM
Something is wrong with your .7z file. I get an error when trying to open it. Something about an unsupported command.
Please attach a real zip file and not a .7z file.
11-04-2019 11:54 PM
Hi,
Please find the attachment in .zip format
11-05-2019 07:08 AM
In loop L4, you are trying to cast the output of "Communication.lvclass:Read Data Out.vi" to "SGL Array.lvclass". However at runtime, it does not contain a "SGL Array.lvclass", it contains "Data.lvclass" so the "To More Specific Class" must fail.
11-05-2019 07:19 AM
But same logic is working in Loop 2
11-06-2019 02:23 PM - edited 11-06-2019 02:25 PM
This is why using error IO is always helpful - you've got a bug in your DVR start method - you're not wiring the output of the DVR write accessor to the output class, so neither loop 3 nor loop 4 is using a valid DVR. After fixing this, both setups work.
11-06-2019 10:43 PM
Great!
I Didn't connect that.
Thanks a lot.