12-28-2005 07:33 AM
Hi
I have trouble when I’m reading data into Labview using the CIN, code interface node. The problem “memory could not read” which occurs at the second or third reading and forces the Labview to restart. Se attachments…
I’m receiving data from an USB chip and will further manipulate the data in Labview…
Best regards
Jonny
12-29-2005
03:20 AM
- last edited on
11-01-2025
05:13 PM
by
Content Cleaner
Hello Jonny!
Check out the following information regarding the Code Interface Node (CIN) and LabVIEW that contains information that hopefully is useful for you.
Code Interface Node:
Why does my CIN run once, but gets a memory error the second time?
https://forums.ni.com/t5/Measurement-Studio-for-VC/Why-does-my-CIN-run-once-but-gets-a-memory-error-...
When a program included a CIN is executed,it always indicate that some memory can not be read or written,please why?
https://forums.ni.com/t5/LabVIEW/When-a-program-included-a-CIN-is-executed-it-always-indicate/m-p/39...
Multiple References to the Same CIN in Different VIs
http://zone.ni.com/reference/en-XX/help/371361A-01/lvexcodeconcepts/mult_refs_same_cin_diffvis/
Q:how to allocate memory in CINs?
https://forums.ni.com/t5/LabVIEW/Q-how-to-allocate-memory-in-CINs/m-p/5730
Would also like to suggest that you try to use Call Library Node instead (call DLLs). Some things to consider when it comes to Call Library Node functions can be found below:
LabVIEW Application Error: The instruction at "[address x]" referenced memory at "[address y]". The memory could not be "read".
http://digital.ni.com/public.nsf/websearch/E8C5C452F04EF7BE86256EF50068CAAF?OpenDocument
LabVIEW Crashes after a VI That Calls a DLL Exits
http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/91d4656b15b0dc7a86256ace0073ca90?OpenDocument
When Using the Call Library Function Node, LabVIEW Crashes after the Function Executes
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P6tcSAC&l=en-US
Regards,
Jimmie A.
Applications Engineer, National Instruments
12-29-2005
04:43 AM
- last edited on
11-01-2025
05:14 PM
by
Content Cleaner
Many great links...
By initiate the arrays correctly the problem were almost solved, sometimes deadlocks do occur but not so often...
"In the correct method, the array is initialized to the desired size, which allocates space in memory, before passing the array to the function."
From: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P6tcSAC&l=en-US
There could be better to look into Call Library Node instead as you suggested, any great links to get started?
Thanks
Jonny
01-02-2006
01:51 AM
- last edited on
11-01-2025
05:19 PM
by
Content Cleaner
Hello!
I had some time off therefore the delay but here is some useful information for you:
https://www.ni.com/docs/en-US/bundle/labview/page/calling-shared-libraries.html
Regards,
Jimmie A.
Applications Engineer, National Instruments