11-18-2010 04:41 AM
How can I save a DAQMX Constant do File( string ) and than back again?
Quick question Is there a standard function call that would do that for me?
Thank for help in advance
Solved! Go to Solution.
11-18-2010 07:20 AM
Hey,
Why do you want to do that? I'm wondering about the purpose?
Christian
11-18-2010 09:29 AM - edited 11-18-2010 09:30 AM
Let's say I have a PXI system that has a specific PXI card that has in slot 2 , and another PXI system that has the same kind of card in slot 3.
I'm writing a LV app that wil be running on both of these devices.
I want to be able to create a hardware configuration file specific to a given PXI system. I envisioned obtaing a String that would describe the Card Type and Slot, and than reading that string back to find the card in Runtime.
I do want to hardoce that the Function generator card for example is in slot 2 inside my LV code, but look at that file first so that I know where to find it.
Ps. What just came into my mind ... perhaps even a better solution would be for me to find the Card Slot dinamically if that is possible,
in my Initialization phase of the program, where I could auto detec which slots tha cards are in.
Since I'm quite new to DAQMX I just wanted to ask if such possibilities exist, beacause perhaps this is easy to do.
11-18-2010 09:41 AM
I made a mistake I mean to say
I DO NOT want to hardode that the Func Gen is in slot 2.
11-18-2010 10:11 AM - edited 11-18-2010 10:13 AM
Hey,
A picture is worth more then a thousand words:
This would be the way to look for a certain device. But keep in mind that if you have more devices of this type it takes the first one.
You can also check if the device is simulated.
So please see this just as a hint. You might need to do some more to get sure you always have the right device!
Christian
11-18-2010 10:17 AM
Thanks this is what I needed 😉