LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PhysicalChanName

I am trying to read out the physical name of a virtual channel I created in MAX. But I get this error when I try to read the channel:

 

Possible reason(s):

Task contains physical channels on one or more devices that require you to specify the Sample Clock rate. Use the Sample Clock Timing function/VI to specify a Sample Clock rate.

You cannot specify a Sample Clock rate if Mode is set to On Demand.

Device: cDAQ9184-1B1F0FE

Task Name: Loadcell AE 01

 

Here is all of the info I have.

Windows 7 SP1

LabVIEW 2017

cDAQ 9184 (I do not believe that it matter here because I also tried it on a 9188XT and got the same result)

NI-9237

 

When I simply go into MAX and create a new channel no matter the name. I use the full bridge configuration and do not have to add a scale to get this issues. Then I go to my block diagram and pull out a DAQmx Channel property node and try to read the PhysicalChanName I get the error posted above. I get the channel names for other channels I have created but I can not seem to get them for the channels on the 9237 module. Am I missing something here? I am not sure why you would have to set up a sample clock to read a channel name. I am trying to get the channel each Global Channel is associated with to allow the operator to select valid channels and to make sure they can see where they should be connected on the panel.

 

If I add these channels to a task and set the active channel I can then read out the PhysicalChanName but not the channel individually.

 

Any thought?

Tim
GHSP
0 Kudos
Message 1 of 3
(2,293 Views)

Can you share your VI to get a better picture of what you're doing? That way I can try to see if I get the same error too.

0 Kudos
Message 2 of 3
(2,231 Views)

You do not need a vi. I gave you all of the information above. I created a global virtual channel in NI MAX using the cDAQ chassis and the models listed above. I place the channel property node on my block diagram change it to PhysicalChanName. This property should return the device name, module number and physical channel of the global channel. Instead I get the error about a timer not being set.

Tim
GHSP
0 Kudos
Message 3 of 3
(2,207 Views)