jed Posted January 22, 2009 Report Share Posted January 22, 2009 I am trying to use the OpenG function "Read Panel from INI" with an IMAQdx camera instance. However, after the variant is written to the file and read back (the variant data looks good), there is an error when writing to the value property. Error 0d91: Property Node (arg 1) in Untitled 2 <APPEND> Property Name: <b>Value</b> Here's the openG code: And here's code I wrote to confirm: (The Err occurs only at the right-most Write-Value node.) If I replace the dx ref with a VISA resource, or some other control, this works without error. Any ideas? Quote Link to comment
crelf Posted January 22, 2009 Report Share Posted January 22, 2009 Can you post the ini file that it writes? Or doesn't it get that far? Quote Link to comment
LAVA 1.0 Content Posted January 23, 2009 Report Share Posted January 23, 2009 I think storing an IMAQ handle inside an ini file is a nono. I always thought they were pointers. But I agree with Crelf, what is the output of the INI file? Ton Quote Link to comment
jed Posted January 23, 2009 Author Report Share Posted January 23, 2009 The entry in the ini file, the same string data on the variant-to-string output, is Left=\00\00\00\04cam0 However, the error has nothing to do with the INI file. Note that I can write the variant directly, but if I collapse and un-collapse the variant it errors. I understand that the IMAQdx might be a reference, but how else am I supposed to store the camera selection between runs? QUOTE (Ton @ Jan 21 2009, 09:24 PM) I think storing an IMAQ handle inside an ini file is a nono. I always thought they were pointers.But I agree with Crelf, what is the output of the INI file? Ton Ah. I just realized that I can wire a string directly to "IMAQdx Camera Open". QUOTE (jed @ Jan 21 2009, 10:26 PM) The entry in the ini file, the same string data on the variant-to-string output, is Left=\00\00\00\04cam0 However, the error has nothing to do with the INI file. Note that I can write the variant directly, but if I collapse and un-collapse the variant it errors. I understand that the IMAQdx might be a reference, but how else am I supposed to store the camera selection between runs? Quote Link to comment
LAVA 1.0 Content Posted January 23, 2009 Report Share Posted January 23, 2009 Hi Jed, Could in future posts upload your images to LAVA? Instead of externally linking. This will prevent some annoying portal issues. And if you want to post code I suggest the Code Capture Tool Ton Quote Link to comment
crelf Posted January 23, 2009 Report Share Posted January 23, 2009 QUOTE (jed @ Jan 22 2009, 01:30 AM) I understand that the IMAQdx might be a reference, but how else am I supposed to store the camera selection between runs? The reference refers to much more than camera selection (and once the reference is out of memory then a textual representation to it is next to useless). You can use a property node to get the camera name and save that instead. You can also wire the string camera name into most IMAQ functions and they will create a new reference with default settings bound to that camera. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.