LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 50256 When Trying to Programmatically Create DAQmx Scale

I'm trying to use the Custom Scale feature of DAQmx to implement scaling on an analog input task, but I'm receiving the following error:

 

Error -50256 occurred at DAQmx Create Channel (AI-Voltage-Basic).vi:1780002

Possible reason(s):

The specified feature has not been implemented for this environment. The operation could not be completed as specified.

Task Name: test

 

This is occuring on a Windows 10 machine running LabVIEW 2018 and DAQmx 19.1. It only occurs when I try to use the DAQmx Create Scale vi- if I set a scale up in MAX and use that instead, it seems to run fine.

0 Kudos
Message 1 of 3
(2,824 Views)

Hi PatW,

 

Can you post your code or a screenshot? That will make it easier to provide specific recommendations.

 

Best, 

Claire C.
AppSW Staff Product Support Engineer
National Instruments
CLD|CTD
0 Kudos
Message 2 of 3
(2,734 Views)

Figured out the issue. I was trying to type cast the channel name to a string, then append "_scale" to it. When I just used a generic string for the name instead, i no longer received the error. It would appear that type casting the DAQmx channel name to a string is not supported.

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