LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

find daqmx channel by name

Solved!
Go to solution

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


0 Kudos
Message 1 of 6
(2,739 Views)

Hey,

 

Why do you want to do that? I'm wondering about the purpose?

 

 

Christian

0 Kudos
Message 2 of 6
(2,727 Views)

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.

 


0 Kudos
Message 3 of 6
(2,715 Views)

I made a mistake I mean to say

I DO NOT want to hardode that the Func Gen is in slot 2.


0 Kudos
Message 4 of 6
(2,709 Views)
Solution
Accepted by topic author Mac671

Hey,

 

A picture is worth more then a thousand words:

 

example

 

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

Message 5 of 6
(2,702 Views)

Thanks this is what I needed 😉

 

 


0 Kudos
Message 6 of 6
(2,698 Views)